Package com.liferay.portal.kernel.model
Class ResourcePermissionWrapper
Object
com.liferay.portal.kernel.model.wrapper.BaseModelWrapper<ResourcePermission>
com.liferay.portal.kernel.model.ResourcePermissionWrapper
- All Implemented Interfaces:
BaseModel<ResourcePermission>
,CTModel<ResourcePermission>
,ClassedModel
,ModelWrapper<ResourcePermission>
,MVCCModel
,PersistedModel
,ResourcePermission
,ResourcePermissionModel
,ShardedModel
,Serializable
,Cloneable
,Comparable<ResourcePermission>
public class ResourcePermissionWrapper
extends BaseModelWrapper<ResourcePermission>
implements ModelWrapper<ResourcePermission>, ResourcePermission
This class is a wrapper for ResourcePermission
.
- Author:
- Brian Wing Shun Chan
- See Also:
- {$generated.description}
-
Field Summary
Fields inherited from class com.liferay.portal.kernel.model.wrapper.BaseModelWrapper
model
Fields inherited from interface com.liferay.portal.kernel.model.ResourcePermission
RESOURCE_PERMISSION_ID_ACCESSOR
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addResourceAction
(String actionId) long
Returns the action IDs of this resource permission.long
Returns the company ID of this resource permission.long
Returns the ct collection ID of this resource permission.long
Returns the mvcc version of this resource permission.getName()
Returns the name of this resource permission.long
Returns the owner ID of this resource permission.long
Returns the primary key of this resource permission.Returns the prim key of this resource permission.long
Returns the prim key ID of this resource permission.long
Returns the resource permission ID of this resource permission.long
Returns the role ID of this resource permission.int
getScope()
Returns the scope of this resource permission.boolean
Returns the view action ID of this resource permission.boolean
hasAction
(ResourceAction resourceAction) boolean
hasActionId
(String actionId) boolean
Returnstrue
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
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) Methods inherited from class com.liferay.portal.kernel.model.wrapper.BaseModelWrapper
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
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.liferay.portal.kernel.model.BaseModel
clone, getExpandoBridge, getPrimaryKeyObj, isCachedModel, isEntityCacheEnabled, isEscapedModel, isFinderCacheEnabled, isNew, resetOriginalValues, setCachedModel, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setNew, setPrimaryKeyObj, toCacheModel, toEscapedModel, toUnescapedModel
Methods inherited from interface com.liferay.portal.kernel.model.ClassedModel
getModelClass, getModelClassName
Methods inherited from interface java.lang.Comparable
compareTo
Methods inherited from interface com.liferay.portal.kernel.model.ModelWrapper
getWrappedModel
-
Constructor Details
-
ResourcePermissionWrapper
-
-
Method Details
-
getModelAttributes
- Specified by:
getModelAttributes
in interfaceBaseModel<ResourcePermission>
-
setModelAttributes
- Specified by:
setModelAttributes
in interfaceBaseModel<ResourcePermission>
-
addResourceAction
- Specified by:
addResourceAction
in interfaceResourcePermission
- Throws:
PortalException
-
cloneWithOriginalValues
- Specified by:
cloneWithOriginalValues
in interfaceBaseModel<ResourcePermission>
- Specified by:
cloneWithOriginalValues
in interfaceResourcePermissionModel
-
getActionIds
public long getActionIds()Returns the action IDs of this resource permission.- Specified by:
getActionIds
in interfaceResourcePermissionModel
- Returns:
- the action IDs of this resource permission
-
getCompanyId
public long getCompanyId()Returns the company ID of this resource permission.- Specified by:
getCompanyId
in interfaceResourcePermissionModel
- Specified by:
getCompanyId
in interfaceShardedModel
- Returns:
- the company ID of this resource permission
-
getCtCollectionId
public long getCtCollectionId()Returns the ct collection ID of this resource permission.- Specified by:
getCtCollectionId
in interfaceCTModel<ResourcePermission>
- Specified by:
getCtCollectionId
in interfaceResourcePermissionModel
- Returns:
- the ct collection ID of this resource permission
-
getMvccVersion
public long getMvccVersion()Returns the mvcc version of this resource permission.- Specified by:
getMvccVersion
in interfaceMVCCModel
- Specified by:
getMvccVersion
in interfaceResourcePermissionModel
- Returns:
- the mvcc version of this resource permission
-
getName
Returns the name of this resource permission.- Specified by:
getName
in interfaceResourcePermissionModel
- Returns:
- the name of this resource permission
-
getOwnerId
public long getOwnerId()Returns the owner ID of this resource permission.- Specified by:
getOwnerId
in interfaceResourcePermissionModel
- Returns:
- the owner ID of this resource permission
-
getPrimaryKey
public long getPrimaryKey()Returns the primary key of this resource permission.- Specified by:
getPrimaryKey
in interfaceCTModel<ResourcePermission>
- Specified by:
getPrimaryKey
in interfaceResourcePermissionModel
- Returns:
- the primary key of this resource permission
-
getPrimKey
Returns the prim key of this resource permission.- Specified by:
getPrimKey
in interfaceResourcePermissionModel
- Returns:
- the prim key of this resource permission
-
getPrimKeyId
public long getPrimKeyId()Returns the prim key ID of this resource permission.- Specified by:
getPrimKeyId
in interfaceResourcePermissionModel
- Returns:
- the prim key ID of this resource permission
-
getResourcePermissionId
public long getResourcePermissionId()Returns the resource permission ID of this resource permission.- Specified by:
getResourcePermissionId
in interfaceResourcePermissionModel
- Returns:
- the resource permission ID of this resource permission
-
getRoleId
public long getRoleId()Returns the role ID of this resource permission.- Specified by:
getRoleId
in interfaceResourcePermissionModel
- Returns:
- the role ID of this resource permission
-
getScope
public int getScope()Returns the scope of this resource permission.- Specified by:
getScope
in interfaceResourcePermissionModel
- Returns:
- the scope of this resource permission
-
getViewActionId
public boolean getViewActionId()Returns the view action ID of this resource permission.- Specified by:
getViewActionId
in interfaceResourcePermissionModel
- Returns:
- the view action ID of this resource permission
-
hasAction
- Specified by:
hasAction
in interfaceResourcePermission
-
hasActionId
- Specified by:
hasActionId
in interfaceResourcePermission
-
isViewActionId
public boolean isViewActionId()Returnstrue
if this resource permission is view action ID.- Specified by:
isViewActionId
in interfaceResourcePermissionModel
- Returns:
true
if this resource permission is view action ID;false
otherwise
-
persist
public void persist()Description copied from interface:PersistedModel
Updates this model instance in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.- Specified by:
persist
in interfacePersistedModel
-
removeResourceAction
- Specified by:
removeResourceAction
in interfaceResourcePermission
- Throws:
PortalException
-
setActionIds
public void setActionIds(long actionIds) Sets the action IDs of this resource permission.- Specified by:
setActionIds
in interfaceResourcePermissionModel
- Parameters:
actionIds
- the action IDs of this resource permission
-
setCompanyId
public void setCompanyId(long companyId) Sets the company ID of this resource permission.- Specified by:
setCompanyId
in interfaceResourcePermissionModel
- Specified by:
setCompanyId
in interfaceShardedModel
- Parameters:
companyId
- the company ID of this resource permission
-
setCtCollectionId
public void setCtCollectionId(long ctCollectionId) Sets the ct collection ID of this resource permission.- Specified by:
setCtCollectionId
in interfaceCTModel<ResourcePermission>
- Specified by:
setCtCollectionId
in interfaceResourcePermissionModel
- Parameters:
ctCollectionId
- the ct collection ID of this resource permission
-
setMvccVersion
public void setMvccVersion(long mvccVersion) Sets the mvcc version of this resource permission.- Specified by:
setMvccVersion
in interfaceMVCCModel
- Specified by:
setMvccVersion
in interfaceResourcePermissionModel
- Parameters:
mvccVersion
- the mvcc version of this resource permission
-
setName
Sets the name of this resource permission.- Specified by:
setName
in interfaceResourcePermissionModel
- Parameters:
name
- the name of this resource permission
-
setOwnerId
public void setOwnerId(long ownerId) Sets the owner ID of this resource permission.- Specified by:
setOwnerId
in interfaceResourcePermissionModel
- Parameters:
ownerId
- the owner ID of this resource permission
-
setPrimaryKey
public void setPrimaryKey(long primaryKey) Sets the primary key of this resource permission.- Specified by:
setPrimaryKey
in interfaceCTModel<ResourcePermission>
- Specified by:
setPrimaryKey
in interfaceResourcePermissionModel
- Parameters:
primaryKey
- the primary key of this resource permission
-
setPrimKey
Sets the prim key of this resource permission.- Specified by:
setPrimKey
in interfaceResourcePermissionModel
- Parameters:
primKey
- the prim key of this resource permission
-
setPrimKeyId
public void setPrimKeyId(long primKeyId) Sets the prim key ID of this resource permission.- Specified by:
setPrimKeyId
in interfaceResourcePermissionModel
- Parameters:
primKeyId
- the prim key ID of this resource permission
-
setResourcePermissionId
public void setResourcePermissionId(long resourcePermissionId) Sets the resource permission ID of this resource permission.- Specified by:
setResourcePermissionId
in interfaceResourcePermissionModel
- Parameters:
resourcePermissionId
- the resource permission ID of this resource permission
-
setRoleId
public void setRoleId(long roleId) Sets the role ID of this resource permission.- Specified by:
setRoleId
in interfaceResourcePermissionModel
- Parameters:
roleId
- the role ID of this resource permission
-
setScope
public void setScope(int scope) Sets the scope of this resource permission.- Specified by:
setScope
in interfaceResourcePermissionModel
- Parameters:
scope
- the scope of this resource permission
-
setViewActionId
public void setViewActionId(boolean viewActionId) Sets whether this resource permission is view action ID.- Specified by:
setViewActionId
in interfaceResourcePermissionModel
- Parameters:
viewActionId
- the view action ID of this resource permission
-
toXmlString
- Specified by:
toXmlString
in interfaceResourcePermissionModel
-
getAttributeGetterFunctions
- Specified by:
getAttributeGetterFunctions
in interfaceBaseModel<ResourcePermission>
-
getAttributeSetterBiConsumers
- Specified by:
getAttributeSetterBiConsumers
in interfaceBaseModel<ResourcePermission>
-
wrap
- Specified by:
wrap
in classBaseModelWrapper<ResourcePermission>
-