Liferay 7.0-ce-b4

com.liferay.portal.model
Class ResourcePermissionWrapper

java.lang.Object
  extended by com.liferay.portal.model.ResourcePermissionWrapper
All Implemented Interfaces:
BaseModel<ResourcePermission>, ClassedModel, ModelWrapper<ResourcePermission>, MVCCModel, PersistedModel, ResourcePermission, ResourcePermissionModel, ShardedModel, Serializable, Cloneable, Comparable<ResourcePermission>

@ProviderType
public class ResourcePermissionWrapper
extends Object
implements ResourcePermission, ModelWrapper<ResourcePermission>

This class is a wrapper for ResourcePermission.

See Also:
ResourcePermission, Serialized Form
ServiceBuilder generated this class. Modifications in this class will be overwritten the next time it is generated.

Field Summary
 
Fields inherited from interface com.liferay.portal.model.ResourcePermission
RESOURCE_PERMISSION_ID_ACCESSOR
 
Constructor Summary
ResourcePermissionWrapper(ResourcePermission resourcePermission)
           
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ResourcePermissionWrapper

public ResourcePermissionWrapper(ResourcePermission resourcePermission)
Method Detail

getModelClass

public Class<?> getModelClass()
Specified by:
getModelClass in interface ClassedModel

getModelClassName

public String getModelClassName()
Specified by:
getModelClassName in interface ClassedModel

getModelAttributes

public Map<String,Object> getModelAttributes()
Specified by:
getModelAttributes in interface BaseModel<ResourcePermission>

setModelAttributes

public void setModelAttributes(Map<String,Object> attributes)
Specified by:
setModelAttributes in interface BaseModel<ResourcePermission>

addResourceAction

public void addResourceAction(String actionId)
                       throws PortalException
Specified by:
addResourceAction in interface ResourcePermission
Throws:
PortalException

clone

public Object clone()
Description copied from interface: BaseModel
Creates a shallow clone of this model instance.

Specified by:
clone in interface BaseModel<ResourcePermission>
Specified by:
clone in interface ResourcePermissionModel
Overrides:
clone in class Object
Returns:
the shallow clone of this model instance

compareTo

public int compareTo(ResourcePermission resourcePermission)
Specified by:
compareTo in interface ResourcePermissionModel
Specified by:
compareTo in interface Comparable<ResourcePermission>

getActionIds

public long getActionIds()
Returns the action IDs of this resource permission.

Specified by:
getActionIds in interface ResourcePermissionModel
Returns:
the action IDs of this resource permission

getCompanyId

public long getCompanyId()
Returns the company ID of this resource permission.

Specified by:
getCompanyId in interface ResourcePermissionModel
Specified by:
getCompanyId in interface ShardedModel
Returns:
the company ID of this resource permission

getExpandoBridge

public ExpandoBridge getExpandoBridge()
Description copied from interface: BaseModel
Returns the expando bridge for this model instance.

Specified by:
getExpandoBridge in interface BaseModel<ResourcePermission>
Specified by:
getExpandoBridge in interface ClassedModel
Specified by:
getExpandoBridge in interface ResourcePermissionModel
Returns:
the expando bridge for this model instance

getMvccVersion

public long getMvccVersion()
Returns the mvcc version of this resource permission.

Specified by:
getMvccVersion in interface MVCCModel
Specified by:
getMvccVersion in interface ResourcePermissionModel
Returns:
the mvcc version of this resource permission

getName

public String getName()
Returns the name of this resource permission.

Specified by:
getName in interface ResourcePermissionModel
Returns:
the name of this resource permission

getOwnerId

public long getOwnerId()
Returns the owner ID of this resource permission.

Specified by:
getOwnerId in interface ResourcePermissionModel
Returns:
the owner ID of this resource permission

getPrimKey

public String getPrimKey()
Returns the prim key of this resource permission.

Specified by:
getPrimKey in interface ResourcePermissionModel
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 interface ResourcePermissionModel
Returns:
the prim key ID of this resource permission

getPrimaryKey

public long getPrimaryKey()
Returns the primary key of this resource permission.

Specified by:
getPrimaryKey in interface ResourcePermissionModel
Returns:
the primary key of this resource permission

getPrimaryKeyObj

public Serializable getPrimaryKeyObj()
Description copied from interface: BaseModel
Returns the primary key of this model instance.

Specified by:
getPrimaryKeyObj in interface BaseModel<ResourcePermission>
Specified by:
getPrimaryKeyObj in interface ClassedModel
Specified by:
getPrimaryKeyObj in interface ResourcePermissionModel
Returns:
the primary key of this model instance

getResourcePermissionId

public long getResourcePermissionId()
Returns the resource permission ID of this resource permission.

Specified by:
getResourcePermissionId in interface ResourcePermissionModel
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 interface ResourcePermissionModel
Returns:
the role ID of this resource permission

getScope

public int getScope()
Returns the scope of this resource permission.

Specified by:
getScope in interface ResourcePermissionModel
Returns:
the scope of this resource permission

getViewActionId

public boolean getViewActionId()
Returns the view action ID of this resource permission.

Specified by:
getViewActionId in interface ResourcePermissionModel
Returns:
the view action ID of this resource permission

hasAction

public boolean hasAction(ResourceAction resourceAction)
Specified by:
hasAction in interface ResourcePermission

hasActionId

public boolean hasActionId(String actionId)
Specified by:
hasActionId in interface ResourcePermission

hashCode

public int hashCode()
Specified by:
hashCode in interface ResourcePermissionModel
Overrides:
hashCode in class Object

isCachedModel

public boolean isCachedModel()
Description copied from interface: BaseModel
Returns true if this model instance was retrieved from the entity cache.

Specified by:
isCachedModel in interface BaseModel<ResourcePermission>
Specified by:
isCachedModel in interface ResourcePermissionModel
Returns:
true if this model instance was retrieved from the entity cache; false otherwise
See Also:
BaseModel.setCachedModel(boolean)

isEscapedModel

public boolean isEscapedModel()
Description copied from interface: BaseModel
Returns true if this model instance is escaped.

Specified by:
isEscapedModel in interface BaseModel<ResourcePermission>
Specified by:
isEscapedModel in interface ResourcePermissionModel
Returns:
true if this model instance is escaped; false otherwise

isNew

public boolean isNew()
Description copied from interface: BaseModel
Returns true if this model instance does not yet exist in the database.

Specified by:
isNew in interface BaseModel<ResourcePermission>
Specified by:
isNew in interface ResourcePermissionModel
Returns:
true if this model instance does not yet exist in the database; false otherwise

isViewActionId

public boolean isViewActionId()
Returns true if this resource permission is view action ID.

Specified by:
isViewActionId in interface ResourcePermissionModel
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 interface PersistedModel

removeResourceAction

public void removeResourceAction(String actionId)
                          throws PortalException
Specified by:
removeResourceAction in interface ResourcePermission
Throws:
PortalException

setActionIds

public void setActionIds(long actionIds)
Sets the action IDs of this resource permission.

Specified by:
setActionIds in interface ResourcePermissionModel
Parameters:
actionIds - the action IDs of this resource permission

setCachedModel

public void setCachedModel(boolean cachedModel)
Description copied from interface: BaseModel
Sets whether this model instance was retrieved from the entity cache.

Specified by:
setCachedModel in interface BaseModel<ResourcePermission>
Specified by:
setCachedModel in interface ResourcePermissionModel
Parameters:
cachedModel - whether this model instance was retrieved from the entity cache
See Also:
EntityCache

setCompanyId

public void setCompanyId(long companyId)
Sets the company ID of this resource permission.

Specified by:
setCompanyId in interface ResourcePermissionModel
Specified by:
setCompanyId in interface ShardedModel
Parameters:
companyId - the company ID of this resource permission

setExpandoBridgeAttributes

public void setExpandoBridgeAttributes(BaseModel<?> baseModel)
Specified by:
setExpandoBridgeAttributes in interface BaseModel<ResourcePermission>
Specified by:
setExpandoBridgeAttributes in interface ResourcePermissionModel

setExpandoBridgeAttributes

public void setExpandoBridgeAttributes(ExpandoBridge expandoBridge)
Specified by:
setExpandoBridgeAttributes in interface BaseModel<ResourcePermission>
Specified by:
setExpandoBridgeAttributes in interface ResourcePermissionModel

setExpandoBridgeAttributes

public void setExpandoBridgeAttributes(ServiceContext serviceContext)
Description copied from interface: BaseModel
Sets the expando bridge attributes for this model instance to the attributes stored in the service context.

Specified by:
setExpandoBridgeAttributes in interface BaseModel<ResourcePermission>
Specified by:
setExpandoBridgeAttributes in interface ResourcePermissionModel
Parameters:
serviceContext - the service context to be applied
See Also:
ServiceContext.getExpandoBridgeAttributes()

setMvccVersion

public void setMvccVersion(long mvccVersion)
Sets the mvcc version of this resource permission.

Specified by:
setMvccVersion in interface MVCCModel
Specified by:
setMvccVersion in interface ResourcePermissionModel
Parameters:
mvccVersion - the mvcc version of this resource permission

setName

public void setName(String name)
Sets the name of this resource permission.

Specified by:
setName in interface ResourcePermissionModel
Parameters:
name - the name of this resource permission

setNew

public void setNew(boolean n)
Description copied from interface: BaseModel
Sets whether this model instance does not yet exist in the database.

Specified by:
setNew in interface BaseModel<ResourcePermission>
Specified by:
setNew in interface ResourcePermissionModel
Parameters:
n - whether this model instance does not yet exist in the database

setOwnerId

public void setOwnerId(long ownerId)
Sets the owner ID of this resource permission.

Specified by:
setOwnerId in interface ResourcePermissionModel
Parameters:
ownerId - the owner ID of this resource permission

setPrimKey

public void setPrimKey(String primKey)
Sets the prim key of this resource permission.

Specified by:
setPrimKey in interface ResourcePermissionModel
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 interface ResourcePermissionModel
Parameters:
primKeyId - the prim key ID of this resource permission

setPrimaryKey

public void setPrimaryKey(long primaryKey)
Sets the primary key of this resource permission.

Specified by:
setPrimaryKey in interface ResourcePermissionModel
Parameters:
primaryKey - the primary key of this resource permission

setPrimaryKeyObj

public void setPrimaryKeyObj(Serializable primaryKeyObj)
Description copied from interface: BaseModel
Sets the primary key of this model instance.

Specified by:
setPrimaryKeyObj in interface BaseModel<ResourcePermission>
Specified by:
setPrimaryKeyObj in interface ClassedModel
Specified by:
setPrimaryKeyObj in interface ResourcePermissionModel
Parameters:
primaryKeyObj - the primary key of this model instance

setResourcePermissionId

public void setResourcePermissionId(long resourcePermissionId)
Sets the resource permission ID of this resource permission.

Specified by:
setResourcePermissionId in interface ResourcePermissionModel
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 interface ResourcePermissionModel
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 interface ResourcePermissionModel
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 interface ResourcePermissionModel
Parameters:
viewActionId - the view action ID of this resource permission

toCacheModel

public CacheModel<ResourcePermission> toCacheModel()
Description copied from interface: BaseModel
Returns a cache model object for this entity used by entity cache.

Specified by:
toCacheModel in interface BaseModel<ResourcePermission>
Specified by:
toCacheModel in interface ResourcePermissionModel
Returns:
the cache model object

toEscapedModel

public ResourcePermission toEscapedModel()
Description copied from interface: BaseModel
Returns a copy of this entity as an escaped model instance by wrapping it with an AutoEscapeBeanHandler.

Specified by:
toEscapedModel in interface BaseModel<ResourcePermission>
Specified by:
toEscapedModel in interface ResourcePermissionModel
Returns:
the escaped model instance
See Also:
AutoEscapeBeanHandler

toString

public String toString()
Specified by:
toString in interface ResourcePermissionModel
Overrides:
toString in class Object

toUnescapedModel

public ResourcePermission toUnescapedModel()
Specified by:
toUnescapedModel in interface BaseModel<ResourcePermission>
Specified by:
toUnescapedModel in interface ResourcePermissionModel

toXmlString

public String toXmlString()
Description copied from interface: BaseModel
Returns the XML representation of this model instance.

Specified by:
toXmlString in interface BaseModel<ResourcePermission>
Specified by:
toXmlString in interface ResourcePermissionModel
Returns:
the XML representation of this model instance

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

getWrappedModel

public ResourcePermission getWrappedModel()
Specified by:
getWrappedModel in interface ModelWrapper<ResourcePermission>

isEntityCacheEnabled

public boolean isEntityCacheEnabled()
Description copied from interface: BaseModel
Returns true if this model's entity cache is enabled.

Specified by:
isEntityCacheEnabled in interface BaseModel<ResourcePermission>
Returns:
true if this model's entity cache is enabled; false otherwise

isFinderCacheEnabled

public boolean isFinderCacheEnabled()
Description copied from interface: BaseModel
Returns true if this model's finder cache is enabled.

Specified by:
isFinderCacheEnabled in interface BaseModel<ResourcePermission>
Returns:
true if this model's finder cache is enabled; false otherwise

resetOriginalValues

public void resetOriginalValues()
Description copied from interface: BaseModel
Reset all original fields to current values.

Specified by:
resetOriginalValues in interface BaseModel<ResourcePermission>

Liferay 7.0-ce-b4