public class ResourcePermissionWrapper extends BaseModelWrapper<ResourcePermission> implements ModelWrapper<ResourcePermission>, ResourcePermission
This class is a wrapper for ResourcePermission
.
ResourcePermission
,
Serialized Formmodel
RESOURCE_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.
|
String |
toXmlString() |
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
getWrappedModel
clone, getExpandoBridge, getPrimaryKeyObj, isCachedModel, isEntityCacheEnabled, isEscapedModel, isFinderCacheEnabled, isNew, resetOriginalValues, setCachedModel, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setNew, setPrimaryKeyObj, toCacheModel, toEscapedModel, toUnescapedModel
getModelClass, getModelClassName
public 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 ResourcePermission
PortalException
public ResourcePermission cloneWithOriginalValues()
cloneWithOriginalValues
in interface BaseModel<ResourcePermission>
cloneWithOriginalValues
in interface ResourcePermissionModel
public long getActionIds()
getActionIds
in interface ResourcePermissionModel
public long getCompanyId()
getCompanyId
in interface ResourcePermissionModel
getCompanyId
in interface ShardedModel
public long getCtCollectionId()
getCtCollectionId
in interface CTModel<ResourcePermission>
getCtCollectionId
in interface ResourcePermissionModel
public long getMvccVersion()
getMvccVersion
in interface MVCCModel
getMvccVersion
in interface ResourcePermissionModel
public String getName()
getName
in interface ResourcePermissionModel
public long getOwnerId()
getOwnerId
in interface ResourcePermissionModel
public long getPrimaryKey()
getPrimaryKey
in interface CTModel<ResourcePermission>
getPrimaryKey
in interface ResourcePermissionModel
public String getPrimKey()
getPrimKey
in interface ResourcePermissionModel
public long getPrimKeyId()
getPrimKeyId
in interface ResourcePermissionModel
public long getResourcePermissionId()
getResourcePermissionId
in interface ResourcePermissionModel
public long getRoleId()
getRoleId
in interface ResourcePermissionModel
public int getScope()
getScope
in interface ResourcePermissionModel
public boolean getViewActionId()
getViewActionId
in interface ResourcePermissionModel
public boolean hasAction(ResourceAction resourceAction)
hasAction
in interface ResourcePermission
public boolean hasActionId(String actionId)
hasActionId
in interface ResourcePermission
public boolean isViewActionId()
true
if this resource permission is view action ID.isViewActionId
in interface ResourcePermissionModel
true
if this resource permission is view action ID; false
otherwisepublic void persist()
PersistedModel
persist
in interface PersistedModel
public void removeResourceAction(String actionId) throws PortalException
removeResourceAction
in interface ResourcePermission
PortalException
public void setActionIds(long actionIds)
setActionIds
in interface ResourcePermissionModel
actionIds
- the action IDs of this resource permissionpublic void setCompanyId(long companyId)
setCompanyId
in interface ResourcePermissionModel
setCompanyId
in interface ShardedModel
companyId
- the company ID of this resource permissionpublic void setCtCollectionId(long ctCollectionId)
setCtCollectionId
in interface CTModel<ResourcePermission>
setCtCollectionId
in interface ResourcePermissionModel
ctCollectionId
- the ct collection ID of this resource permissionpublic void setMvccVersion(long mvccVersion)
setMvccVersion
in interface MVCCModel
setMvccVersion
in interface ResourcePermissionModel
mvccVersion
- the mvcc version of this resource permissionpublic void setName(String name)
setName
in interface ResourcePermissionModel
name
- the name of this resource permissionpublic void setOwnerId(long ownerId)
setOwnerId
in interface ResourcePermissionModel
ownerId
- the owner ID of this resource permissionpublic void setPrimaryKey(long primaryKey)
setPrimaryKey
in interface CTModel<ResourcePermission>
setPrimaryKey
in interface ResourcePermissionModel
primaryKey
- the primary key of this resource permissionpublic void setPrimKey(String primKey)
setPrimKey
in interface ResourcePermissionModel
primKey
- the prim key of this resource permissionpublic void setPrimKeyId(long primKeyId)
setPrimKeyId
in interface ResourcePermissionModel
primKeyId
- the prim key ID of this resource permissionpublic void setResourcePermissionId(long resourcePermissionId)
setResourcePermissionId
in interface ResourcePermissionModel
resourcePermissionId
- the resource permission ID of this resource permissionpublic void setRoleId(long roleId)
setRoleId
in interface ResourcePermissionModel
roleId
- the role ID of this resource permissionpublic void setScope(int scope)
setScope
in interface ResourcePermissionModel
scope
- the scope of this resource permissionpublic void setViewActionId(boolean viewActionId)
setViewActionId
in interface ResourcePermissionModel
viewActionId
- the view action ID of this resource permissionpublic String toXmlString()
toXmlString
in interface ResourcePermissionModel
public 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>