|
Liferay 6.0.5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.liferay.portal.model.PermissionWrapper
public class PermissionWrapper
This class is a wrapper for Permission
.
Permission
,
Serialized FormConstructor Summary | |
---|---|
PermissionWrapper(Permission permission)
|
Method Summary | |
---|---|
Object |
clone()
Creates a shallow clone of this model instance. |
int |
compareTo(Permission permission)
|
String |
getActionId()
Gets the action id of this permission. |
long |
getCompanyId()
Gets the company id of this permission. |
ExpandoBridge |
getExpandoBridge()
Gets the expando bridge for this model instance. |
String |
getName()
|
long |
getPermissionId()
Gets the permission id of this permission. |
long |
getPrimaryKey()
Gets the primary key of this permission. |
Serializable |
getPrimaryKeyObj()
Gets the primary key of this model instance. |
String |
getPrimKey()
|
long |
getResourceId()
Gets the resource id of this permission. |
int |
getScope()
|
Permission |
getWrappedPermission()
|
int |
hashCode()
|
boolean |
isCachedModel()
Determines if this model instance was retrieved from the entity cache. |
boolean |
isEscapedModel()
Determines if this model instance is escaped. |
boolean |
isNew()
Determines if this model instance does not yet exist in the database. |
void |
setActionId(String actionId)
Sets the action id of this permission. |
void |
setCachedModel(boolean cachedModel)
Sets whether this model instance was retrieved from the entity cache. |
void |
setCompanyId(long companyId)
Sets the company id of this permission. |
void |
setEscapedModel(boolean escapedModel)
Sets whether this model instance is escaped, meaning that all strings returned from getter methods are HTML safe. |
void |
setExpandoBridgeAttributes(ServiceContext serviceContext)
Sets the expando bridge attributes for this model instance to the attributes stored in the service context. |
void |
setName(String name)
|
void |
setNew(boolean n)
Sets whether this model instance does not yet exist in the database. |
void |
setPermissionId(long permissionId)
Sets the permission id of this permission. |
void |
setPrimaryKey(long pk)
Sets the primary key of this permission |
void |
setPrimKey(String primKey)
|
void |
setResourceId(long resourceId)
Sets the resource id of this permission. |
void |
setScope(int scope)
|
Permission |
toEscapedModel()
Gets a copy of this permission as an escaped model instance by wrapping it with an AutoEscapeBeanHandler . |
String |
toString()
|
String |
toXmlString()
Gets the XML representation of this model instance. |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public PermissionWrapper(Permission permission)
Method Detail |
---|
public long getPrimaryKey()
PermissionModel
getPrimaryKey
in interface PermissionModel
public void setPrimaryKey(long pk)
PermissionModel
setPrimaryKey
in interface PermissionModel
pk
- the primary key of this permissionpublic long getPermissionId()
PermissionModel
getPermissionId
in interface PermissionModel
public void setPermissionId(long permissionId)
PermissionModel
setPermissionId
in interface PermissionModel
permissionId
- the permission id of this permissionpublic long getCompanyId()
PermissionModel
getCompanyId
in interface PermissionModel
public void setCompanyId(long companyId)
PermissionModel
setCompanyId
in interface PermissionModel
companyId
- the company id of this permissionpublic String getActionId()
PermissionModel
getActionId
in interface PermissionModel
public void setActionId(String actionId)
PermissionModel
setActionId
in interface PermissionModel
actionId
- the action id of this permissionpublic long getResourceId()
PermissionModel
getResourceId
in interface PermissionModel
public void setResourceId(long resourceId)
PermissionModel
setResourceId
in interface PermissionModel
resourceId
- the resource id of this permissionpublic Permission toEscapedModel()
PermissionModel
AutoEscapeBeanHandler
.
toEscapedModel
in interface PermissionModel
AutoEscapeBeanHandler
public boolean isNew()
BaseModel
isNew
in interface BaseModel<Permission>
isNew
in interface PermissionModel
true
if this model instance does not yet exist in
the database; false
otherwisepublic void setNew(boolean n)
BaseModel
setNew
in interface BaseModel<Permission>
setNew
in interface PermissionModel
n
- whether this model instance does not yet exist in the databasepublic boolean isCachedModel()
BaseModel
isCachedModel
in interface BaseModel<Permission>
isCachedModel
in interface PermissionModel
true
if this model instance was retrieved from the
entity cache; false
otherwiseBaseModel.setCachedModel(boolean)
public void setCachedModel(boolean cachedModel)
BaseModel
setCachedModel
in interface BaseModel<Permission>
setCachedModel
in interface PermissionModel
cachedModel
- whether this model instance was retrieved from the
entity cacheEntityCache
public boolean isEscapedModel()
BaseModel
isEscapedModel
in interface BaseModel<Permission>
isEscapedModel
in interface PermissionModel
true
if this model instance is escaped;
false
otherwiseBaseModel.setEscapedModel(boolean)
public void setEscapedModel(boolean escapedModel)
BaseModel
A model instance can be made escaped by wrapping it with an HTML auto
escape handler using its toEscapedModel
method. For example,
UserModel.toEscapedModel()
.
setEscapedModel
in interface BaseModel<Permission>
setEscapedModel
in interface PermissionModel
escapedModel
- whether this model instance is escapedAutoEscapeBeanHandler
public Serializable getPrimaryKeyObj()
BaseModel
getPrimaryKeyObj
in interface BaseModel<Permission>
getPrimaryKeyObj
in interface PermissionModel
public ExpandoBridge getExpandoBridge()
BaseModel
getExpandoBridge
in interface BaseModel<Permission>
getExpandoBridge
in interface PermissionModel
public void setExpandoBridgeAttributes(ServiceContext serviceContext)
BaseModel
setExpandoBridgeAttributes
in interface BaseModel<Permission>
setExpandoBridgeAttributes
in interface PermissionModel
serviceContext
- the service context to retrieve the expando bridge
attributes fromServiceContext.getExpandoBridgeAttributes(
)
public Object clone()
BaseModel
clone
in interface BaseModel<Permission>
clone
in interface PermissionModel
clone
in class Object
public int compareTo(Permission permission)
compareTo
in interface PermissionModel
compareTo
in interface Comparable<Permission>
public int hashCode()
hashCode
in interface PermissionModel
hashCode
in class Object
public String toString()
toString
in interface PermissionModel
toString
in class Object
public String toXmlString()
BaseModel
toXmlString
in interface BaseModel<Permission>
toXmlString
in interface PermissionModel
public String getName()
getName
in interface Permission
public String getPrimKey()
getPrimKey
in interface Permission
public int getScope()
getScope
in interface Permission
public void setName(String name)
setName
in interface Permission
public void setPrimKey(String primKey)
setPrimKey
in interface Permission
public void setScope(int scope)
setScope
in interface Permission
public Permission getWrappedPermission()
|
Liferay 6.0.5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |