Liferay 6.1.2-ce-ga3

com.liferay.portal.model
Class PermissionWrapper

java.lang.Object
  extended by com.liferay.portal.model.PermissionWrapper
All Implemented Interfaces:
BaseModel<Permission>, ClassedModel, ModelWrapper<Permission>, Permission, PermissionModel, PersistedModel, Serializable, Cloneable, Comparable<Permission>

public class PermissionWrapper
extends Object
implements Permission, ModelWrapper<Permission>

This class is a wrapper for Permission.

See Also:
Permission, Serialized Form

Field Summary
 
Fields inherited from interface com.liferay.portal.model.Permission
PERMISSION_ID_ACCESSOR
 
Constructor Summary
PermissionWrapper(Permission permission)
           
 
Method Summary
 Object clone()
          Creates a shallow clone of this model instance.
 int compareTo(Permission permission)
           
 boolean equals(Object obj)
           
 String getActionId()
          Returns the action ID of this permission.
 long getCompanyId()
          Returns the company ID of this permission.
 ExpandoBridge getExpandoBridge()
          Returns the expando bridge for this model instance.
 Map<String,Object> getModelAttributes()
           
 Class<?> getModelClass()
           
 String getModelClassName()
           
 String getName()
           
 long getPermissionId()
          Returns the permission ID of this permission.
 long getPrimaryKey()
          Returns the primary key of this permission.
 Serializable getPrimaryKeyObj()
          Returns the primary key of this model instance.
 String getPrimKey()
           
 long getResourceId()
          Returns the resource ID of this permission.
 int getScope()
           
 Permission getWrappedModel()
           
 Permission getWrappedPermission()
          Deprecated. Renamed to getWrappedModel()
 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 resetOriginalValues()
          Reset all original fields to current values.
 void setActionId(String actionId)
          Sets the action ID of this 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 permission.
 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)
           
 void setNew(boolean n)
          Sets whether this model instance does not yet exist in the database.
 void setPermissionId(long permissionId)
          Sets the permission ID of this permission.
 void setPrimaryKey(long primaryKey)
          Sets the primary key of this permission.
 void setPrimaryKeyObj(Serializable primaryKeyObj)
          Sets the primary key of this model instance.
 void setPrimKey(String primKey)
           
 void setResourceId(long resourceId)
          Sets the resource ID of this permission.
 void setScope(int scope)
           
 CacheModel<Permission> toCacheModel()
          Returns a cache model object for this entity used by entity cache.
 Permission toEscapedModel()
          Returns a copy of this entity as an escaped model instance by wrapping it with an AutoEscapeBeanHandler.
 String toString()
           
 Permission 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

PermissionWrapper

public PermissionWrapper(Permission permission)
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<Permission>

setModelAttributes

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

getPrimaryKey

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

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

setPrimaryKey

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

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

getPermissionId

public long getPermissionId()
Returns the permission ID of this permission.

Specified by:
getPermissionId in interface PermissionModel
Returns:
the permission ID of this permission

setPermissionId

public void setPermissionId(long permissionId)
Sets the permission ID of this permission.

Specified by:
setPermissionId in interface PermissionModel
Parameters:
permissionId - the permission ID of this permission

getCompanyId

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

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

setCompanyId

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

Specified by:
setCompanyId in interface PermissionModel
Parameters:
companyId - the company ID of this permission

getActionId

public String getActionId()
Returns the action ID of this permission.

Specified by:
getActionId in interface PermissionModel
Returns:
the action ID of this permission

setActionId

public void setActionId(String actionId)
Sets the action ID of this permission.

Specified by:
setActionId in interface PermissionModel
Parameters:
actionId - the action ID of this permission

getResourceId

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

Specified by:
getResourceId in interface PermissionModel
Returns:
the resource ID of this permission

setResourceId

public void setResourceId(long resourceId)
Sets the resource ID of this permission.

Specified by:
setResourceId in interface PermissionModel
Parameters:
resourceId - the resource ID of this 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<Permission>
Specified by:
isNew in interface PermissionModel
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<Permission>
Specified by:
setNew in interface PermissionModel
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<Permission>
Specified by:
isCachedModel in interface PermissionModel
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<Permission>
Specified by:
setCachedModel in interface PermissionModel
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<Permission>
Specified by:
isEscapedModel in interface PermissionModel
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<Permission>
Specified by:
getPrimaryKeyObj in interface ClassedModel
Specified by:
getPrimaryKeyObj in interface PermissionModel
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<Permission>
Specified by:
setPrimaryKeyObj in interface ClassedModel
Specified by:
setPrimaryKeyObj in interface PermissionModel
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<Permission>
Specified by:
getExpandoBridge in interface ClassedModel
Specified by:
getExpandoBridge in interface PermissionModel
Returns:
the expando bridge for this model instance

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<Permission>
Specified by:
setExpandoBridgeAttributes in interface PermissionModel
Parameters:
serviceContext - the service context
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<Permission>
Specified by:
clone in interface PermissionModel
Overrides:
clone in class Object
Returns:
the shallow clone of this model instance

compareTo

public int compareTo(Permission permission)
Specified by:
compareTo in interface PermissionModel
Specified by:
compareTo in interface Comparable<Permission>

hashCode

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

toCacheModel

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

Specified by:
toCacheModel in interface BaseModel<Permission>
Specified by:
toCacheModel in interface PermissionModel
Returns:
the cache model object

toEscapedModel

public Permission 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<Permission>
Specified by:
toEscapedModel in interface PermissionModel
Returns:
the escaped model instance
See Also:
AutoEscapeBeanHandler

toUnescapedModel

public Permission toUnescapedModel()
Specified by:
toUnescapedModel in interface BaseModel<Permission>
Specified by:
toUnescapedModel in interface PermissionModel

toString

public String toString()
Specified by:
toString in interface PermissionModel
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<Permission>
Specified by:
toXmlString in interface PermissionModel
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

getName

public String getName()
Specified by:
getName in interface Permission

getPrimKey

public String getPrimKey()
Specified by:
getPrimKey in interface Permission

getScope

public int getScope()
Specified by:
getScope in interface Permission

setName

public void setName(String name)
Specified by:
setName in interface Permission

setPrimKey

public void setPrimKey(String primKey)
Specified by:
setPrimKey in interface Permission

setScope

public void setScope(int scope)
Specified by:
setScope in interface Permission

equals

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

getWrappedPermission

public Permission getWrappedPermission()
Deprecated. Renamed to getWrappedModel()


getWrappedModel

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

resetOriginalValues

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

Specified by:
resetOriginalValues in interface BaseModel<Permission>

Liferay 6.1.2-ce-ga3