public class AssetCategoryWrapper extends BaseModelWrapper<AssetCategory> implements AssetCategory, ModelWrapper<AssetCategory>
This class is a wrapper for AssetCategory
.
AssetCategory
,
Serialized Formmodel
CATEGORY_ID_ACCESSOR, NAME_ACCESSOR, UUID_ACCESSOR
Constructor and Description |
---|
AssetCategoryWrapper(AssetCategory assetCategory) |
Modifier and Type | Method and Description |
---|---|
List<AssetCategory> |
getAncestors() |
String[] |
getAvailableLanguageIds() |
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 |
getDefaultLanguageId() |
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.
|
String |
getExternalReferenceCode()
Returns the external reference code of this asset category.
|
long |
getGroupId()
Returns the group ID of this asset category.
|
Date |
getLastPublishDate()
Returns the last publish date of this asset category.
|
long |
getLeftCategoryId()
Returns the left category ID of this asset category.
|
Map<String,Object> |
getModelAttributes() |
Date |
getModifiedDate()
Returns the modified date of this asset category.
|
String |
getName()
Returns the name of this asset category.
|
long |
getNestedSetsTreeNodeLeft() |
long |
getNestedSetsTreeNodeRight() |
long |
getNestedSetsTreeNodeScopeId() |
AssetCategory |
getParentCategory() |
long |
getParentCategoryId()
Returns the parent category ID of this asset category.
|
String |
getPath(Locale locale) |
String |
getPath(Locale locale,
boolean reverse) |
long |
getPrimaryKey()
Returns the primary key of this asset category.
|
long |
getRightCategoryId()
Returns the right category ID of this asset category.
|
StagedModelType |
getStagedModelType() |
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.
|
boolean |
isRootCategory() |
void |
persist()
NOTE FOR DEVELOPERS:
Never modify or reference this class directly.
|
void |
prepareLocalizedFieldsForImport() |
void |
prepareLocalizedFieldsForImport(Locale defaultImportLocale) |
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 |
setExternalReferenceCode(String externalReferenceCode)
Sets the external reference code of this asset category.
|
void |
setGroupId(long groupId)
Sets the group ID of this asset category.
|
void |
setLastPublishDate(Date lastPublishDate)
Sets the last publish date 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 |
setNestedSetsTreeNodeLeft(long nestedSetsTreeNodeLeft) |
void |
setNestedSetsTreeNodeRight(long nestedSetsTreeNodeRight) |
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 |
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.
|
protected AssetCategoryWrapper |
wrap(AssetCategory assetCategory) |
clone, compareTo, equals, getExpandoBridge, getModelClass, getModelClassName, getPrimaryKeyObj, getWrappedModel, hashCode, isCachedModel, isEntityCacheEnabled, isEscapedModel, isFinderCacheEnabled, isNew, resetOriginalValues, setCachedModel, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setNew, setPrimaryKeyObj, toCacheModel, toEscapedModel, toString, toUnescapedModel, toXmlString
clone, getExpandoBridge, getPrimaryKeyObj, isCachedModel, isEntityCacheEnabled, isEscapedModel, isFinderCacheEnabled, isNew, resetOriginalValues, setCachedModel, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setNew, setPrimaryKeyObj, toCacheModel, toEscapedModel, toUnescapedModel, toXmlString
getModelClass, getModelClassName
clone
getWrappedModel
public AssetCategoryWrapper(AssetCategory assetCategory)
public Map<String,Object> getModelAttributes()
getModelAttributes
in interface BaseModel<AssetCategory>
public void setModelAttributes(Map<String,Object> attributes)
setModelAttributes
in interface BaseModel<AssetCategory>
public List<AssetCategory> getAncestors() throws PortalException
getAncestors
in interface AssetCategory
PortalException
public String[] getAvailableLanguageIds()
getAvailableLanguageIds
in interface AssetCategoryModel
getAvailableLanguageIds
in interface LocalizedModel
public long getCategoryId()
getCategoryId
in interface AssetCategoryModel
public long getCompanyId()
getCompanyId
in interface AssetCategoryModel
getCompanyId
in interface AuditedModel
getCompanyId
in interface ShardedModel
getCompanyId
in interface StagedModel
public Date getCreateDate()
getCreateDate
in interface AssetCategoryModel
getCreateDate
in interface AuditedModel
getCreateDate
in interface StagedModel
public String getDefaultLanguageId()
getDefaultLanguageId
in interface AssetCategoryModel
getDefaultLanguageId
in interface LocalizedModel
public String getDescription()
getDescription
in interface AssetCategoryModel
public String getDescription(Locale locale)
getDescription
in interface AssetCategoryModel
locale
- the locale of the languagepublic 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 languageuseDefault
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 languagepublic 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 languagepublic String getDescriptionCurrentLanguageId()
getDescriptionCurrentLanguageId
in interface AssetCategoryModel
public String getDescriptionCurrentValue()
getDescriptionCurrentValue
in interface AssetCategoryModel
public Map<Locale,String> getDescriptionMap()
getDescriptionMap
in interface AssetCategoryModel
public String getExternalReferenceCode()
getExternalReferenceCode
in interface AssetCategoryModel
public long getGroupId()
getGroupId
in interface AssetCategoryModel
getGroupId
in interface GroupedModel
public Date getLastPublishDate()
getLastPublishDate
in interface AssetCategoryModel
getLastPublishDate
in interface StagedGroupedModel
public long getLeftCategoryId()
getLeftCategoryId
in interface AssetCategoryModel
public Date getModifiedDate()
getModifiedDate
in interface AssetCategoryModel
getModifiedDate
in interface AuditedModel
getModifiedDate
in interface StagedModel
public String getName()
getName
in interface AssetCategoryModel
public AssetCategory getParentCategory()
getParentCategory
in interface AssetCategory
public long getParentCategoryId()
getParentCategoryId
in interface AssetCategoryModel
public String getPath(Locale locale) throws PortalException
getPath
in interface AssetCategory
PortalException
public String getPath(Locale locale, boolean reverse) throws PortalException
getPath
in interface AssetCategory
PortalException
public long getPrimaryKey()
getPrimaryKey
in interface AssetCategoryModel
getPrimaryKey
in interface NestedSetsTreeNodeModel
public long getRightCategoryId()
getRightCategoryId
in interface AssetCategoryModel
public String getTitle()
getTitle
in interface AssetCategoryModel
public String getTitle(Locale locale)
getTitle
in interface AssetCategoryModel
locale
- the locale of the languagepublic 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 languageuseDefault
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 languagepublic String getTitle(String languageId, boolean useDefault)
getTitle
in interface AssetCategoryModel
languageId
- the ID of the languageuseDefault
- whether to use the default language if no localization exists for the requested languagepublic String getTitleCurrentLanguageId()
getTitleCurrentLanguageId
in interface AssetCategoryModel
public String getTitleCurrentValue()
getTitleCurrentValue
in interface AssetCategoryModel
public Map<Locale,String> getTitleMap()
getTitleMap
in interface AssetCategoryModel
public long getUserId()
getUserId
in interface AssetCategoryModel
getUserId
in interface AuditedModel
public String getUserName()
getUserName
in interface AssetCategoryModel
getUserName
in interface AuditedModel
public String getUserUuid()
getUserUuid
in interface AssetCategoryModel
getUserUuid
in interface AuditedModel
public String getUuid()
getUuid
in interface AssetCategoryModel
getUuid
in interface StagedModel
public long getVocabularyId()
getVocabularyId
in interface AssetCategoryModel
public boolean isRootCategory()
isRootCategory
in interface AssetCategory
public void persist()
AssetCategory
interface instead.persist
in interface PersistedModel
public void prepareLocalizedFieldsForImport() throws LocaleException
prepareLocalizedFieldsForImport
in interface AssetCategoryModel
prepareLocalizedFieldsForImport
in interface LocalizedModel
LocaleException
public void prepareLocalizedFieldsForImport(Locale defaultImportLocale) throws LocaleException
prepareLocalizedFieldsForImport
in interface AssetCategoryModel
prepareLocalizedFieldsForImport
in interface LocalizedModel
LocaleException
public void setCategoryId(long categoryId)
setCategoryId
in interface AssetCategoryModel
categoryId
- the category ID of this asset categorypublic void setCompanyId(long companyId)
setCompanyId
in interface AssetCategoryModel
setCompanyId
in interface AuditedModel
setCompanyId
in interface ShardedModel
setCompanyId
in interface StagedModel
companyId
- the company ID of this asset categorypublic void setCreateDate(Date createDate)
setCreateDate
in interface AssetCategoryModel
setCreateDate
in interface AuditedModel
setCreateDate
in interface StagedModel
createDate
- the create date of this asset categorypublic 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 void setExternalReferenceCode(String externalReferenceCode)
setExternalReferenceCode
in interface AssetCategoryModel
externalReferenceCode
- the external reference code of this asset categorypublic void setGroupId(long groupId)
setGroupId
in interface AssetCategoryModel
setGroupId
in interface GroupedModel
groupId
- the group ID of this asset categorypublic void setLastPublishDate(Date lastPublishDate)
setLastPublishDate
in interface AssetCategoryModel
setLastPublishDate
in interface StagedGroupedModel
lastPublishDate
- the last publish date of this asset categorypublic void setLeftCategoryId(long leftCategoryId)
setLeftCategoryId
in interface AssetCategoryModel
leftCategoryId
- the left category ID of this asset categorypublic void setModifiedDate(Date modifiedDate)
setModifiedDate
in interface AssetCategoryModel
setModifiedDate
in interface AuditedModel
setModifiedDate
in interface StagedModel
modifiedDate
- the modified date of this asset categorypublic void setName(String name)
setName
in interface AssetCategoryModel
name
- the name of this asset categorypublic void setParentCategoryId(long parentCategoryId)
setParentCategoryId
in interface AssetCategoryModel
parentCategoryId
- the parent category ID of this asset categorypublic void setPrimaryKey(long primaryKey)
setPrimaryKey
in interface AssetCategoryModel
primaryKey
- the primary key of this asset categorypublic void setRightCategoryId(long rightCategoryId)
setRightCategoryId
in interface AssetCategoryModel
rightCategoryId
- the right category ID of this asset categorypublic 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 void setUserId(long userId)
setUserId
in interface AssetCategoryModel
setUserId
in interface AuditedModel
userId
- the user ID of this asset categorypublic void setUserName(String userName)
setUserName
in interface AssetCategoryModel
setUserName
in interface AuditedModel
userName
- the user name of this asset categorypublic void setUserUuid(String userUuid)
setUserUuid
in interface AssetCategoryModel
setUserUuid
in interface AuditedModel
userUuid
- the user uuid of this asset categorypublic void setUuid(String uuid)
setUuid
in interface AssetCategoryModel
setUuid
in interface StagedModel
uuid
- the uuid of this asset categorypublic void setVocabularyId(long vocabularyId)
setVocabularyId
in interface AssetCategoryModel
vocabularyId
- the vocabulary ID of this asset categorypublic long getNestedSetsTreeNodeLeft()
getNestedSetsTreeNodeLeft
in interface NestedSetsTreeNodeModel
public long getNestedSetsTreeNodeRight()
getNestedSetsTreeNodeRight
in interface NestedSetsTreeNodeModel
public long getNestedSetsTreeNodeScopeId()
getNestedSetsTreeNodeScopeId
in interface NestedSetsTreeNodeModel
public void setNestedSetsTreeNodeLeft(long nestedSetsTreeNodeLeft)
setNestedSetsTreeNodeLeft
in interface NestedSetsTreeNodeModel
public void setNestedSetsTreeNodeRight(long nestedSetsTreeNodeRight)
setNestedSetsTreeNodeRight
in interface NestedSetsTreeNodeModel
public StagedModelType getStagedModelType()
getStagedModelType
in interface StagedModel
protected AssetCategoryWrapper wrap(AssetCategory assetCategory)
wrap
in class BaseModelWrapper<AssetCategory>