Liferay 6.2-ce-ga5

com.liferay.portal.model
Class ResourcePermissionWrapper

java.lang.Object
  extended by com.liferay.portal.model.ResourcePermissionWrapper
All Implemented Interfaces:
BaseModel<ResourcePermission>, ClassedModel, ModelWrapper<ResourcePermission>, PersistedModel, ResourcePermission, ResourcePermissionModel, 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.

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()
           
 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 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.
 ResourcePermission getWrappedModel()
           
 ResourcePermission getWrappedResourcePermission()
          Deprecated. As of 6.1.0, replaced by getWrappedModel()
 boolean hasActionId(String actionId)
           
 int hashCode()
           
 boolean isCachedModel()
          Returns true if this model instance was retrieved from the entity cache.
 boolean isEscapedModel()
          Returns true if this model instance is escaped.
 boolean isNew()
          Returns true if this model instance does not yet exist in the database.
 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 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 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.
 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>

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

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

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

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

getCompanyId

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

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

setCompanyId

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

Specified by:
setCompanyId in interface ResourcePermissionModel
Parameters:
companyId - the company ID 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

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

getScope

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

Specified by:
getScope in interface ResourcePermissionModel
Returns:
the scope 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

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

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

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

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

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

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

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

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

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

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

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)

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

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

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

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

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

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( )

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>

hashCode

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

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

toUnescapedModel

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

toString

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

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

persist

public void persist()
             throws SystemException
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
Throws:
SystemException - if a system exception occurred

addResourceAction

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

hasActionId

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

removeResourceAction

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

equals

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

getWrappedResourcePermission

public ResourcePermission getWrappedResourcePermission()
Deprecated. As of 6.1.0, replaced by getWrappedModel()


getWrappedModel

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

resetOriginalValues

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

Specified by:
resetOriginalValues in interface BaseModel<ResourcePermission>

Liferay 6.2-ce-ga5