|
Liferay 6.1.2-ce-ga3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.liferay.portlet.asset.model.AssetCategoryWrapper
public class AssetCategoryWrapper
This class is a wrapper for AssetCategory
.
AssetCategory
,
Serialized FormField Summary |
---|
Fields inherited from interface com.liferay.portlet.asset.model.AssetCategory |
---|
CATEGORY_ID_ACCESSOR, NAME_ACCESSOR, UUID_ACCESSOR |
Constructor Summary | |
---|---|
AssetCategoryWrapper(AssetCategory assetCategory)
|
Method Summary | |
---|---|
Object |
clone()
Creates a shallow clone of this model instance. |
int |
compareTo(AssetCategory assetCategory)
|
boolean |
equals(Object obj)
|
List<AssetCategory> |
getAncestors()
|
long |
getCategoryId()
Returns the category ID of this asset category. |
long |
getCompanyId()
Returns the company ID of this asset category. |
Date |
getCreateDate()
Returns the create date of this asset category. |
String |
getDescription()
Returns the description of this asset category. |
String |
getDescription(Locale locale)
Returns the localized description of this asset category in the language. |
String |
getDescription(Locale locale,
boolean useDefault)
Returns the localized description of this asset category in the language, optionally using the default language if no localization exists for the requested language. |
String |
getDescription(String languageId)
Returns the localized description of this asset category in the language. |
String |
getDescription(String languageId,
boolean useDefault)
Returns the localized description of this asset category in the language, optionally using the default language if no localization exists for the requested language. |
String |
getDescriptionCurrentLanguageId()
|
String |
getDescriptionCurrentValue()
|
Map<Locale,String> |
getDescriptionMap()
Returns a map of the locales and localized descriptions of this asset category. |
ExpandoBridge |
getExpandoBridge()
Returns the expando bridge for this model instance. |
long |
getGroupId()
Returns the group ID of this asset category. |
long |
getLeftCategoryId()
Returns the left category ID of this asset category. |
Map<String,Object> |
getModelAttributes()
|
Class<?> |
getModelClass()
|
String |
getModelClassName()
|
Date |
getModifiedDate()
Returns the modified date of this asset category. |
String |
getName()
Returns the name of this asset category. |
long |
getParentCategoryId()
Returns the parent category ID of this asset category. |
long |
getPrimaryKey()
Returns the primary key of this asset category. |
Serializable |
getPrimaryKeyObj()
Returns the primary key of this model instance. |
long |
getRightCategoryId()
Returns the right category ID of this asset category. |
String |
getTitle()
Returns the title of this asset category. |
String |
getTitle(Locale locale)
Returns the localized title of this asset category in the language. |
String |
getTitle(Locale locale,
boolean useDefault)
Returns the localized title of this asset category in the language, optionally using the default language if no localization exists for the requested language. |
String |
getTitle(String languageId)
Returns the localized title of this asset category in the language. |
String |
getTitle(String languageId,
boolean useDefault)
Returns the localized title of this asset category in the language, optionally using the default language if no localization exists for the requested language. |
String |
getTitleCurrentLanguageId()
|
String |
getTitleCurrentValue()
|
Map<Locale,String> |
getTitleMap()
Returns a map of the locales and localized titles of this asset category. |
long |
getUserId()
Returns the user ID of this asset category. |
String |
getUserName()
Returns the user name of this asset category. |
String |
getUserUuid()
Returns the user uuid of this asset category. |
String |
getUuid()
Returns the uuid of this asset category. |
long |
getVocabularyId()
Returns the vocabulary ID of this asset category. |
AssetCategory |
getWrappedAssetCategory()
Deprecated. Renamed to getWrappedModel() |
AssetCategory |
getWrappedModel()
|
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. |
boolean |
isRootCategory()
|
void |
persist()
Updates this model instance in the database or adds it if it does not yet exist. |
void |
prepareLocalizedFieldsForImport(Locale defaultImportLocale)
|
void |
resetOriginalValues()
Reset all original fields to current values. |
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 |
setDescription(String description)
Sets the description of this asset category. |
void |
setDescription(String description,
Locale locale)
Sets the localized description of this asset category in the language. |
void |
setDescription(String description,
Locale locale,
Locale defaultLocale)
Sets the localized description of this asset category in the language, and sets the default locale. |
void |
setDescriptionCurrentLanguageId(String languageId)
|
void |
setDescriptionMap(Map<Locale,String> descriptionMap)
Sets the localized descriptions of this asset category from the map of locales and localized descriptions. |
void |
setDescriptionMap(Map<Locale,String> descriptionMap,
Locale defaultLocale)
Sets the localized descriptions of this asset category from the map of locales and localized descriptions, and sets the default locale. |
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 |
setModelAttributes(Map<String,Object> attributes)
|
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 primaryKey)
Sets the primary key of this asset category. |
void |
setPrimaryKeyObj(Serializable primaryKeyObj)
Sets the primary key of this model instance. |
void |
setRightCategoryId(long rightCategoryId)
Sets the right category ID of this asset category. |
void |
setTitle(String title)
Sets the title of this asset category. |
void |
setTitle(String title,
Locale locale)
Sets the localized title of this asset category in the language. |
void |
setTitle(String title,
Locale locale,
Locale defaultLocale)
Sets the localized title of this asset category in the language, and sets the default locale. |
void |
setTitleCurrentLanguageId(String languageId)
|
void |
setTitleMap(Map<Locale,String> titleMap)
Sets the localized titles of this asset category from the map of locales and localized titles. |
void |
setTitleMap(Map<Locale,String> titleMap,
Locale defaultLocale)
Sets the localized titles of this asset category from the map of locales and localized titles, and sets the default locale. |
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. |
CacheModel<AssetCategory> |
toCacheModel()
Returns a cache model object for this entity used by entity cache. |
AssetCategory |
toEscapedModel()
Returns a copy of this entity as an escaped model instance by wrapping it with an AutoEscapeBeanHandler . |
String |
toString()
|
AssetCategory |
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 AssetCategoryWrapper(AssetCategory assetCategory)
Method Detail |
---|
public Class<?> getModelClass()
getModelClass
in interface ClassedModel
public String getModelClassName()
getModelClassName
in interface ClassedModel
public Map<String,Object> getModelAttributes()
getModelAttributes
in interface BaseModel<AssetCategory>
public void setModelAttributes(Map<String,Object> attributes)
setModelAttributes
in interface BaseModel<AssetCategory>
public long getPrimaryKey()
getPrimaryKey
in interface AssetCategoryModel
public void setPrimaryKey(long primaryKey)
setPrimaryKey
in interface AssetCategoryModel
primaryKey
- 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 GroupedModel
getGroupId
in interface AssetCategoryModel
public void setGroupId(long groupId)
setGroupId
in interface GroupedModel
setGroupId
in interface AssetCategoryModel
groupId
- the group ID of this asset categorypublic long getCompanyId()
getCompanyId
in interface AuditedModel
getCompanyId
in interface AssetCategoryModel
public void setCompanyId(long companyId)
setCompanyId
in interface AuditedModel
setCompanyId
in interface AssetCategoryModel
companyId
- the company ID of this asset categorypublic long getUserId()
getUserId
in interface AuditedModel
getUserId
in interface AssetCategoryModel
public void setUserId(long userId)
setUserId
in interface AuditedModel
setUserId
in interface AssetCategoryModel
userId
- the user ID of this asset categorypublic String getUserUuid() throws SystemException
getUserUuid
in interface AuditedModel
getUserUuid
in interface AssetCategoryModel
SystemException
- if a system exception occurredpublic void setUserUuid(String userUuid)
setUserUuid
in interface AuditedModel
setUserUuid
in interface AssetCategoryModel
userUuid
- the user uuid of this asset categorypublic String getUserName()
getUserName
in interface AuditedModel
getUserName
in interface AssetCategoryModel
public void setUserName(String userName)
setUserName
in interface AuditedModel
setUserName
in interface AssetCategoryModel
userName
- the user name of this asset categorypublic Date getCreateDate()
getCreateDate
in interface AuditedModel
getCreateDate
in interface AssetCategoryModel
public void setCreateDate(Date createDate)
setCreateDate
in interface AuditedModel
setCreateDate
in interface AssetCategoryModel
createDate
- the create date of this asset categorypublic Date getModifiedDate()
getModifiedDate
in interface AuditedModel
getModifiedDate
in interface AssetCategoryModel
public void setModifiedDate(Date modifiedDate)
setModifiedDate
in interface AuditedModel
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 of the language
public String getTitle(Locale locale, boolean useDefault)
getTitle
in interface AssetCategoryModel
locale
- the local of the languageuseDefault
- 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 AssetCategory
getTitle
in interface AssetCategoryModel
languageId
- the ID of the language
public String getTitle(String languageId, boolean useDefault)
getTitle
in interface AssetCategory
getTitle
in interface AssetCategoryModel
languageId
- the ID of the languageuseDefault
- whether to use the default language if no localization exists for the requested language
public String getTitleCurrentLanguageId()
getTitleCurrentLanguageId
in interface AssetCategoryModel
public String getTitleCurrentValue()
getTitleCurrentValue
in interface AssetCategoryModel
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(String title, Locale locale)
setTitle
in interface AssetCategoryModel
title
- the localized title of this asset categorylocale
- the locale of the languagepublic void setTitle(String title, Locale locale, Locale defaultLocale)
setTitle
in interface AssetCategoryModel
title
- the localized title of this asset categorylocale
- the locale of the languagedefaultLocale
- the default localepublic void setTitleCurrentLanguageId(String languageId)
setTitleCurrentLanguageId
in interface AssetCategoryModel
public void setTitleMap(Map<Locale,String> titleMap)
setTitleMap
in interface AssetCategoryModel
titleMap
- the locales and localized titles of this asset categorypublic void setTitleMap(Map<Locale,String> titleMap, Locale defaultLocale)
setTitleMap
in interface AssetCategoryModel
titleMap
- the locales and localized titles of this asset categorydefaultLocale
- the default localepublic String getDescription()
getDescription
in interface AssetCategoryModel
public String getDescription(Locale locale)
getDescription
in interface AssetCategoryModel
locale
- the locale of the language
public String getDescription(Locale locale, boolean useDefault)
getDescription
in interface AssetCategoryModel
locale
- the local of the languageuseDefault
- 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 getDescription(String languageId)
getDescription
in interface AssetCategoryModel
languageId
- the ID of the language
public String getDescription(String languageId, boolean useDefault)
getDescription
in interface AssetCategoryModel
languageId
- the ID of the languageuseDefault
- whether to use the default language if no localization exists for the requested language
public String getDescriptionCurrentLanguageId()
getDescriptionCurrentLanguageId
in interface AssetCategoryModel
public String getDescriptionCurrentValue()
getDescriptionCurrentValue
in interface AssetCategoryModel
public Map<Locale,String> getDescriptionMap()
getDescriptionMap
in interface AssetCategoryModel
public void setDescription(String description)
setDescription
in interface AssetCategoryModel
description
- the description of this asset categorypublic void setDescription(String description, Locale locale)
setDescription
in interface AssetCategoryModel
description
- the localized description of this asset categorylocale
- the locale of the languagepublic void setDescription(String description, Locale locale, Locale defaultLocale)
setDescription
in interface AssetCategoryModel
description
- the localized description of this asset categorylocale
- the locale of the languagedefaultLocale
- the default localepublic void setDescriptionCurrentLanguageId(String languageId)
setDescriptionCurrentLanguageId
in interface AssetCategoryModel
public void setDescriptionMap(Map<Locale,String> descriptionMap)
setDescriptionMap
in interface AssetCategoryModel
descriptionMap
- the locales and localized descriptions of this asset categorypublic void setDescriptionMap(Map<Locale,String> descriptionMap, Locale defaultLocale)
setDescriptionMap
in interface AssetCategoryModel
descriptionMap
- the locales and localized descriptions of this asset categorydefaultLocale
- the default localepublic 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
true
if this model instance does not yet exist in
the database.
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
true
if this model instance was retrieved from the
entity cache.
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
true
if this model instance is escaped.
isEscapedModel
in interface BaseModel<AssetCategory>
isEscapedModel
in interface AssetCategoryModel
true
if this model instance is escaped;
false
otherwisepublic Serializable getPrimaryKeyObj()
BaseModel
getPrimaryKeyObj
in interface BaseModel<AssetCategory>
getPrimaryKeyObj
in interface ClassedModel
getPrimaryKeyObj
in interface AssetCategoryModel
public void setPrimaryKeyObj(Serializable primaryKeyObj)
BaseModel
setPrimaryKeyObj
in interface BaseModel<AssetCategory>
setPrimaryKeyObj
in interface ClassedModel
setPrimaryKeyObj
in interface AssetCategoryModel
primaryKeyObj
- the primary key of this model instancepublic ExpandoBridge getExpandoBridge()
BaseModel
getExpandoBridge
in interface BaseModel<AssetCategory>
getExpandoBridge
in interface ClassedModel
getExpandoBridge
in interface AssetCategoryModel
public void setExpandoBridgeAttributes(ServiceContext serviceContext)
BaseModel
setExpandoBridgeAttributes
in interface BaseModel<AssetCategory>
setExpandoBridgeAttributes
in interface AssetCategoryModel
serviceContext
- the service contextServiceContext.getExpandoBridgeAttributes(
)
public void prepareLocalizedFieldsForImport(Locale defaultImportLocale) throws LocaleException
prepareLocalizedFieldsForImport
in interface AssetCategoryModel
LocaleException
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 CacheModel<AssetCategory> toCacheModel()
BaseModel
toCacheModel
in interface BaseModel<AssetCategory>
toCacheModel
in interface AssetCategoryModel
public AssetCategory toEscapedModel()
BaseModel
AutoEscapeBeanHandler
.
toEscapedModel
in interface BaseModel<AssetCategory>
toEscapedModel
in interface AssetCategoryModel
AutoEscapeBeanHandler
public AssetCategory toUnescapedModel()
toUnescapedModel
in interface BaseModel<AssetCategory>
toUnescapedModel
in interface AssetCategoryModel
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 void persist() throws SystemException
PersistedModel
persist
in interface PersistedModel
SystemException
- if a system exception occurredpublic List<AssetCategory> getAncestors() throws PortalException, SystemException
getAncestors
in interface AssetCategory
PortalException
SystemException
public boolean isRootCategory()
isRootCategory
in interface AssetCategory
public boolean equals(Object obj)
equals
in class Object
public AssetCategory getWrappedAssetCategory()
getWrappedModel()
public AssetCategory getWrappedModel()
getWrappedModel
in interface ModelWrapper<AssetCategory>
public void resetOriginalValues()
BaseModel
resetOriginalValues
in interface BaseModel<AssetCategory>
|
Liferay 6.1.2-ce-ga3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |