|
Liferay 6.0.5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.liferay.portlet.asset.model.AssetLinkWrapper
public class AssetLinkWrapper
This class is a wrapper for AssetLink
.
AssetLink
,
Serialized FormConstructor Summary | |
---|---|
AssetLinkWrapper(AssetLink assetLink)
|
Method Summary | |
---|---|
Object |
clone()
Creates a shallow clone of this model instance. |
int |
compareTo(AssetLink assetLink)
|
long |
getCompanyId()
Gets the company id of this asset link. |
Date |
getCreateDate()
Gets the create date of this asset link. |
long |
getEntryId1()
Gets the entry id1 of this asset link. |
long |
getEntryId2()
Gets the entry id2 of this asset link. |
ExpandoBridge |
getExpandoBridge()
Gets the expando bridge for this model instance. |
long |
getLinkId()
Gets the link id of this asset link. |
long |
getPrimaryKey()
Gets the primary key of this asset link. |
Serializable |
getPrimaryKeyObj()
Gets the primary key of this model instance. |
int |
getType()
Gets the type of this asset link. |
long |
getUserId()
Gets the user id of this asset link. |
String |
getUserName()
Gets the user name of this asset link. |
String |
getUserUuid()
Gets the user uuid of this asset link. |
int |
getWeight()
Gets the weight of this asset link. |
AssetLink |
getWrappedAssetLink()
|
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 |
setCachedModel(boolean cachedModel)
Sets whether this model instance was retrieved from the entity cache. |
void |
setCompanyId(long companyId)
Sets the company id of this asset link. |
void |
setCreateDate(Date createDate)
Sets the create date of this asset link. |
void |
setEntryId1(long entryId1)
Sets the entry id1 of this asset link. |
void |
setEntryId2(long entryId2)
Sets the entry id2 of this asset link. |
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 |
setLinkId(long linkId)
Sets the link id of this asset link. |
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 asset link |
void |
setType(int type)
Sets the type of this asset link. |
void |
setUserId(long userId)
Sets the user id of this asset link. |
void |
setUserName(String userName)
Sets the user name of this asset link. |
void |
setUserUuid(String userUuid)
Sets the user uuid of this asset link. |
void |
setWeight(int weight)
Sets the weight of this asset link. |
AssetLink |
toEscapedModel()
Gets a copy of this asset link 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 AssetLinkWrapper(AssetLink assetLink)
Method Detail |
---|
public long getPrimaryKey()
AssetLinkModel
getPrimaryKey
in interface AssetLinkModel
public void setPrimaryKey(long pk)
AssetLinkModel
setPrimaryKey
in interface AssetLinkModel
pk
- the primary key of this asset linkpublic long getLinkId()
AssetLinkModel
getLinkId
in interface AssetLinkModel
public void setLinkId(long linkId)
AssetLinkModel
setLinkId
in interface AssetLinkModel
linkId
- the link id of this asset linkpublic long getCompanyId()
AssetLinkModel
getCompanyId
in interface AssetLinkModel
public void setCompanyId(long companyId)
AssetLinkModel
setCompanyId
in interface AssetLinkModel
companyId
- the company id of this asset linkpublic long getUserId()
AssetLinkModel
getUserId
in interface AssetLinkModel
public void setUserId(long userId)
AssetLinkModel
setUserId
in interface AssetLinkModel
userId
- the user id of this asset linkpublic String getUserUuid() throws SystemException
AssetLinkModel
getUserUuid
in interface AssetLinkModel
SystemException
- if a system exception occurredpublic void setUserUuid(String userUuid)
AssetLinkModel
setUserUuid
in interface AssetLinkModel
userUuid
- the user uuid of this asset linkpublic String getUserName()
AssetLinkModel
getUserName
in interface AssetLinkModel
public void setUserName(String userName)
AssetLinkModel
setUserName
in interface AssetLinkModel
userName
- the user name of this asset linkpublic Date getCreateDate()
AssetLinkModel
getCreateDate
in interface AssetLinkModel
public void setCreateDate(Date createDate)
AssetLinkModel
setCreateDate
in interface AssetLinkModel
createDate
- the create date of this asset linkpublic long getEntryId1()
AssetLinkModel
getEntryId1
in interface AssetLinkModel
public void setEntryId1(long entryId1)
AssetLinkModel
setEntryId1
in interface AssetLinkModel
entryId1
- the entry id1 of this asset linkpublic long getEntryId2()
AssetLinkModel
getEntryId2
in interface AssetLinkModel
public void setEntryId2(long entryId2)
AssetLinkModel
setEntryId2
in interface AssetLinkModel
entryId2
- the entry id2 of this asset linkpublic int getType()
AssetLinkModel
getType
in interface AssetLinkModel
public void setType(int type)
AssetLinkModel
setType
in interface AssetLinkModel
type
- the type of this asset linkpublic int getWeight()
AssetLinkModel
getWeight
in interface AssetLinkModel
public void setWeight(int weight)
AssetLinkModel
setWeight
in interface AssetLinkModel
weight
- the weight of this asset linkpublic AssetLink toEscapedModel()
AssetLinkModel
AutoEscapeBeanHandler
.
toEscapedModel
in interface AssetLinkModel
AutoEscapeBeanHandler
public boolean isNew()
BaseModel
isNew
in interface BaseModel<AssetLink>
isNew
in interface AssetLinkModel
true
if this model instance does not yet exist in
the database; false
otherwisepublic void setNew(boolean n)
BaseModel
setNew
in interface BaseModel<AssetLink>
setNew
in interface AssetLinkModel
n
- whether this model instance does not yet exist in the databasepublic boolean isCachedModel()
BaseModel
isCachedModel
in interface BaseModel<AssetLink>
isCachedModel
in interface AssetLinkModel
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<AssetLink>
setCachedModel
in interface AssetLinkModel
cachedModel
- whether this model instance was retrieved from the
entity cacheEntityCache
public boolean isEscapedModel()
BaseModel
isEscapedModel
in interface BaseModel<AssetLink>
isEscapedModel
in interface AssetLinkModel
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<AssetLink>
setEscapedModel
in interface AssetLinkModel
escapedModel
- whether this model instance is escapedAutoEscapeBeanHandler
public Serializable getPrimaryKeyObj()
BaseModel
getPrimaryKeyObj
in interface BaseModel<AssetLink>
getPrimaryKeyObj
in interface AssetLinkModel
public ExpandoBridge getExpandoBridge()
BaseModel
getExpandoBridge
in interface BaseModel<AssetLink>
getExpandoBridge
in interface AssetLinkModel
public void setExpandoBridgeAttributes(ServiceContext serviceContext)
BaseModel
setExpandoBridgeAttributes
in interface BaseModel<AssetLink>
setExpandoBridgeAttributes
in interface AssetLinkModel
serviceContext
- the service context to retrieve the expando bridge
attributes fromServiceContext.getExpandoBridgeAttributes(
)
public Object clone()
BaseModel
clone
in interface BaseModel<AssetLink>
clone
in interface AssetLinkModel
clone
in class Object
public int compareTo(AssetLink assetLink)
compareTo
in interface AssetLinkModel
compareTo
in interface Comparable<AssetLink>
public int hashCode()
hashCode
in interface AssetLinkModel
hashCode
in class Object
public String toString()
toString
in interface AssetLinkModel
toString
in class Object
public String toXmlString()
BaseModel
toXmlString
in interface BaseModel<AssetLink>
toXmlString
in interface AssetLinkModel
public AssetLink getWrappedAssetLink()
|
Liferay 6.0.5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |