|
Liferay 6.1.2-ce-ga3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.liferay.portal.model.PermissionWrapper
public class PermissionWrapper
This class is a wrapper for Permission
.
Permission
,
Serialized FormField 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 |
---|
public PermissionWrapper(Permission permission)
Method Detail |
---|
public Class<?> getModelClass()
getModelClass
in interface ClassedModel
public String getModelClassName()
getModelClassName
in interface ClassedModel
public Map<String,Object> getModelAttributes()
getModelAttributes
in interface BaseModel<Permission>
public void setModelAttributes(Map<String,Object> attributes)
setModelAttributes
in interface BaseModel<Permission>
public long getPrimaryKey()
getPrimaryKey
in interface PermissionModel
public void setPrimaryKey(long primaryKey)
setPrimaryKey
in interface PermissionModel
primaryKey
- the primary key of this permissionpublic long getPermissionId()
getPermissionId
in interface PermissionModel
public void setPermissionId(long permissionId)
setPermissionId
in interface PermissionModel
permissionId
- the permission ID of this permissionpublic long getCompanyId()
getCompanyId
in interface PermissionModel
public void setCompanyId(long companyId)
setCompanyId
in interface PermissionModel
companyId
- the company ID of this permissionpublic String getActionId()
getActionId
in interface PermissionModel
public void setActionId(String actionId)
setActionId
in interface PermissionModel
actionId
- the action ID of this permissionpublic long getResourceId()
getResourceId
in interface PermissionModel
public void setResourceId(long resourceId)
setResourceId
in interface PermissionModel
resourceId
- the resource ID of this permissionpublic boolean isNew()
BaseModel
true
if this model instance does not yet exist in
the database.
isNew
in interface BaseModel<Permission>
isNew
in interface PermissionModel
true
if this model instance does not yet exist in
the database; false
otherwisepublic void setNew(boolean n)
BaseModel
setNew
in interface BaseModel<Permission>
setNew
in interface PermissionModel
n
- whether this model instance does not yet exist in the databasepublic boolean isCachedModel()
BaseModel
true
if this model instance was retrieved from the
entity cache.
isCachedModel
in interface BaseModel<Permission>
isCachedModel
in interface PermissionModel
true
if this model instance was retrieved from the
entity cache; false
otherwiseBaseModel.setCachedModel(boolean)
public void setCachedModel(boolean cachedModel)
BaseModel
setCachedModel
in interface BaseModel<Permission>
setCachedModel
in interface PermissionModel
cachedModel
- whether this model instance was retrieved from the
entity cacheEntityCache
public boolean isEscapedModel()
BaseModel
true
if this model instance is escaped.
isEscapedModel
in interface BaseModel<Permission>
isEscapedModel
in interface PermissionModel
true
if this model instance is escaped;
false
otherwisepublic Serializable getPrimaryKeyObj()
BaseModel
getPrimaryKeyObj
in interface BaseModel<Permission>
getPrimaryKeyObj
in interface ClassedModel
getPrimaryKeyObj
in interface PermissionModel
public void setPrimaryKeyObj(Serializable primaryKeyObj)
BaseModel
setPrimaryKeyObj
in interface BaseModel<Permission>
setPrimaryKeyObj
in interface ClassedModel
setPrimaryKeyObj
in interface PermissionModel
primaryKeyObj
- the primary key of this model instancepublic ExpandoBridge getExpandoBridge()
BaseModel
getExpandoBridge
in interface BaseModel<Permission>
getExpandoBridge
in interface ClassedModel
getExpandoBridge
in interface PermissionModel
public void setExpandoBridgeAttributes(ServiceContext serviceContext)
BaseModel
setExpandoBridgeAttributes
in interface BaseModel<Permission>
setExpandoBridgeAttributes
in interface PermissionModel
serviceContext
- the service contextServiceContext.getExpandoBridgeAttributes(
)
public Object clone()
BaseModel
clone
in interface BaseModel<Permission>
clone
in interface PermissionModel
clone
in class Object
public int compareTo(Permission permission)
compareTo
in interface PermissionModel
compareTo
in interface Comparable<Permission>
public int hashCode()
hashCode
in interface PermissionModel
hashCode
in class Object
public CacheModel<Permission> toCacheModel()
BaseModel
toCacheModel
in interface BaseModel<Permission>
toCacheModel
in interface PermissionModel
public Permission toEscapedModel()
BaseModel
AutoEscapeBeanHandler
.
toEscapedModel
in interface BaseModel<Permission>
toEscapedModel
in interface PermissionModel
AutoEscapeBeanHandler
public Permission toUnescapedModel()
toUnescapedModel
in interface BaseModel<Permission>
toUnescapedModel
in interface PermissionModel
public String toString()
toString
in interface PermissionModel
toString
in class Object
public String toXmlString()
BaseModel
toXmlString
in interface BaseModel<Permission>
toXmlString
in interface PermissionModel
public void persist() throws SystemException
PersistedModel
persist
in interface PersistedModel
SystemException
- if a system exception occurredpublic String getName()
getName
in interface Permission
public String getPrimKey()
getPrimKey
in interface Permission
public int getScope()
getScope
in interface Permission
public void setName(String name)
setName
in interface Permission
public void setPrimKey(String primKey)
setPrimKey
in interface Permission
public void setScope(int scope)
setScope
in interface Permission
public boolean equals(Object obj)
equals
in class Object
public Permission getWrappedPermission()
getWrappedModel()
public Permission getWrappedModel()
getWrappedModel
in interface ModelWrapper<Permission>
public void resetOriginalValues()
BaseModel
resetOriginalValues
in interface BaseModel<Permission>
|
Liferay 6.1.2-ce-ga3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |