Liferay 6.0.5

com.liferay.portal.model
Class PermissionWrapper

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

public class PermissionWrapper
extends Object
implements Permission

This class is a wrapper for Permission.

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

Constructor Summary
PermissionWrapper(Permission permission)
           
 
Method Summary
 Object clone()
          Creates a shallow clone of this model instance.
 int compareTo(Permission permission)
           
 String getActionId()
          Gets the action id of this permission.
 long getCompanyId()
          Gets the company id of this permission.
 ExpandoBridge getExpandoBridge()
          Gets the expando bridge for this model instance.
 String getName()
           
 long getPermissionId()
          Gets the permission id of this permission.
 long getPrimaryKey()
          Gets the primary key of this permission.
 Serializable getPrimaryKeyObj()
          Gets the primary key of this model instance.
 String getPrimKey()
           
 long getResourceId()
          Gets the resource id of this permission.
 int getScope()
           
 Permission getWrappedPermission()
           
 int hashCode()
           
 boolean isCachedModel()
          Determines if this model instance was retrieved from the entity cache.
 boolean isEscapedModel()
          Determines if this model instance is escaped.
 boolean isNew()
          Determines if this model instance does not yet exist in the database.
 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 setEscapedModel(boolean escapedModel)
          Sets whether this model instance is escaped, meaning that all strings returned from getter methods are HTML safe.
 void setExpandoBridgeAttributes(ServiceContext serviceContext)
          Sets the expando bridge attributes for this model instance to the attributes stored in the service context.
 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 pk)
          Sets the primary key of this permission
 void setPrimKey(String primKey)
           
 void setResourceId(long resourceId)
          Sets the resource id of this permission.
 void setScope(int scope)
           
 Permission toEscapedModel()
          Gets a copy of this permission as an escaped model instance by wrapping it with an AutoEscapeBeanHandler.
 String toString()
           
 String toXmlString()
          Gets the XML representation of this model instance.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PermissionWrapper

public PermissionWrapper(Permission permission)
Method Detail

getPrimaryKey

public long getPrimaryKey()
Description copied from interface: PermissionModel
Gets the primary key of this permission.

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

setPrimaryKey

public void setPrimaryKey(long pk)
Description copied from interface: PermissionModel
Sets the primary key of this permission

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

getPermissionId

public long getPermissionId()
Description copied from interface: PermissionModel
Gets 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)
Description copied from interface: PermissionModel
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()
Description copied from interface: PermissionModel
Gets 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)
Description copied from interface: PermissionModel
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()
Description copied from interface: PermissionModel
Gets 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)
Description copied from interface: PermissionModel
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()
Description copied from interface: PermissionModel
Gets 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)
Description copied from interface: PermissionModel
Sets the resource id of this permission.

Specified by:
setResourceId in interface PermissionModel
Parameters:
resourceId - the resource id of this permission

toEscapedModel

public Permission toEscapedModel()
Description copied from interface: PermissionModel
Gets a copy of this permission as an escaped model instance by wrapping it with an AutoEscapeBeanHandler.

Specified by:
toEscapedModel in interface PermissionModel
Returns:
the escaped model instance
See Also:
AutoEscapeBeanHandler

isNew

public boolean isNew()
Description copied from interface: BaseModel
Determines 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
Determines 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
Determines 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
See Also:
BaseModel.setEscapedModel(boolean)

setEscapedModel

public void setEscapedModel(boolean escapedModel)
Description copied from interface: BaseModel
Sets whether this model instance is escaped, meaning that all strings returned from getter methods are HTML safe.

A model instance can be made escaped by wrapping it with an HTML auto escape handler using its toEscapedModel method. For example, UserModel.toEscapedModel().

Specified by:
setEscapedModel in interface BaseModel<Permission>
Specified by:
setEscapedModel in interface PermissionModel
Parameters:
escapedModel - whether this model instance is escaped
See Also:
AutoEscapeBeanHandler

getPrimaryKeyObj

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

Specified by:
getPrimaryKeyObj in interface BaseModel<Permission>
Specified by:
getPrimaryKeyObj in interface PermissionModel
Returns:
the primary key of this model instance

getExpandoBridge

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

Specified by:
getExpandoBridge in interface BaseModel<Permission>
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 to retrieve the expando bridge attributes from
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

toString

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

toXmlString

public String toXmlString()
Description copied from interface: BaseModel
Gets 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

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

getWrappedPermission

public Permission getWrappedPermission()

Liferay 6.0.5