|
Liferay 6.0-ee | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.liferay.portal.model.ResourceActionWrapper
public class ResourceActionWrapper
This class is a wrapper for ResourceAction
.
ResourceAction
,
Serialized FormConstructor Summary | |
---|---|
ResourceActionWrapper(ResourceAction resourceAction)
|
Method Summary | |
---|---|
Object |
clone()
Creates a shallow clone of this model instance. |
int |
compareTo(ResourceAction resourceAction)
|
String |
getActionId()
Gets the action id of this resource action. |
long |
getBitwiseValue()
Gets the bitwise value of this resource action. |
ExpandoBridge |
getExpandoBridge()
Gets the expando bridge for this model instance. |
String |
getName()
Gets the name of this resource action. |
long |
getPrimaryKey()
Gets the primary key of this resource action. |
Serializable |
getPrimaryKeyObj()
Gets the primary key of this model instance. |
long |
getResourceActionId()
Gets the resource action id of this resource action. |
ResourceAction |
getWrappedResourceAction()
|
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 resource action. |
void |
setBitwiseValue(long bitwiseValue)
Sets the bitwise value of this resource action. |
void |
setCachedModel(boolean cachedModel)
Sets whether this model instance was retrieved from the entity cache. |
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)
Sets the name of this resource action. |
void |
setNew(boolean n)
Sets whether this model instance does not yet exist in the database. |
void |
setPrimaryKey(long pk)
Sets the primary key of this resource action |
void |
setResourceActionId(long resourceActionId)
Sets the resource action id of this resource action. |
ResourceAction |
toEscapedModel()
Gets a copy of this entity 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 |
---|
public ResourceActionWrapper(ResourceAction resourceAction)
Method Detail |
---|
public long getPrimaryKey()
getPrimaryKey
in interface ResourceActionModel
public void setPrimaryKey(long pk)
setPrimaryKey
in interface ResourceActionModel
pk
- the primary key of this resource actionpublic long getResourceActionId()
getResourceActionId
in interface ResourceActionModel
public void setResourceActionId(long resourceActionId)
setResourceActionId
in interface ResourceActionModel
resourceActionId
- the resource action id of this resource actionpublic String getName()
getName
in interface ResourceActionModel
public void setName(String name)
setName
in interface ResourceActionModel
name
- the name of this resource actionpublic String getActionId()
getActionId
in interface ResourceActionModel
public void setActionId(String actionId)
setActionId
in interface ResourceActionModel
actionId
- the action id of this resource actionpublic long getBitwiseValue()
getBitwiseValue
in interface ResourceActionModel
public void setBitwiseValue(long bitwiseValue)
setBitwiseValue
in interface ResourceActionModel
bitwiseValue
- the bitwise value of this resource actionpublic boolean isNew()
BaseModel
isNew
in interface BaseModel<ResourceAction>
isNew
in interface ResourceActionModel
true
if this model instance does not yet exist in
the database; false
otherwisepublic void setNew(boolean n)
BaseModel
setNew
in interface BaseModel<ResourceAction>
setNew
in interface ResourceActionModel
n
- whether this model instance does not yet exist in the databasepublic boolean isCachedModel()
BaseModel
isCachedModel
in interface BaseModel<ResourceAction>
isCachedModel
in interface ResourceActionModel
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<ResourceAction>
setCachedModel
in interface ResourceActionModel
cachedModel
- whether this model instance was retrieved from the
entity cacheEntityCache
public boolean isEscapedModel()
BaseModel
isEscapedModel
in interface BaseModel<ResourceAction>
isEscapedModel
in interface ResourceActionModel
true
if this model instance is escaped;
false
otherwiseBaseModel.setEscapedModel(boolean)
public void setEscapedModel(boolean escapedModel)
BaseModel
A model instance can be made escaped by wrapping it with an HTML auto
escape handler using its toEscapedModel
method. For example,
UserModel.toEscapedModel()
.
setEscapedModel
in interface BaseModel<ResourceAction>
setEscapedModel
in interface ResourceActionModel
escapedModel
- whether this model instance is escapedAutoEscapeBeanHandler
public Serializable getPrimaryKeyObj()
BaseModel
getPrimaryKeyObj
in interface BaseModel<ResourceAction>
getPrimaryKeyObj
in interface ResourceActionModel
public ExpandoBridge getExpandoBridge()
BaseModel
getExpandoBridge
in interface BaseModel<ResourceAction>
getExpandoBridge
in interface ResourceActionModel
public void setExpandoBridgeAttributes(ServiceContext serviceContext)
BaseModel
setExpandoBridgeAttributes
in interface BaseModel<ResourceAction>
setExpandoBridgeAttributes
in interface ResourceActionModel
serviceContext
- the service context to retrieve the expando bridge
attributes fromServiceContext.getExpandoBridgeAttributes(
)
public Object clone()
BaseModel
clone
in interface BaseModel<ResourceAction>
clone
in interface ResourceActionModel
clone
in class Object
public int compareTo(ResourceAction resourceAction)
compareTo
in interface ResourceActionModel
compareTo
in interface Comparable<ResourceAction>
public int hashCode()
hashCode
in interface ResourceActionModel
hashCode
in class Object
public ResourceAction toEscapedModel()
BaseModel
AutoEscapeBeanHandler
.
toEscapedModel
in interface BaseModel<ResourceAction>
toEscapedModel
in interface ResourceActionModel
AutoEscapeBeanHandler
public String toString()
toString
in interface ResourceActionModel
toString
in class Object
public String toXmlString()
BaseModel
toXmlString
in interface BaseModel<ResourceAction>
toXmlString
in interface ResourceActionModel
public ResourceAction getWrappedResourceAction()
|
Liferay 6.0-ee | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |