|
Liferay 6.0.3 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.liferay.portal.model.ResourceWrapper
public class ResourceWrapper
This class is a wrapper for Resource.
Resource,
Serialized Form| Constructor Summary | |
|---|---|
ResourceWrapper(Resource resource)
|
|
| Method Summary | |
|---|---|
Object |
clone()
Creates a shallow clone of this model instance. |
int |
compareTo(Resource resource)
|
long |
getCodeId()
|
long |
getCompanyId()
|
ExpandoBridge |
getExpandoBridge()
Gets the expando bridge for this model instance. |
String |
getName()
|
long |
getPrimaryKey()
|
Serializable |
getPrimaryKeyObj()
Gets the primary key for this model instance. |
String |
getPrimKey()
|
long |
getResourceId()
|
int |
getScope()
|
Resource |
getWrappedResource()
|
int |
hashCode()
|
boolean |
isCachedModel()
Determines if this model instance was retrieved from the entity cache. |
boolean |
isEscapedModel()
Determines if this model instance has been wrapped with an HTML auto escape handler. |
boolean |
isNew()
Determines if this model instance does not yet exist in the database. |
void |
setCachedModel(boolean cachedModel)
Sets whether this model instance was retrieved from the entity cache. |
void |
setCodeId(long codeId)
|
void |
setCompanyId(long companyId)
|
void |
setEscapedModel(boolean escapedModel)
Sets whether this model instance has been wrapped with an HTML auto escape handler. |
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 |
setPrimaryKey(long pk)
|
void |
setPrimKey(String primKey)
|
void |
setResourceId(long resourceId)
|
void |
setScope(int scope)
|
Resource |
toEscapedModel()
|
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 ResourceWrapper(Resource resource)
| Method Detail |
|---|
public long getPrimaryKey()
getPrimaryKey in interface ResourceModelpublic void setPrimaryKey(long pk)
setPrimaryKey in interface ResourceModelpublic long getResourceId()
getResourceId in interface ResourceModelpublic void setResourceId(long resourceId)
setResourceId in interface ResourceModelpublic long getCodeId()
getCodeId in interface ResourceModelpublic void setCodeId(long codeId)
setCodeId in interface ResourceModelpublic String getPrimKey()
getPrimKey in interface ResourceModelpublic void setPrimKey(String primKey)
setPrimKey in interface ResourceModelpublic Resource toEscapedModel()
toEscapedModel in interface ResourceModelpublic boolean isNew()
BaseModel
isNew in interface BaseModel<Resource>isNew in interface ResourceModeltrue if this model instance does not yet exist in
the database; false otherwisepublic void setNew(boolean n)
BaseModel
setNew in interface BaseModel<Resource>setNew in interface ResourceModeln - whether this model instance does not yet exist in the databasepublic boolean isCachedModel()
BaseModel
isCachedModel in interface BaseModel<Resource>isCachedModel in interface ResourceModeltrue if this model instance was retrieved from the
entity cache; false otherwiseBaseModel.setCachedModel(boolean)public void setCachedModel(boolean cachedModel)
BaseModel
setCachedModel in interface BaseModel<Resource>setCachedModel in interface ResourceModelcachedModel - whether this model instance was retrieved from the
entity cacheEntityCachepublic boolean isEscapedModel()
BaseModel
isEscapedModel in interface BaseModel<Resource>isEscapedModel in interface ResourceModeltrue if this model instance has been wrapped with an
HTML auto escape handler; false otherwiseBaseModel.setEscapedModel(boolean)public void setEscapedModel(boolean escapedModel)
BaseModel
A model instance can be wrapped with an HTML auto escape handler using
its toEscapedModel method. For example, UserModel.toEscapedModel().
setEscapedModel in interface BaseModel<Resource>setEscapedModel in interface ResourceModelescapedModel - whether this model instance has been wrapped with an
HTML auto escape handlerAutoEscapeBeanHandlerpublic Serializable getPrimaryKeyObj()
BaseModel
getPrimaryKeyObj in interface BaseModel<Resource>getPrimaryKeyObj in interface ResourceModelpublic ExpandoBridge getExpandoBridge()
BaseModel
getExpandoBridge in interface BaseModel<Resource>getExpandoBridge in interface ResourceModelpublic void setExpandoBridgeAttributes(ServiceContext serviceContext)
BaseModel
setExpandoBridgeAttributes in interface BaseModel<Resource>setExpandoBridgeAttributes in interface ResourceModelserviceContext - the service context to retrieve the expando bridge
attributes fromServiceContext.getExpandoBridgeAttributes(
)public Object clone()
BaseModel
clone in interface BaseModel<Resource>clone in interface ResourceModelclone in class Objectpublic int compareTo(Resource resource)
compareTo in interface ResourceModelcompareTo in interface Comparable<Resource>public int hashCode()
hashCode in interface ResourceModelhashCode in class Objectpublic String toString()
toString in interface ResourceModeltoString in class Objectpublic String toXmlString()
BaseModel
toXmlString in interface BaseModel<Resource>toXmlString in interface ResourceModel
public long getCompanyId()
throws PortalException,
SystemException
getCompanyId in interface ResourcePortalException
SystemException
public String getName()
throws PortalException,
SystemException
getName in interface ResourcePortalException
SystemException
public int getScope()
throws PortalException,
SystemException
getScope in interface ResourcePortalException
SystemExceptionpublic void setCompanyId(long companyId)
setCompanyId in interface Resourcepublic void setName(String name)
setName in interface Resourcepublic void setScope(int scope)
setScope in interface Resourcepublic Resource getWrappedResource()
|
Liferay 6.0.3 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||