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
modelFields inherited from interface com.liferay.portal.kernel.model.ResourcePermission
RESOURCE_PERMISSION_ID_ACCESSOR -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddResourceAction(String actionId) longReturns the action IDs of this resource permission.longReturns the company ID of this resource permission.longReturns the ct collection ID of this resource permission.longReturns the mvcc version of this resource permission.getName()Returns the name of this resource permission.longReturns the owner ID of this resource permission.longReturns the primary key of this resource permission.Returns the prim key of this resource permission.longReturns the prim key ID of this resource permission.longReturns the resource permission ID of this resource permission.longReturns the role ID of this resource permission.intgetScope()Returns the scope of this resource permission.booleanReturns the view action ID of this resource permission.booleanhasAction(ResourceAction resourceAction) booleanhasActionId(String actionId) booleanReturnstrueif this resource permission is view action ID.voidpersist()Updates this model instance in the database or adds it if it does not yet exist.voidremoveResourceAction(String actionId) voidsetActionIds(long actionIds) Sets the action IDs of this resource permission.voidsetCompanyId(long companyId) Sets the company ID of this resource permission.voidsetCtCollectionId(long ctCollectionId) Sets the ct collection ID of this resource permission.voidsetModelAttributes(Map<String, Object> attributes) voidsetMvccVersion(long mvccVersion) Sets the mvcc version of this resource permission.voidSets the name of this resource permission.voidsetOwnerId(long ownerId) Sets the owner ID of this resource permission.voidsetPrimaryKey(long primaryKey) Sets the primary key of this resource permission.voidsetPrimKey(String primKey) Sets the prim key of this resource permission.voidsetPrimKeyId(long primKeyId) Sets the prim key ID of this resource permission.voidsetResourcePermissionId(long resourcePermissionId) Sets the resource permission ID of this resource permission.voidsetRoleId(long roleId) Sets the role ID of this resource permission.voidsetScope(int scope) Sets the scope of this resource permission.voidsetViewActionId(boolean viewActionId) Sets whether this resource permission is view action ID.protected ResourcePermissionWrapperwrap(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, toUnescapedModelMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods 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, toUnescapedModelMethods inherited from interface com.liferay.portal.kernel.model.ClassedModel
getModelClass, getModelClassNameMethods inherited from interface java.lang.Comparable
compareToMethods inherited from interface com.liferay.portal.kernel.model.ModelWrapper
getWrappedModel
-
Constructor Details
-
ResourcePermissionWrapper
-
-
Method Details
-
getModelAttributes
- Specified by:
getModelAttributesin interfaceBaseModel<ResourcePermission>
-
setModelAttributes
- Specified by:
setModelAttributesin interfaceBaseModel<ResourcePermission>
-
addResourceAction
- Specified by:
addResourceActionin interfaceResourcePermission- Throws:
PortalException
-
cloneWithOriginalValues
- Specified by:
cloneWithOriginalValuesin interfaceBaseModel<ResourcePermission>- Specified by:
cloneWithOriginalValuesin interfaceResourcePermissionModel
-
getActionIds
public long getActionIds()Returns the action IDs of this resource permission.- Specified by:
getActionIdsin interfaceResourcePermissionModel- Returns:
- the action IDs of this resource permission
-
getCompanyId
public long getCompanyId()Returns the company ID of this resource permission.- Specified by:
getCompanyIdin interfaceResourcePermissionModel- Specified by:
getCompanyIdin interfaceShardedModel- Returns:
- the company ID of this resource permission
-
getCtCollectionId
public long getCtCollectionId()Returns the ct collection ID of this resource permission.- Specified by:
getCtCollectionIdin interfaceCTModel<ResourcePermission>- Specified by:
getCtCollectionIdin interfaceResourcePermissionModel- Returns:
- the ct collection ID of this resource permission
-
getMvccVersion
public long getMvccVersion()Returns the mvcc version of this resource permission.- Specified by:
getMvccVersionin interfaceMVCCModel- Specified by:
getMvccVersionin interfaceResourcePermissionModel- Returns:
- the mvcc version of this resource permission
-
getName
Returns the name of this resource permission.- Specified by:
getNamein interfaceResourcePermissionModel- Returns:
- the name of this resource permission
-
getOwnerId
public long getOwnerId()Returns the owner ID of this resource permission.- Specified by:
getOwnerIdin interfaceResourcePermissionModel- Returns:
- the owner ID of this resource permission
-
getPrimaryKey
public long getPrimaryKey()Returns the primary key of this resource permission.- Specified by:
getPrimaryKeyin interfaceCTModel<ResourcePermission>- Specified by:
getPrimaryKeyin interfaceResourcePermissionModel- Returns:
- the primary key of this resource permission
-
getPrimKey
Returns the prim key of this resource permission.- Specified by:
getPrimKeyin interfaceResourcePermissionModel- Returns:
- the prim key of this resource permission
-
getPrimKeyId
public long getPrimKeyId()Returns the prim key ID of this resource permission.- Specified by:
getPrimKeyIdin 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:
getResourcePermissionIdin interfaceResourcePermissionModel- Returns:
- the resource permission ID of this resource permission
-
getRoleId
public long getRoleId()Returns the role ID of this resource permission.- Specified by:
getRoleIdin interfaceResourcePermissionModel- Returns:
- the role ID of this resource permission
-
getScope
public int getScope()Returns the scope of this resource permission.- Specified by:
getScopein interfaceResourcePermissionModel- Returns:
- the scope of this resource permission
-
getViewActionId
public boolean getViewActionId()Returns the view action ID of this resource permission.- Specified by:
getViewActionIdin interfaceResourcePermissionModel- Returns:
- the view action ID of this resource permission
-
hasAction
- Specified by:
hasActionin interfaceResourcePermission
-
hasActionId
- Specified by:
hasActionIdin interfaceResourcePermission
-
isViewActionId
public boolean isViewActionId()Returnstrueif this resource permission is view action ID.- Specified by:
isViewActionIdin interfaceResourcePermissionModel- Returns:
trueif this resource permission is view action ID;falseotherwise
-
persist
public void persist()Description copied from interface:PersistedModelUpdates this model instance in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.- Specified by:
persistin interfacePersistedModel
-
removeResourceAction
- Specified by:
removeResourceActionin interfaceResourcePermission- Throws:
PortalException
-
setActionIds
public void setActionIds(long actionIds) Sets the action IDs of this resource permission.- Specified by:
setActionIdsin 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:
setCompanyIdin interfaceResourcePermissionModel- Specified by:
setCompanyIdin 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:
setCtCollectionIdin interfaceCTModel<ResourcePermission>- Specified by:
setCtCollectionIdin 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:
setMvccVersionin interfaceMVCCModel- Specified by:
setMvccVersionin interfaceResourcePermissionModel- Parameters:
mvccVersion- the mvcc version of this resource permission
-
setName
Sets the name of this resource permission.- Specified by:
setNamein 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:
setOwnerIdin 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:
setPrimaryKeyin interfaceCTModel<ResourcePermission>- Specified by:
setPrimaryKeyin interfaceResourcePermissionModel- Parameters:
primaryKey- the primary key of this resource permission
-
setPrimKey
Sets the prim key of this resource permission.- Specified by:
setPrimKeyin 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:
setPrimKeyIdin 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:
setResourcePermissionIdin 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:
setRoleIdin 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:
setScopein 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:
setViewActionIdin interfaceResourcePermissionModel- Parameters:
viewActionId- the view action ID of this resource permission
-
toXmlString
- Specified by:
toXmlStringin interfaceResourcePermissionModel
-
getAttributeGetterFunctions
- Specified by:
getAttributeGetterFunctionsin interfaceBaseModel<ResourcePermission>
-
getAttributeSetterBiConsumers
- Specified by:
getAttributeSetterBiConsumersin interfaceBaseModel<ResourcePermission>
-
wrap
- Specified by:
wrapin classBaseModelWrapper<ResourcePermission>
-