@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 ClassedModel
public String getModelClassName()
getModelClassName
in interface ClassedModel
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 Object clone()
BaseModel
clone
in interface BaseModel<ResourcePermission>
clone
in interface ResourcePermissionModel
clone
in class Object
public int compareTo(ResourcePermission resourcePermission)
compareTo
in interface ResourcePermissionModel
compareTo
in interface Comparable<ResourcePermission>
public long getActionIds()
getActionIds
in interface ResourcePermissionModel
public long getCompanyId()
getCompanyId
in interface ResourcePermissionModel
getCompanyId
in interface ShardedModel
public ExpandoBridge getExpandoBridge()
BaseModel
getExpandoBridge
in interface BaseModel<ResourcePermission>
getExpandoBridge
in interface ClassedModel
getExpandoBridge
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 ResourcePermissionModel
public Serializable getPrimaryKeyObj()
BaseModel
getPrimaryKeyObj
in interface BaseModel<ResourcePermission>
getPrimaryKeyObj
in interface ClassedModel
getPrimaryKeyObj
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 int hashCode()
hashCode
in interface ResourcePermissionModel
hashCode
in class Object
public boolean isCachedModel()
BaseModel
true
if this model instance was retrieved from the
entity cache.isCachedModel
in interface BaseModel<ResourcePermission>
isCachedModel
in interface ResourcePermissionModel
true
if this model instance was retrieved from the
entity cache; false
otherwiseBaseModel.setCachedModel(boolean)
public boolean isEscapedModel()
BaseModel
true
if this model instance is escaped.isEscapedModel
in interface BaseModel<ResourcePermission>
isEscapedModel
in interface ResourcePermissionModel
true
if this model instance is escaped;
false
otherwisepublic boolean isNew()
BaseModel
true
if this model instance does not yet exist in
the database.isNew
in interface BaseModel<ResourcePermission>
isNew
in interface ResourcePermissionModel
true
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 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 setCachedModel(boolean cachedModel)
BaseModel
setCachedModel
in interface BaseModel<ResourcePermission>
setCachedModel
in interface ResourcePermissionModel
cachedModel
- whether this model instance was retrieved from the
entity cacheEntityCache
public void setCompanyId(long companyId)
setCompanyId
in interface ResourcePermissionModel
setCompanyId
in interface ShardedModel
companyId
- the company ID of this resource permissionpublic void setExpandoBridgeAttributes(BaseModel<?> baseModel)
setExpandoBridgeAttributes
in interface BaseModel<ResourcePermission>
setExpandoBridgeAttributes
in interface ResourcePermissionModel
public void setExpandoBridgeAttributes(ExpandoBridge expandoBridge)
setExpandoBridgeAttributes
in interface BaseModel<ResourcePermission>
setExpandoBridgeAttributes
in interface ResourcePermissionModel
public void setExpandoBridgeAttributes(ServiceContext serviceContext)
BaseModel
setExpandoBridgeAttributes
in interface BaseModel<ResourcePermission>
setExpandoBridgeAttributes
in interface ResourcePermissionModel
serviceContext
- the service context to be appliedServiceContext.getExpandoBridgeAttributes()
public 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 setNew(boolean n)
BaseModel
setNew
in interface BaseModel<ResourcePermission>
setNew
in interface ResourcePermissionModel
n
- whether this model instance does not yet exist in the databasepublic void setOwnerId(long ownerId)
setOwnerId
in interface ResourcePermissionModel
ownerId
- the owner ID of this resource permissionpublic void setPrimaryKey(long primaryKey)
setPrimaryKey
in interface ResourcePermissionModel
primaryKey
- the primary key of this resource permissionpublic void setPrimaryKeyObj(Serializable primaryKeyObj)
BaseModel
setPrimaryKeyObj
in interface BaseModel<ResourcePermission>
setPrimaryKeyObj
in interface ClassedModel
setPrimaryKeyObj
in interface ResourcePermissionModel
primaryKeyObj
- the primary key of this model instancepublic 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 CacheModel<ResourcePermission> toCacheModel()
BaseModel
toCacheModel
in interface BaseModel<ResourcePermission>
toCacheModel
in interface ResourcePermissionModel
public ResourcePermission toEscapedModel()
BaseModel
AutoEscapeBeanHandler
.toEscapedModel
in interface BaseModel<ResourcePermission>
toEscapedModel
in interface ResourcePermissionModel
AutoEscapeBeanHandler
public String toString()
toString
in interface ResourcePermissionModel
toString
in class Object
public ResourcePermission toUnescapedModel()
toUnescapedModel
in interface BaseModel<ResourcePermission>
toUnescapedModel
in interface ResourcePermissionModel
public String toXmlString()
BaseModel
toXmlString
in interface BaseModel<ResourcePermission>
toXmlString
in interface ResourcePermissionModel
public boolean equals(Object obj)
equals
in class Object
public ResourcePermission getWrappedModel()
getWrappedModel
in interface ModelWrapper<ResourcePermission>
public boolean isEntityCacheEnabled()
BaseModel
true
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()
BaseModel
true
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()
BaseModel
resetOriginalValues
in interface BaseModel<ResourcePermission>