|
Liferay 6.0.3 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.liferay.portal.model.PermissionWrapper
public class PermissionWrapper
This class is a wrapper for Permission.
Permission,
Serialized Form| Constructor Summary | |
|---|---|
PermissionWrapper(Permission permission)
|
|
| Method Summary | |
|---|---|
Object |
clone()
Creates a shallow clone of this model instance. |
int |
compareTo(Permission permission)
|
String |
getActionId()
|
long |
getCompanyId()
|
ExpandoBridge |
getExpandoBridge()
Gets the expando bridge for this model instance. |
String |
getName()
|
long |
getPermissionId()
|
long |
getPrimaryKey()
|
Serializable |
getPrimaryKeyObj()
Gets the primary key for this model instance. |
String |
getPrimKey()
|
long |
getResourceId()
|
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 has been wrapped with an HTML auto escape handler. |
boolean |
isNew()
Determines if this model instance does not yet exist in the database. |
void |
setActionId(String actionId)
|
void |
setCachedModel(boolean cachedModel)
Sets whether this model instance was retrieved from the entity cache. |
void |
setCompanyId(long companyId)
|
void |
setEscapedModel(boolean escapedModel)
Sets whether this model instance has been wrapped with an HTML auto escape handler. |
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)
|
void |
setPrimaryKey(long pk)
|
void |
setPrimKey(String primKey)
|
void |
setResourceId(long resourceId)
|
void |
setScope(int scope)
|
Permission |
toEscapedModel()
|
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()
getPrimaryKey in interface PermissionModelpublic void setPrimaryKey(long pk)
setPrimaryKey in interface PermissionModelpublic long getPermissionId()
getPermissionId in interface PermissionModelpublic void setPermissionId(long permissionId)
setPermissionId in interface PermissionModelpublic long getCompanyId()
getCompanyId in interface PermissionModelpublic void setCompanyId(long companyId)
setCompanyId in interface PermissionModelpublic String getActionId()
getActionId in interface PermissionModelpublic void setActionId(String actionId)
setActionId in interface PermissionModelpublic long getResourceId()
getResourceId in interface PermissionModelpublic void setResourceId(long resourceId)
setResourceId in interface PermissionModelpublic Permission toEscapedModel()
toEscapedModel in interface PermissionModelpublic boolean isNew()
BaseModel
isNew in interface BaseModel<Permission>isNew in interface PermissionModeltrue 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 PermissionModeln - whether this model instance does not yet exist in the databasepublic boolean isCachedModel()
BaseModel
isCachedModel in interface BaseModel<Permission>isCachedModel in interface PermissionModeltrue 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 PermissionModelcachedModel - whether this model instance was retrieved from the
entity cacheEntityCachepublic boolean isEscapedModel()
BaseModel
isEscapedModel in interface BaseModel<Permission>isEscapedModel in interface PermissionModeltrue if this model instance has been wrapped with an
HTML auto escape handler; false otherwiseBaseModel.setEscapedModel(boolean)public void setEscapedModel(boolean escapedModel)
BaseModel
A model instance can be wrapped with an HTML auto escape handler using
its toEscapedModel method. For example, UserModel.toEscapedModel().
setEscapedModel in interface BaseModel<Permission>setEscapedModel in interface PermissionModelescapedModel - whether this model instance has been wrapped with an
HTML auto escape handlerAutoEscapeBeanHandlerpublic Serializable getPrimaryKeyObj()
BaseModel
getPrimaryKeyObj in interface BaseModel<Permission>getPrimaryKeyObj in interface PermissionModelpublic ExpandoBridge getExpandoBridge()
BaseModel
getExpandoBridge in interface BaseModel<Permission>getExpandoBridge in interface PermissionModelpublic void setExpandoBridgeAttributes(ServiceContext serviceContext)
BaseModel
setExpandoBridgeAttributes in interface BaseModel<Permission>setExpandoBridgeAttributes in interface PermissionModelserviceContext - the service context to retrieve the expando bridge
attributes fromServiceContext.getExpandoBridgeAttributes(
)public Object clone()
BaseModel
clone in interface BaseModel<Permission>clone in interface PermissionModelclone in class Objectpublic int compareTo(Permission permission)
compareTo in interface PermissionModelcompareTo in interface Comparable<Permission>public int hashCode()
hashCode in interface PermissionModelhashCode in class Objectpublic String toString()
toString in interface PermissionModeltoString in class Objectpublic String toXmlString()
BaseModel
toXmlString in interface BaseModel<Permission>toXmlString in interface PermissionModelpublic String getName()
getName in interface Permissionpublic String getPrimKey()
getPrimKey in interface Permissionpublic int getScope()
getScope in interface Permissionpublic void setName(String name)
setName in interface Permissionpublic void setPrimKey(String primKey)
setPrimKey in interface Permissionpublic void setScope(int scope)
setScope in interface Permissionpublic Permission getWrappedPermission()
|
Liferay 6.0.3 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||