|
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.ResourcePermissionWrapper
public class ResourcePermissionWrapper
This class is a wrapper for ResourcePermission
.
ResourcePermission
,
Serialized FormConstructor Summary | |
---|---|
ResourcePermissionWrapper(ResourcePermission resourcePermission)
|
Method Summary | |
---|---|
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. Renamed to 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 |
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(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 |
---|
public ResourcePermissionWrapper(ResourcePermission resourcePermission)
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<ResourcePermission>
public void setModelAttributes(Map<String,Object> attributes)
setModelAttributes
in interface BaseModel<ResourcePermission>
public long getPrimaryKey()
getPrimaryKey
in interface ResourcePermissionModel
public void setPrimaryKey(long primaryKey)
setPrimaryKey
in interface ResourcePermissionModel
primaryKey
- the primary key of this resource permissionpublic long getResourcePermissionId()
getResourcePermissionId
in interface ResourcePermissionModel
public void setResourcePermissionId(long resourcePermissionId)
setResourcePermissionId
in interface ResourcePermissionModel
resourcePermissionId
- the resource permission ID of this resource permissionpublic long getCompanyId()
getCompanyId
in interface ResourcePermissionModel
public void setCompanyId(long companyId)
setCompanyId
in interface ResourcePermissionModel
companyId
- the company ID of this resource permissionpublic String getName()
getName
in interface ResourcePermissionModel
public void setName(String name)
setName
in interface ResourcePermissionModel
name
- the name of this resource permissionpublic int getScope()
getScope
in interface ResourcePermissionModel
public void setScope(int scope)
setScope
in interface ResourcePermissionModel
scope
- the scope of this resource permissionpublic String getPrimKey()
getPrimKey
in interface ResourcePermissionModel
public void setPrimKey(String primKey)
setPrimKey
in interface ResourcePermissionModel
primKey
- the prim key of this resource permissionpublic long getRoleId()
getRoleId
in interface ResourcePermissionModel
public void setRoleId(long roleId)
setRoleId
in interface ResourcePermissionModel
roleId
- the role ID of this resource permissionpublic long getOwnerId()
getOwnerId
in interface ResourcePermissionModel
public void setOwnerId(long ownerId)
setOwnerId
in interface ResourcePermissionModel
ownerId
- the owner ID of this resource permissionpublic long getActionIds()
getActionIds
in interface ResourcePermissionModel
public void setActionIds(long actionIds)
setActionIds
in interface ResourcePermissionModel
actionIds
- the action IDs of this resource permissionpublic boolean isNew()
BaseModel
true
if this model instance does not yet exist in
the database.
isNew
in interface BaseModel<ResourcePermission>
isNew
in interface ResourcePermissionModel
true
if this model instance does not yet exist in
the database; false
otherwisepublic void setNew(boolean n)
BaseModel
setNew
in interface BaseModel<ResourcePermission>
setNew
in interface ResourcePermissionModel
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<ResourcePermission>
isCachedModel
in interface ResourcePermissionModel
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<ResourcePermission>
setCachedModel
in interface ResourcePermissionModel
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<ResourcePermission>
isEscapedModel
in interface ResourcePermissionModel
true
if this model instance is escaped;
false
otherwisepublic Serializable getPrimaryKeyObj()
BaseModel
getPrimaryKeyObj
in interface BaseModel<ResourcePermission>
getPrimaryKeyObj
in interface ClassedModel
getPrimaryKeyObj
in interface ResourcePermissionModel
public void setPrimaryKeyObj(Serializable primaryKeyObj)
BaseModel
setPrimaryKeyObj
in interface BaseModel<ResourcePermission>
setPrimaryKeyObj
in interface ClassedModel
setPrimaryKeyObj
in interface ResourcePermissionModel
primaryKeyObj
- the primary key of this model instancepublic ExpandoBridge getExpandoBridge()
BaseModel
getExpandoBridge
in interface BaseModel<ResourcePermission>
getExpandoBridge
in interface ClassedModel
getExpandoBridge
in interface ResourcePermissionModel
public void setExpandoBridgeAttributes(ServiceContext serviceContext)
BaseModel
setExpandoBridgeAttributes
in interface BaseModel<ResourcePermission>
setExpandoBridgeAttributes
in interface ResourcePermissionModel
serviceContext
- the service contextServiceContext.getExpandoBridgeAttributes(
)
public Object clone()
BaseModel
clone
in interface BaseModel<ResourcePermission>
clone
in interface ResourcePermissionModel
clone
in class Object
public int compareTo(ResourcePermission resourcePermission)
compareTo
in interface ResourcePermissionModel
compareTo
in interface Comparable<ResourcePermission>
public int hashCode()
hashCode
in interface ResourcePermissionModel
hashCode
in class Object
public CacheModel<ResourcePermission> toCacheModel()
BaseModel
toCacheModel
in interface BaseModel<ResourcePermission>
toCacheModel
in interface ResourcePermissionModel
public ResourcePermission toEscapedModel()
BaseModel
AutoEscapeBeanHandler
.
toEscapedModel
in interface BaseModel<ResourcePermission>
toEscapedModel
in interface ResourcePermissionModel
AutoEscapeBeanHandler
public ResourcePermission toUnescapedModel()
toUnescapedModel
in interface BaseModel<ResourcePermission>
toUnescapedModel
in interface ResourcePermissionModel
public String toString()
toString
in interface ResourcePermissionModel
toString
in class Object
public String toXmlString()
BaseModel
toXmlString
in interface BaseModel<ResourcePermission>
toXmlString
in interface ResourcePermissionModel
public void persist() throws SystemException
PersistedModel
persist
in interface PersistedModel
SystemException
- if a system exception occurredpublic boolean hasActionId(String actionId)
hasActionId
in interface ResourcePermission
public boolean equals(Object obj)
equals
in class Object
public ResourcePermission getWrappedResourcePermission()
getWrappedModel()
public ResourcePermission getWrappedModel()
getWrappedModel
in interface ModelWrapper<ResourcePermission>
public void resetOriginalValues()
BaseModel
resetOriginalValues
in interface BaseModel<ResourcePermission>
|
Liferay 6.1.2-ce-ga3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |