@ProviderType public class ResourcePermissionWrapper extends Object implements ResourcePermission, ModelWrapper<ResourcePermission>
This class is a wrapper for ResourcePermission.
ResourcePermission,
Serialized FormRESOURCE_PERMISSION_ID_ACCESSOR| Constructor and Description |
|---|
ResourcePermissionWrapper(ResourcePermission resourcePermission) |
| Modifier and Type | Method and Description |
|---|---|
void |
addResourceAction(String actionId) |
Object |
clone()
Creates a shallow clone of this model instance.
|
int |
compareTo(ResourcePermission resourcePermission) |
boolean |
equals(Object obj) |
long |
getActionIds()
Returns the action IDs of this resource permission.
|
long |
getCompanyId()
Returns the company ID of this resource permission.
|
ExpandoBridge |
getExpandoBridge()
Returns the expando bridge for this model instance.
|
Map<String,Object> |
getModelAttributes() |
Class<?> |
getModelClass() |
String |
getModelClassName() |
long |
getMvccVersion()
Returns the mvcc version of this resource permission.
|
String |
getName()
Returns the name of this resource permission.
|
long |
getOwnerId()
Returns the owner ID of this resource permission.
|
long |
getPrimaryKey()
Returns the primary key of this resource permission.
|
Serializable |
getPrimaryKeyObj()
Returns the primary key of this model instance.
|
String |
getPrimKey()
Returns the prim key of this resource permission.
|
long |
getPrimKeyId()
Returns the prim key ID of this resource permission.
|
long |
getResourcePermissionId()
Returns the resource permission ID of this resource permission.
|
long |
getRoleId()
Returns the role ID of this resource permission.
|
int |
getScope()
Returns the scope of this resource permission.
|
boolean |
getViewActionId()
Returns the view action ID of this resource permission.
|
ResourcePermission |
getWrappedModel() |
boolean |
hasAction(ResourceAction resourceAction) |
boolean |
hasActionId(String actionId) |
int |
hashCode() |
boolean |
isCachedModel()
Returns
true if this model instance was retrieved from the
entity cache. |
boolean |
isEntityCacheEnabled()
Returns
true if this model's entity cache is enabled. |
boolean |
isEscapedModel()
Returns
true if this model instance is escaped. |
boolean |
isFinderCacheEnabled()
Returns
true if this model's finder cache is enabled. |
boolean |
isNew()
Returns
true if this model instance does not yet exist in
the database. |
boolean |
isViewActionId()
Returns
true if this resource permission is view action ID. |
void |
persist()
Updates this model instance in the database or adds it if it does not yet
exist.
|
void |
removeResourceAction(String actionId) |
void |
resetOriginalValues()
Reset all original fields to current values.
|
void |
setActionIds(long actionIds)
Sets the action IDs of this resource 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 resource permission.
|
void |
setExpandoBridgeAttributes(BaseModel<?> baseModel) |
void |
setExpandoBridgeAttributes(ExpandoBridge expandoBridge) |
void |
setExpandoBridgeAttributes(ServiceContext serviceContext)
Sets the expando bridge attributes for this model instance to the
attributes stored in the service context.
|
void |
setModelAttributes(Map<String,Object> attributes) |
void |
setMvccVersion(long mvccVersion)
Sets the mvcc version of this resource permission.
|
void |
setName(String name)
Sets the name of this resource permission.
|
void |
setNew(boolean n)
Sets whether this model instance does not yet exist in the database.
|
void |
setOwnerId(long ownerId)
Sets the owner ID of this resource permission.
|
void |
setPrimaryKey(long primaryKey)
Sets the primary key of this resource permission.
|
void |
setPrimaryKeyObj(Serializable primaryKeyObj)
Sets the primary key of this model instance.
|
void |
setPrimKey(String primKey)
Sets the prim key of this resource permission.
|
void |
setPrimKeyId(long primKeyId)
Sets the prim key ID of this resource permission.
|
void |
setResourcePermissionId(long resourcePermissionId)
Sets the resource permission ID of this resource permission.
|
void |
setRoleId(long roleId)
Sets the role ID of this resource permission.
|
void |
setScope(int scope)
Sets the scope of this resource permission.
|
void |
setViewActionId(boolean viewActionId)
Sets whether this resource permission is view action ID.
|
CacheModel<ResourcePermission> |
toCacheModel()
Returns a cache model object for this entity used by entity cache.
|
ResourcePermission |
toEscapedModel()
Returns a copy of this entity as an escaped model instance by wrapping it
with an
AutoEscapeBeanHandler. |
String |
toString() |
ResourcePermission |
toUnescapedModel() |
String |
toXmlString()
Returns the XML representation of this model instance.
|
public ResourcePermissionWrapper(ResourcePermission resourcePermission)
public Class<?> getModelClass()
getModelClass in interface ClassedModelpublic String getModelClassName()
getModelClassName in interface ClassedModelpublic Map<String,Object> getModelAttributes()
getModelAttributes in interface BaseModel<ResourcePermission>public void setModelAttributes(Map<String,Object> attributes)
setModelAttributes in interface BaseModel<ResourcePermission>public CacheModel<ResourcePermission> toCacheModel()
BaseModeltoCacheModel in interface BaseModel<ResourcePermission>toCacheModel in interface ResourcePermissionModelpublic ResourcePermission toEscapedModel()
BaseModelAutoEscapeBeanHandler.toEscapedModel in interface BaseModel<ResourcePermission>toEscapedModel in interface ResourcePermissionModelAutoEscapeBeanHandlerpublic ResourcePermission toUnescapedModel()
toUnescapedModel in interface BaseModel<ResourcePermission>toUnescapedModel in interface ResourcePermissionModelpublic boolean getViewActionId()
getViewActionId in interface ResourcePermissionModelpublic boolean hasAction(ResourceAction resourceAction)
hasAction in interface ResourcePermissionpublic boolean hasActionId(String actionId)
hasActionId in interface ResourcePermissionpublic boolean isCachedModel()
BaseModeltrue if this model instance was retrieved from the
entity cache.isCachedModel in interface BaseModel<ResourcePermission>isCachedModel in interface ResourcePermissionModeltrue if this model instance was retrieved from the
entity cache; false otherwiseBaseModel.setCachedModel(boolean)public boolean isEscapedModel()
BaseModeltrue if this model instance is escaped.isEscapedModel in interface BaseModel<ResourcePermission>isEscapedModel in interface ResourcePermissionModeltrue if this model instance is escaped;
false otherwisepublic boolean isNew()
BaseModeltrue if this model instance does not yet exist in
the database.isNew in interface BaseModel<ResourcePermission>isNew in interface ResourcePermissionModeltrue if this model instance does not yet exist in
the database; false otherwisepublic boolean isViewActionId()
true if this resource permission is view action ID.isViewActionId in interface ResourcePermissionModeltrue if this resource permission is view action ID; false otherwisepublic ExpandoBridge getExpandoBridge()
BaseModelgetExpandoBridge in interface BaseModel<ResourcePermission>getExpandoBridge in interface ClassedModelgetExpandoBridge in interface ResourcePermissionModelpublic int compareTo(ResourcePermission resourcePermission)
compareTo in interface ResourcePermissionModelcompareTo in interface Comparable<ResourcePermission>public int getScope()
getScope in interface ResourcePermissionModelpublic int hashCode()
hashCode in interface ResourcePermissionModelhashCode in class Objectpublic Serializable getPrimaryKeyObj()
BaseModelgetPrimaryKeyObj in interface BaseModel<ResourcePermission>getPrimaryKeyObj in interface ClassedModelgetPrimaryKeyObj in interface ResourcePermissionModelpublic Object clone()
BaseModelclone in interface BaseModel<ResourcePermission>clone in interface ResourcePermissionModelclone in class Objectpublic String getName()
getName in interface ResourcePermissionModelpublic String getPrimKey()
getPrimKey in interface ResourcePermissionModelpublic String toString()
toString in interface ResourcePermissionModeltoString in class Objectpublic String toXmlString()
BaseModeltoXmlString in interface BaseModel<ResourcePermission>toXmlString in interface ResourcePermissionModelpublic long getActionIds()
getActionIds in interface ResourcePermissionModelpublic long getCompanyId()
getCompanyId in interface ResourcePermissionModelgetCompanyId in interface ShardedModelpublic long getMvccVersion()
getMvccVersion in interface MVCCModelgetMvccVersion in interface ResourcePermissionModelpublic long getOwnerId()
getOwnerId in interface ResourcePermissionModelpublic long getPrimKeyId()
getPrimKeyId in interface ResourcePermissionModelpublic long getPrimaryKey()
getPrimaryKey in interface ResourcePermissionModelpublic long getResourcePermissionId()
getResourcePermissionId in interface ResourcePermissionModelpublic long getRoleId()
getRoleId in interface ResourcePermissionModelpublic void addResourceAction(String actionId) throws PortalException
addResourceAction in interface ResourcePermissionPortalExceptionpublic void persist()
PersistedModelpersist in interface PersistedModelpublic void removeResourceAction(String actionId) throws PortalException
removeResourceAction in interface ResourcePermissionPortalExceptionpublic void setActionIds(long actionIds)
setActionIds in interface ResourcePermissionModelactionIds - the action IDs of this resource permissionpublic void setCachedModel(boolean cachedModel)
BaseModelsetCachedModel in interface BaseModel<ResourcePermission>setCachedModel in interface ResourcePermissionModelcachedModel - whether this model instance was retrieved from the
entity cacheEntityCachepublic void setCompanyId(long companyId)
setCompanyId in interface ResourcePermissionModelsetCompanyId in interface ShardedModelcompanyId - the company ID of this resource permissionpublic void setExpandoBridgeAttributes(BaseModel<?> baseModel)
setExpandoBridgeAttributes in interface BaseModel<ResourcePermission>setExpandoBridgeAttributes in interface ResourcePermissionModelpublic void setExpandoBridgeAttributes(ExpandoBridge expandoBridge)
setExpandoBridgeAttributes in interface BaseModel<ResourcePermission>setExpandoBridgeAttributes in interface ResourcePermissionModelpublic void setExpandoBridgeAttributes(ServiceContext serviceContext)
BaseModelsetExpandoBridgeAttributes in interface BaseModel<ResourcePermission>setExpandoBridgeAttributes in interface ResourcePermissionModelserviceContext - the service context to be appliedServiceContext.getExpandoBridgeAttributes()public void setMvccVersion(long mvccVersion)
setMvccVersion in interface MVCCModelsetMvccVersion in interface ResourcePermissionModelmvccVersion - the mvcc version of this resource permissionpublic void setName(String name)
setName in interface ResourcePermissionModelname - the name of this resource permissionpublic void setNew(boolean n)
BaseModelsetNew in interface BaseModel<ResourcePermission>setNew in interface ResourcePermissionModeln - whether this model instance does not yet exist in the databasepublic void setOwnerId(long ownerId)
setOwnerId in interface ResourcePermissionModelownerId - the owner ID of this resource permissionpublic void setPrimKey(String primKey)
setPrimKey in interface ResourcePermissionModelprimKey - the prim key of this resource permissionpublic void setPrimKeyId(long primKeyId)
setPrimKeyId in interface ResourcePermissionModelprimKeyId - the prim key ID of this resource permissionpublic void setPrimaryKey(long primaryKey)
setPrimaryKey in interface ResourcePermissionModelprimaryKey - the primary key of this resource permissionpublic void setPrimaryKeyObj(Serializable primaryKeyObj)
BaseModelsetPrimaryKeyObj in interface BaseModel<ResourcePermission>setPrimaryKeyObj in interface ClassedModelsetPrimaryKeyObj in interface ResourcePermissionModelprimaryKeyObj - the primary key of this model instancepublic void setResourcePermissionId(long resourcePermissionId)
setResourcePermissionId in interface ResourcePermissionModelresourcePermissionId - the resource permission ID of this resource permissionpublic void setRoleId(long roleId)
setRoleId in interface ResourcePermissionModelroleId - the role ID of this resource permissionpublic void setScope(int scope)
setScope in interface ResourcePermissionModelscope - the scope of this resource permissionpublic void setViewActionId(boolean viewActionId)
setViewActionId in interface ResourcePermissionModelviewActionId - the view action ID of this resource permissionpublic ResourcePermission getWrappedModel()
getWrappedModel in interface ModelWrapper<ResourcePermission>public boolean isEntityCacheEnabled()
BaseModeltrue if this model's entity cache is enabled.isEntityCacheEnabled in interface BaseModel<ResourcePermission>true if this model's entity cache is enabled;
false otherwisepublic boolean isFinderCacheEnabled()
BaseModeltrue if this model's finder cache is enabled.isFinderCacheEnabled in interface BaseModel<ResourcePermission>true if this model's finder cache is enabled;
false otherwisepublic void resetOriginalValues()
BaseModelresetOriginalValues in interface BaseModel<ResourcePermission>