|
Liferay 6.0-ee | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.liferay.portlet.asset.model.AssetCategoryWrapper
public class AssetCategoryWrapper
This class is a wrapper for AssetCategory
.
AssetCategory
,
Serialized FormConstructor Summary | |
---|---|
AssetCategoryWrapper(AssetCategory assetCategory)
|
Method Summary | |
---|---|
Object |
clone()
Creates a shallow clone of this model instance. |
int |
compareTo(AssetCategory assetCategory)
|
List<AssetCategory> |
getAncestors()
|
long |
getCategoryId()
Gets the category id of this asset category. |
long |
getCompanyId()
Gets the company id of this asset category. |
Date |
getCreateDate()
Gets the create date of this asset category. |
ExpandoBridge |
getExpandoBridge()
Gets the expando bridge for this model instance. |
long |
getGroupId()
Gets the group id of this asset category. |
long |
getLeftCategoryId()
Gets the left category id of this asset category. |
Date |
getModifiedDate()
Gets the modified date of this asset category. |
String |
getName()
Gets the name of this asset category. |
long |
getParentCategoryId()
Gets the parent category id of this asset category. |
long |
getPrimaryKey()
Gets the primary key of this asset category. |
Serializable |
getPrimaryKeyObj()
Gets the primary key of this model instance. |
long |
getRightCategoryId()
Gets the right category id of this asset category. |
String |
getTitle()
Gets the title of this asset category. |
String |
getTitle(Locale locale)
Gets the localized title of this asset category. |
String |
getTitle(Locale locale,
boolean useDefault)
Gets the localized title of this asset category, optionally using the default language if no localization exists for the requested language. |
String |
getTitle(String languageId)
Gets the localized title of this asset category. |
String |
getTitle(String languageId,
boolean useDefault)
Gets the localized title of this asset category, optionally using the default language if no localization exists for the requested language. |
Map<Locale,String> |
getTitleMap()
Gets a map of the locales and localized title of this asset category. |
long |
getUserId()
Gets the user id of this asset category. |
String |
getUserName()
Gets the user name of this asset category. |
String |
getUserUuid()
Gets the user uuid of this asset category. |
String |
getUuid()
Gets the uuid of this asset category. |
long |
getVocabularyId()
Gets the vocabulary id of this asset category. |
AssetCategory |
getWrappedAssetCategory()
|
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. |
boolean |
isRootCategory()
|
void |
setCachedModel(boolean cachedModel)
Sets whether this model instance was retrieved from the entity cache. |
void |
setCategoryId(long categoryId)
Sets the category id of this asset category. |
void |
setCompanyId(long companyId)
Sets the company id of this asset category. |
void |
setCreateDate(Date createDate)
Sets the create date of this asset category. |
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 |
setGroupId(long groupId)
Sets the group id of this asset category. |
void |
setLeftCategoryId(long leftCategoryId)
Sets the left category id of this asset category. |
void |
setModifiedDate(Date modifiedDate)
Sets the modified date of this asset category. |
void |
setName(String name)
Sets the name of this asset category. |
void |
setNew(boolean n)
Sets whether this model instance does not yet exist in the database. |
void |
setParentCategoryId(long parentCategoryId)
Sets the parent category id of this asset category. |
void |
setPrimaryKey(long pk)
Sets the primary key of this asset category |
void |
setRightCategoryId(long rightCategoryId)
Sets the right category id of this asset category. |
void |
setTitle(Locale locale,
String title)
Sets the localized title of this asset category. |
void |
setTitle(String title)
Sets the title of this asset category. |
void |
setTitleMap(Map<Locale,String> titleMap)
Sets the localized titles of this asset category from the map of locales and localized titles. |
void |
setUserId(long userId)
Sets the user id of this asset category. |
void |
setUserName(String userName)
Sets the user name of this asset category. |
void |
setUserUuid(String userUuid)
Sets the user uuid of this asset category. |
void |
setUuid(String uuid)
Sets the uuid of this asset category. |
void |
setVocabularyId(long vocabularyId)
Sets the vocabulary id of this asset category. |
AssetCategory |
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 AssetCategoryWrapper(AssetCategory assetCategory)
Method Detail |
---|
public long getPrimaryKey()
getPrimaryKey
in interface AssetCategoryModel
public void setPrimaryKey(long pk)
setPrimaryKey
in interface AssetCategoryModel
pk
- the primary key of this asset categorypublic String getUuid()
getUuid
in interface AssetCategoryModel
public void setUuid(String uuid)
setUuid
in interface AssetCategoryModel
uuid
- the uuid of this asset categorypublic long getCategoryId()
getCategoryId
in interface AssetCategoryModel
public void setCategoryId(long categoryId)
setCategoryId
in interface AssetCategoryModel
categoryId
- the category id of this asset categorypublic long getGroupId()
getGroupId
in interface AssetCategoryModel
public void setGroupId(long groupId)
setGroupId
in interface AssetCategoryModel
groupId
- the group id of this asset categorypublic long getCompanyId()
getCompanyId
in interface AssetCategoryModel
public void setCompanyId(long companyId)
setCompanyId
in interface AssetCategoryModel
companyId
- the company id of this asset categorypublic long getUserId()
getUserId
in interface AssetCategoryModel
public void setUserId(long userId)
setUserId
in interface AssetCategoryModel
userId
- the user id of this asset categorypublic String getUserUuid() throws SystemException
getUserUuid
in interface AssetCategoryModel
SystemException
- if a system exception occurredpublic void setUserUuid(String userUuid)
setUserUuid
in interface AssetCategoryModel
userUuid
- the user uuid of this asset categorypublic String getUserName()
getUserName
in interface AssetCategoryModel
public void setUserName(String userName)
setUserName
in interface AssetCategoryModel
userName
- the user name of this asset categorypublic Date getCreateDate()
getCreateDate
in interface AssetCategoryModel
public void setCreateDate(Date createDate)
setCreateDate
in interface AssetCategoryModel
createDate
- the create date of this asset categorypublic Date getModifiedDate()
getModifiedDate
in interface AssetCategoryModel
public void setModifiedDate(Date modifiedDate)
setModifiedDate
in interface AssetCategoryModel
modifiedDate
- the modified date of this asset categorypublic long getParentCategoryId()
getParentCategoryId
in interface AssetCategoryModel
public void setParentCategoryId(long parentCategoryId)
setParentCategoryId
in interface AssetCategoryModel
parentCategoryId
- the parent category id of this asset categorypublic long getLeftCategoryId()
getLeftCategoryId
in interface AssetCategoryModel
public void setLeftCategoryId(long leftCategoryId)
setLeftCategoryId
in interface AssetCategoryModel
leftCategoryId
- the left category id of this asset categorypublic long getRightCategoryId()
getRightCategoryId
in interface AssetCategoryModel
public void setRightCategoryId(long rightCategoryId)
setRightCategoryId
in interface AssetCategoryModel
rightCategoryId
- the right category id of this asset categorypublic String getName()
getName
in interface AssetCategoryModel
public void setName(String name)
setName
in interface AssetCategoryModel
name
- the name of this asset categorypublic String getTitle()
getTitle
in interface AssetCategoryModel
public String getTitle(Locale locale)
getTitle
in interface AssetCategoryModel
locale
- the locale to get the localized title for
public String getTitle(Locale locale, boolean useDefault)
getTitle
in interface AssetCategoryModel
locale
- the local to get the localized title foruseDefault
- whether to use the default language if no localization exists for the requested language
useDefault
is false
and no localization exists for the requested language, an empty string will be returned.public String getTitle(String languageId)
getTitle
in interface AssetCategoryModel
languageId
- the id of the language to get the localized title for
public String getTitle(String languageId, boolean useDefault)
getTitle
in interface AssetCategoryModel
languageId
- the id of the language to get the localized title foruseDefault
- whether to use the default language if no localization exists for the requested language
public Map<Locale,String> getTitleMap()
getTitleMap
in interface AssetCategoryModel
public void setTitle(String title)
setTitle
in interface AssetCategoryModel
title
- the title of this asset categorypublic void setTitle(Locale locale, String title)
setTitle
in interface AssetCategoryModel
locale
- the locale to set the localized title fortitle
- the localized title of this asset categorypublic void setTitleMap(Map<Locale,String> titleMap)
setTitleMap
in interface AssetCategoryModel
titleMap
- the locales and localized titles of this asset categorypublic long getVocabularyId()
getVocabularyId
in interface AssetCategoryModel
public void setVocabularyId(long vocabularyId)
setVocabularyId
in interface AssetCategoryModel
vocabularyId
- the vocabulary id of this asset categorypublic boolean isNew()
BaseModel
isNew
in interface BaseModel<AssetCategory>
isNew
in interface AssetCategoryModel
true
if this model instance does not yet exist in
the database; false
otherwisepublic void setNew(boolean n)
BaseModel
setNew
in interface BaseModel<AssetCategory>
setNew
in interface AssetCategoryModel
n
- whether this model instance does not yet exist in the databasepublic boolean isCachedModel()
BaseModel
isCachedModel
in interface BaseModel<AssetCategory>
isCachedModel
in interface AssetCategoryModel
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<AssetCategory>
setCachedModel
in interface AssetCategoryModel
cachedModel
- whether this model instance was retrieved from the
entity cacheEntityCache
public boolean isEscapedModel()
BaseModel
isEscapedModel
in interface BaseModel<AssetCategory>
isEscapedModel
in interface AssetCategoryModel
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<AssetCategory>
setEscapedModel
in interface AssetCategoryModel
escapedModel
- whether this model instance is escapedAutoEscapeBeanHandler
public Serializable getPrimaryKeyObj()
BaseModel
getPrimaryKeyObj
in interface BaseModel<AssetCategory>
getPrimaryKeyObj
in interface AssetCategoryModel
public ExpandoBridge getExpandoBridge()
BaseModel
getExpandoBridge
in interface BaseModel<AssetCategory>
getExpandoBridge
in interface AssetCategoryModel
public void setExpandoBridgeAttributes(ServiceContext serviceContext)
BaseModel
setExpandoBridgeAttributes
in interface BaseModel<AssetCategory>
setExpandoBridgeAttributes
in interface AssetCategoryModel
serviceContext
- the service context to retrieve the expando bridge
attributes fromServiceContext.getExpandoBridgeAttributes(
)
public Object clone()
BaseModel
clone
in interface BaseModel<AssetCategory>
clone
in interface AssetCategoryModel
clone
in class Object
public int compareTo(AssetCategory assetCategory)
compareTo
in interface AssetCategoryModel
compareTo
in interface Comparable<AssetCategory>
public int hashCode()
hashCode
in interface AssetCategoryModel
hashCode
in class Object
public AssetCategory toEscapedModel()
BaseModel
AutoEscapeBeanHandler
.
toEscapedModel
in interface BaseModel<AssetCategory>
toEscapedModel
in interface AssetCategoryModel
AutoEscapeBeanHandler
public String toString()
toString
in interface AssetCategoryModel
toString
in class Object
public String toXmlString()
BaseModel
toXmlString
in interface BaseModel<AssetCategory>
toXmlString
in interface AssetCategoryModel
public List<AssetCategory> getAncestors() throws PortalException, SystemException
getAncestors
in interface AssetCategory
PortalException
SystemException
public boolean isRootCategory()
isRootCategory
in interface AssetCategory
public AssetCategory getWrappedAssetCategory()
|
Liferay 6.0-ee | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |