|
Liferay 6.1.0 | |||||||||
| 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| Field Summary |
|---|
| Fields inherited from interface com.liferay.portal.model.Permission |
|---|
PERMISSION_ID_ACCESSOR |
| Constructor Summary | |
|---|---|
PermissionWrapper(Permission permission)
|
|
| Method Summary | |
|---|---|
Object |
clone()
Creates a shallow clone of this model instance. |
int |
compareTo(Permission permission)
|
String |
getActionId()
Returns the action ID of this permission. |
long |
getCompanyId()
Returns the company ID of this permission. |
ExpandoBridge |
getExpandoBridge()
Returns the expando bridge for this model instance. |
Class<?> |
getModelClass()
|
String |
getModelClassName()
|
String |
getName()
|
long |
getPermissionId()
Returns the permission ID of this permission. |
long |
getPrimaryKey()
Returns the primary key of this permission. |
Serializable |
getPrimaryKeyObj()
Returns the primary key of this model instance. |
String |
getPrimKey()
|
long |
getResourceId()
Returns the resource ID of this permission. |
int |
getScope()
|
Permission |
getWrappedPermission()
|
int |
hashCode()
|
boolean |
isCachedModel()
Returns true if this model instance was retrieved from the
entity cache. |
boolean |
isEscapedModel()
Returns true if this model instance is escaped. |
boolean |
isNew()
Returns true if this model instance does not yet exist in
the database. |
void |
persist()
Updates this model instance in the database or adds it if it does not yet exist. |
void |
resetOriginalValues()
Reset all original fields to current values. |
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 |
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 primaryKey)
Sets the primary key of this permission. |
void |
setPrimaryKeyObj(Serializable primaryKeyObj)
Sets the primary key of this model instance. |
void |
setPrimKey(String primKey)
|
void |
setResourceId(long resourceId)
Sets the resource ID of this permission. |
void |
setScope(int scope)
|
CacheModel<Permission> |
toCacheModel()
Returns a cache model object for this entity used by entity cache. |
Permission |
toEscapedModel()
Returns a copy of this entity as an escaped model instance by wrapping it with an AutoEscapeBeanHandler. |
String |
toString()
|
String |
toXmlString()
Returns 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 Class<?> getModelClass()
getModelClass in interface ClassedModelpublic String getModelClassName()
getModelClassName in interface ClassedModelpublic long getPrimaryKey()
getPrimaryKey in interface PermissionModelpublic void setPrimaryKey(long primaryKey)
setPrimaryKey in interface PermissionModelprimaryKey - the primary key of this permissionpublic long getPermissionId()
getPermissionId in interface PermissionModelpublic void setPermissionId(long permissionId)
setPermissionId in interface PermissionModelpermissionId - the permission ID of this permissionpublic long getCompanyId()
getCompanyId in interface PermissionModelpublic void setCompanyId(long companyId)
setCompanyId in interface PermissionModelcompanyId - the company ID of this permissionpublic String getActionId()
getActionId in interface PermissionModelpublic void setActionId(String actionId)
setActionId in interface PermissionModelactionId - the action ID of this permissionpublic long getResourceId()
getResourceId in interface PermissionModelpublic void setResourceId(long resourceId)
setResourceId in interface PermissionModelresourceId - the resource ID of this permissionpublic boolean isNew()
BaseModeltrue if this model instance does not yet exist in
the database.
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()
BaseModeltrue if this model instance was retrieved from the
entity cache.
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()
BaseModeltrue if this model instance is escaped.
isEscapedModel in interface BaseModel<Permission>isEscapedModel in interface PermissionModeltrue if this model instance is escaped;
false otherwisepublic Serializable getPrimaryKeyObj()
BaseModel
getPrimaryKeyObj in interface BaseModel<Permission>getPrimaryKeyObj in interface ClassedModelgetPrimaryKeyObj in interface PermissionModelpublic void setPrimaryKeyObj(Serializable primaryKeyObj)
BaseModel
setPrimaryKeyObj in interface BaseModel<Permission>setPrimaryKeyObj in interface ClassedModelsetPrimaryKeyObj in interface PermissionModelprimaryKeyObj - the primary key of this model instancepublic ExpandoBridge getExpandoBridge()
BaseModel
getExpandoBridge in interface BaseModel<Permission>getExpandoBridge in interface ClassedModelgetExpandoBridge in interface PermissionModelpublic void setExpandoBridgeAttributes(ServiceContext serviceContext)
BaseModel
setExpandoBridgeAttributes in interface BaseModel<Permission>setExpandoBridgeAttributes in interface PermissionModelserviceContext - the service contextServiceContext.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 CacheModel<Permission> toCacheModel()
BaseModel
toCacheModel in interface BaseModel<Permission>toCacheModel in interface PermissionModelpublic Permission toEscapedModel()
BaseModelAutoEscapeBeanHandler.
toEscapedModel in interface BaseModel<Permission>toEscapedModel in interface PermissionModelAutoEscapeBeanHandlerpublic String toString()
toString in interface PermissionModeltoString in class Objectpublic String toXmlString()
BaseModel
toXmlString in interface BaseModel<Permission>toXmlString in interface PermissionModel
public void persist()
throws SystemException
PersistedModel
persist in interface PersistedModelSystemException - if a system exception occurredpublic 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()
public void resetOriginalValues()
BaseModel
resetOriginalValues in interface BaseModel<Permission>
|
Liferay 6.1.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||