public class ResourcePermissionWrapper extends BaseModelWrapper<ResourcePermission> implements ModelWrapper<ResourcePermission>, ResourcePermission
This class is a wrapper for ResourcePermission.
ResourcePermission,
Serialized FormmodelRESOURCE_PERMISSION_ID_ACCESSOR| Constructor and Description |
|---|
ResourcePermissionWrapper(ResourcePermission resourcePermission) |
| Modifier and Type | Method and Description |
|---|---|
void |
addResourceAction(String actionId) |
ResourcePermission |
cloneWithOriginalValues() |
long |
getActionIds()
Returns the action IDs of this resource permission.
|
Map<String,Function<ResourcePermission,Object>> |
getAttributeGetterFunctions() |
Map<String,BiConsumer<ResourcePermission,Object>> |
getAttributeSetterBiConsumers() |
long |
getCompanyId()
Returns the company ID of this resource permission.
|
long |
getCtCollectionId()
Returns the ct collection ID of this resource permission.
|
Map<String,Object> |
getModelAttributes() |
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.
|
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.
|
boolean |
hasAction(ResourceAction resourceAction) |
boolean |
hasActionId(String actionId) |
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 |
setActionIds(long actionIds)
Sets the action IDs of this resource permission.
|
void |
setCompanyId(long companyId)
Sets the company ID of this resource permission.
|
void |
setCtCollectionId(long ctCollectionId)
Sets the ct collection ID of this resource permission.
|
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 |
setOwnerId(long ownerId)
Sets the owner ID of this resource permission.
|
void |
setPrimaryKey(long primaryKey)
Sets the primary key of this resource permission.
|
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.
|
protected ResourcePermissionWrapper |
wrap(ResourcePermission resourcePermission) |
clone, compareTo, equals, getExpandoBridge, getModelClass, getModelClassName, getPrimaryKeyObj, getWrappedModel, hashCode, isCachedModel, isEntityCacheEnabled, isEscapedModel, isFinderCacheEnabled, isNew, resetOriginalValues, setCachedModel, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setNew, setPrimaryKeyObj, toCacheModel, toEscapedModel, toString, toUnescapedModel, toXmlStringgetWrappedModelclone, getExpandoBridge, getPrimaryKeyObj, isCachedModel, isEntityCacheEnabled, isEscapedModel, isFinderCacheEnabled, isNew, resetOriginalValues, setCachedModel, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setNew, setPrimaryKeyObj, toCacheModel, toEscapedModel, toUnescapedModel, toXmlStringgetModelClass, getModelClassNamepublic ResourcePermissionWrapper(ResourcePermission resourcePermission)
public Map<String,Object> getModelAttributes()
getModelAttributes in interface BaseModel<ResourcePermission>public void setModelAttributes(Map<String,Object> attributes)
setModelAttributes in interface BaseModel<ResourcePermission>public void addResourceAction(String actionId)
throws PortalException
addResourceAction in interface ResourcePermissionPortalExceptionpublic ResourcePermission cloneWithOriginalValues()
cloneWithOriginalValues in interface BaseModel<ResourcePermission>cloneWithOriginalValues in interface ResourcePermissionModelpublic long getActionIds()
getActionIds in interface ResourcePermissionModelpublic long getCompanyId()
getCompanyId in interface ResourcePermissionModelgetCompanyId in interface ShardedModelpublic long getCtCollectionId()
getCtCollectionId in interface CTModel<ResourcePermission>getCtCollectionId in interface ResourcePermissionModelpublic long getMvccVersion()
getMvccVersion in interface MVCCModelgetMvccVersion in interface ResourcePermissionModelpublic String getName()
getName in interface ResourcePermissionModelpublic long getOwnerId()
getOwnerId in interface ResourcePermissionModelpublic long getPrimaryKey()
getPrimaryKey in interface CTModel<ResourcePermission>getPrimaryKey in interface ResourcePermissionModelpublic String getPrimKey()
getPrimKey in interface ResourcePermissionModelpublic long getPrimKeyId()
getPrimKeyId in interface ResourcePermissionModelpublic long getResourcePermissionId()
getResourcePermissionId in interface ResourcePermissionModelpublic long getRoleId()
getRoleId in interface ResourcePermissionModelpublic int getScope()
getScope 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 isViewActionId()
true if this resource permission is view action ID.isViewActionId in interface ResourcePermissionModeltrue if this resource permission is view action ID; false otherwisepublic 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 setCompanyId(long companyId)
setCompanyId in interface ResourcePermissionModelsetCompanyId in interface ShardedModelcompanyId - the company ID of this resource permissionpublic void setCtCollectionId(long ctCollectionId)
setCtCollectionId in interface CTModel<ResourcePermission>setCtCollectionId in interface ResourcePermissionModelctCollectionId - the ct collection ID of this resource permissionpublic 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 setOwnerId(long ownerId)
setOwnerId in interface ResourcePermissionModelownerId - the owner ID of this resource permissionpublic void setPrimaryKey(long primaryKey)
setPrimaryKey in interface CTModel<ResourcePermission>setPrimaryKey in interface ResourcePermissionModelprimaryKey - the primary key 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 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 Map<String,Function<ResourcePermission,Object>> getAttributeGetterFunctions()
getAttributeGetterFunctions in interface BaseModel<ResourcePermission>public Map<String,BiConsumer<ResourcePermission,Object>> getAttributeSetterBiConsumers()
getAttributeSetterBiConsumers in interface BaseModel<ResourcePermission>protected ResourcePermissionWrapper wrap(ResourcePermission resourcePermission)
wrap in class BaseModelWrapper<ResourcePermission>