|
Liferay 6.2-ce-ga4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.liferay.portal.model.ResourcePermissionWrapper
@ProviderType public class ResourcePermissionWrapper
This class is a wrapper for ResourcePermission.
ResourcePermission,
Serialized Form| 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 |
|---|
public ResourcePermissionWrapper(ResourcePermission resourcePermission)
| Method Detail |
|---|
public Class<?> getModelClass()
getModelClass in interface ClassedModelpublic String getModelClassName()
getModelClassName in interface ClassedModelpublic 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 ResourcePermissionModelpublic void setPrimaryKey(long primaryKey)
setPrimaryKey in interface ResourcePermissionModelprimaryKey - the primary key of this resource permissionpublic long getResourcePermissionId()
getResourcePermissionId in interface ResourcePermissionModelpublic void setResourcePermissionId(long resourcePermissionId)
setResourcePermissionId in interface ResourcePermissionModelresourcePermissionId - the resource permission ID of this resource permissionpublic long getCompanyId()
getCompanyId in interface ResourcePermissionModelpublic void setCompanyId(long companyId)
setCompanyId in interface ResourcePermissionModelcompanyId - the company ID of this resource permissionpublic String getName()
getName in interface ResourcePermissionModelpublic void setName(String name)
setName in interface ResourcePermissionModelname - the name of this resource permissionpublic int getScope()
getScope in interface ResourcePermissionModelpublic void setScope(int scope)
setScope in interface ResourcePermissionModelscope - the scope of this resource permissionpublic String getPrimKey()
getPrimKey in interface ResourcePermissionModelpublic void setPrimKey(String primKey)
setPrimKey in interface ResourcePermissionModelprimKey - the prim key of this resource permissionpublic long getRoleId()
getRoleId in interface ResourcePermissionModelpublic void setRoleId(long roleId)
setRoleId in interface ResourcePermissionModelroleId - the role ID of this resource permissionpublic long getOwnerId()
getOwnerId in interface ResourcePermissionModelpublic void setOwnerId(long ownerId)
setOwnerId in interface ResourcePermissionModelownerId - the owner ID of this resource permissionpublic long getActionIds()
getActionIds in interface ResourcePermissionModelpublic void setActionIds(long actionIds)
setActionIds in interface ResourcePermissionModelactionIds - the action IDs of this resource permissionpublic boolean isNew()
BaseModeltrue if this model instance does not yet exist in
the database.
isNew in interface BaseModel<ResourcePermission>isNew in interface ResourcePermissionModeltrue 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 ResourcePermissionModeln - whether this model instance does not yet exist in the databasepublic boolean isCachedModel()
BaseModeltrue if this model instance was retrieved from the
entity cache.
isCachedModel in interface BaseModel<ResourcePermission>isCachedModel in interface ResourcePermissionModeltrue 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 ResourcePermissionModelcachedModel - whether this model instance was retrieved from the
entity cacheEntityCachepublic boolean isEscapedModel()
BaseModeltrue if this model instance is escaped.
isEscapedModel in interface BaseModel<ResourcePermission>isEscapedModel in interface ResourcePermissionModeltrue if this model instance is escaped;
false otherwisepublic Serializable getPrimaryKeyObj()
BaseModel
getPrimaryKeyObj in interface BaseModel<ResourcePermission>getPrimaryKeyObj in interface ClassedModelgetPrimaryKeyObj in interface ResourcePermissionModelpublic void setPrimaryKeyObj(Serializable primaryKeyObj)
BaseModel
setPrimaryKeyObj in interface BaseModel<ResourcePermission>setPrimaryKeyObj in interface ClassedModelsetPrimaryKeyObj in interface ResourcePermissionModelprimaryKeyObj - the primary key of this model instancepublic ExpandoBridge getExpandoBridge()
BaseModel
getExpandoBridge in interface BaseModel<ResourcePermission>getExpandoBridge in interface ClassedModelgetExpandoBridge in interface ResourcePermissionModelpublic void setExpandoBridgeAttributes(BaseModel<?> baseModel)
setExpandoBridgeAttributes in interface BaseModel<ResourcePermission>setExpandoBridgeAttributes in interface ResourcePermissionModelpublic void setExpandoBridgeAttributes(ExpandoBridge expandoBridge)
setExpandoBridgeAttributes in interface BaseModel<ResourcePermission>setExpandoBridgeAttributes in interface ResourcePermissionModelpublic void setExpandoBridgeAttributes(ServiceContext serviceContext)
BaseModel
setExpandoBridgeAttributes in interface BaseModel<ResourcePermission>setExpandoBridgeAttributes in interface ResourcePermissionModelserviceContext - the service context to be appliedServiceContext.getExpandoBridgeAttributes(
)public Object clone()
BaseModel
clone in interface BaseModel<ResourcePermission>clone in interface ResourcePermissionModelclone in class Objectpublic int compareTo(ResourcePermission resourcePermission)
compareTo in interface ResourcePermissionModelcompareTo in interface Comparable<ResourcePermission>public int hashCode()
hashCode in interface ResourcePermissionModelhashCode in class Objectpublic CacheModel<ResourcePermission> toCacheModel()
BaseModel
toCacheModel in interface BaseModel<ResourcePermission>toCacheModel in interface ResourcePermissionModelpublic ResourcePermission toEscapedModel()
BaseModelAutoEscapeBeanHandler.
toEscapedModel in interface BaseModel<ResourcePermission>toEscapedModel in interface ResourcePermissionModelAutoEscapeBeanHandlerpublic ResourcePermission toUnescapedModel()
toUnescapedModel in interface BaseModel<ResourcePermission>toUnescapedModel in interface ResourcePermissionModelpublic String toString()
toString in interface ResourcePermissionModeltoString in class Objectpublic String toXmlString()
BaseModel
toXmlString in interface BaseModel<ResourcePermission>toXmlString in interface ResourcePermissionModel
public void persist()
throws SystemException
PersistedModel
persist in interface PersistedModelSystemException - if a system exception occurred
public void addResourceAction(String actionId)
throws PortalException
addResourceAction in interface ResourcePermissionPortalExceptionpublic boolean hasActionId(String actionId)
hasActionId in interface ResourcePermission
public void removeResourceAction(String actionId)
throws PortalException
removeResourceAction in interface ResourcePermissionPortalExceptionpublic boolean equals(Object obj)
equals in class Objectpublic ResourcePermission getWrappedResourcePermission()
getWrappedModel()
public ResourcePermission getWrappedModel()
getWrappedModel in interface ModelWrapper<ResourcePermission>public void resetOriginalValues()
BaseModel
resetOriginalValues in interface BaseModel<ResourcePermission>
|
Liferay 6.2-ce-ga4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||