public class AssetVocabularyWrapper extends BaseModelWrapper<AssetVocabulary> implements AssetVocabulary, ModelWrapper<AssetVocabulary>
This class is a wrapper for AssetVocabulary
.
AssetVocabulary
,
Serialized Formmodel
VOCABULARY_ID_ACCESSOR
Constructor and Description |
---|
AssetVocabularyWrapper(AssetVocabulary assetVocabulary) |
Modifier and Type | Method and Description |
---|---|
AssetVocabulary |
cloneWithOriginalValues() |
Map<String,Function<AssetVocabulary,Object>> |
getAttributeGetterFunctions() |
Map<String,BiConsumer<AssetVocabulary,Object>> |
getAttributeSetterBiConsumers() |
String[] |
getAvailableLanguageIds() |
List<AssetCategory> |
getCategories() |
int |
getCategoriesCount() |
long |
getCompanyId()
Returns the company ID of this asset vocabulary.
|
Date |
getCreateDate()
Returns the create date of this asset vocabulary.
|
long |
getCtCollectionId()
Returns the ct collection ID of this asset vocabulary.
|
String |
getDefaultLanguageId() |
String |
getDescription()
Returns the description of this asset vocabulary.
|
String |
getDescription(Locale locale)
Returns the localized description of this asset vocabulary in the language.
|
String |
getDescription(Locale locale,
boolean useDefault)
Returns the localized description of this asset vocabulary 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 vocabulary in the language.
|
String |
getDescription(String languageId,
boolean useDefault)
Returns the localized description of this asset vocabulary 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 vocabulary.
|
String |
getExternalReferenceCode()
Returns the external reference code of this asset vocabulary.
|
long |
getGroupId()
Returns the group ID of this asset vocabulary.
|
Date |
getLastPublishDate()
Returns the last publish date of this asset vocabulary.
|
Map<String,Object> |
getModelAttributes() |
Date |
getModifiedDate()
Returns the modified date of this asset vocabulary.
|
long |
getMvccVersion()
Returns the mvcc version of this asset vocabulary.
|
String |
getName()
Returns the name of this asset vocabulary.
|
long |
getPrimaryKey()
Returns the primary key of this asset vocabulary.
|
long[] |
getRequiredClassNameIds() |
long[] |
getSelectedClassNameIds() |
long[] |
getSelectedClassTypePKs() |
String |
getSettings()
Returns the settings of this asset vocabulary.
|
StagedModelType |
getStagedModelType() |
String |
getTitle()
Returns the title of this asset vocabulary.
|
String |
getTitle(Locale locale)
Returns the localized title of this asset vocabulary in the language.
|
String |
getTitle(Locale locale,
boolean useDefault)
Returns the localized title of this asset vocabulary 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 vocabulary in the language.
|
String |
getTitle(String languageId,
boolean useDefault)
Returns the localized title of this asset vocabulary 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 vocabulary.
|
String |
getUnambiguousTitle(List<AssetVocabulary> vocabularies,
long groupId,
Locale locale) |
long |
getUserId()
Returns the user ID of this asset vocabulary.
|
String |
getUserName()
Returns the user name of this asset vocabulary.
|
String |
getUserUuid()
Returns the user uuid of this asset vocabulary.
|
String |
getUuid()
Returns the uuid of this asset vocabulary.
|
int |
getVisibilityType()
Returns the visibility type of this asset vocabulary.
|
long |
getVocabularyId()
Returns the vocabulary ID of this asset vocabulary.
|
boolean |
hasMoreThanOneCategorySelected(long[] categoryIds) |
boolean |
isAssociatedToClassNameId(long classNameId) |
boolean |
isAssociatedToClassNameIdAndClassTypePK(long classNameId,
long classTypePK) |
boolean |
isMissingRequiredCategory(long classNameId,
long classTypePK,
long[] categoryIds) |
boolean |
isMultiValued() |
boolean |
isRequired(long classNameId,
long classTypePK) |
void |
persist()
Updates this model instance in the database or adds it if it does not yet
exist.
|
void |
prepareLocalizedFieldsForImport() |
void |
prepareLocalizedFieldsForImport(Locale defaultImportLocale) |
void |
setCompanyId(long companyId)
Sets the company ID of this asset vocabulary.
|
void |
setCreateDate(Date createDate)
Sets the create date of this asset vocabulary.
|
void |
setCtCollectionId(long ctCollectionId)
Sets the ct collection ID of this asset vocabulary.
|
void |
setDescription(String description)
Sets the description of this asset vocabulary.
|
void |
setDescription(String description,
Locale locale)
Sets the localized description of this asset vocabulary in the language.
|
void |
setDescription(String description,
Locale locale,
Locale defaultLocale)
Sets the localized description of this asset vocabulary 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 vocabulary from the map of locales and localized descriptions.
|
void |
setDescriptionMap(Map<Locale,String> descriptionMap,
Locale defaultLocale)
Sets the localized descriptions of this asset vocabulary 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 vocabulary.
|
void |
setGroupId(long groupId)
Sets the group ID of this asset vocabulary.
|
void |
setLastPublishDate(Date lastPublishDate)
Sets the last publish date of this asset vocabulary.
|
void |
setModelAttributes(Map<String,Object> attributes) |
void |
setModifiedDate(Date modifiedDate)
Sets the modified date of this asset vocabulary.
|
void |
setMvccVersion(long mvccVersion)
Sets the mvcc version of this asset vocabulary.
|
void |
setName(String name)
Sets the name of this asset vocabulary.
|
void |
setPrimaryKey(long primaryKey)
Sets the primary key of this asset vocabulary.
|
void |
setSettings(String settings)
Sets the settings of this asset vocabulary.
|
void |
setTitle(String title)
Sets the title of this asset vocabulary.
|
void |
setTitle(String title,
Locale locale)
Sets the localized title of this asset vocabulary in the language.
|
void |
setTitle(String title,
Locale locale,
Locale defaultLocale)
Sets the localized title of this asset vocabulary 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 vocabulary from the map of locales and localized titles.
|
void |
setTitleMap(Map<Locale,String> titleMap,
Locale defaultLocale)
Sets the localized titles of this asset vocabulary from the map of locales and localized titles, and sets the default locale.
|
void |
setUserId(long userId)
Sets the user ID of this asset vocabulary.
|
void |
setUserName(String userName)
Sets the user name of this asset vocabulary.
|
void |
setUserUuid(String userUuid)
Sets the user uuid of this asset vocabulary.
|
void |
setUuid(String uuid)
Sets the uuid of this asset vocabulary.
|
void |
setVisibilityType(int visibilityType)
Sets the visibility type of this asset vocabulary.
|
void |
setVocabularyId(long vocabularyId)
Sets the vocabulary ID of this asset vocabulary.
|
protected AssetVocabularyWrapper |
wrap(AssetVocabulary assetVocabulary) |
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 AssetVocabularyWrapper(AssetVocabulary assetVocabulary)
public Map<String,Object> getModelAttributes()
getModelAttributes
in interface BaseModel<AssetVocabulary>
public void setModelAttributes(Map<String,Object> attributes)
setModelAttributes
in interface BaseModel<AssetVocabulary>
public AssetVocabulary cloneWithOriginalValues()
cloneWithOriginalValues
in interface AssetVocabularyModel
cloneWithOriginalValues
in interface BaseModel<AssetVocabulary>
public String[] getAvailableLanguageIds()
getAvailableLanguageIds
in interface AssetVocabularyModel
getAvailableLanguageIds
in interface LocalizedModel
public List<AssetCategory> getCategories()
getCategories
in interface AssetVocabulary
public int getCategoriesCount()
getCategoriesCount
in interface AssetVocabulary
public long getCompanyId()
getCompanyId
in interface AssetVocabularyModel
getCompanyId
in interface AuditedModel
getCompanyId
in interface ShardedModel
getCompanyId
in interface StagedModel
public Date getCreateDate()
getCreateDate
in interface AssetVocabularyModel
getCreateDate
in interface AuditedModel
getCreateDate
in interface StagedModel
public long getCtCollectionId()
getCtCollectionId
in interface AssetVocabularyModel
getCtCollectionId
in interface CTModel<AssetVocabulary>
public String getDefaultLanguageId()
getDefaultLanguageId
in interface AssetVocabularyModel
getDefaultLanguageId
in interface LocalizedModel
public String getDescription()
getDescription
in interface AssetVocabularyModel
public String getDescription(Locale locale)
getDescription
in interface AssetVocabularyModel
locale
- the locale of the languagepublic String getDescription(Locale locale, boolean useDefault)
getDescription
in interface AssetVocabularyModel
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 AssetVocabularyModel
languageId
- the ID of the languagepublic String getDescription(String languageId, boolean useDefault)
getDescription
in interface AssetVocabularyModel
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 AssetVocabularyModel
public String getDescriptionCurrentValue()
getDescriptionCurrentValue
in interface AssetVocabularyModel
public Map<Locale,String> getDescriptionMap()
getDescriptionMap
in interface AssetVocabularyModel
public String getExternalReferenceCode()
getExternalReferenceCode
in interface AssetVocabularyModel
public long getGroupId()
getGroupId
in interface AssetVocabularyModel
getGroupId
in interface GroupedModel
public Date getLastPublishDate()
getLastPublishDate
in interface AssetVocabularyModel
getLastPublishDate
in interface StagedGroupedModel
public Date getModifiedDate()
getModifiedDate
in interface AssetVocabularyModel
getModifiedDate
in interface AuditedModel
getModifiedDate
in interface StagedModel
public long getMvccVersion()
getMvccVersion
in interface AssetVocabularyModel
getMvccVersion
in interface MVCCModel
public String getName()
getName
in interface AssetVocabularyModel
public long getPrimaryKey()
getPrimaryKey
in interface AssetVocabularyModel
getPrimaryKey
in interface CTModel<AssetVocabulary>
public long[] getRequiredClassNameIds()
getRequiredClassNameIds
in interface AssetVocabulary
public long[] getSelectedClassNameIds()
getSelectedClassNameIds
in interface AssetVocabulary
public long[] getSelectedClassTypePKs()
getSelectedClassTypePKs
in interface AssetVocabulary
public String getSettings()
getSettings
in interface AssetVocabularyModel
public String getTitle()
getTitle
in interface AssetVocabularyModel
public String getTitle(Locale locale)
getTitle
in interface AssetVocabularyModel
locale
- the locale of the languagepublic String getTitle(Locale locale, boolean useDefault)
getTitle
in interface AssetVocabularyModel
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 AssetVocabularyModel
languageId
- the ID of the languagepublic String getTitle(String languageId, boolean useDefault)
getTitle
in interface AssetVocabularyModel
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 AssetVocabularyModel
public String getTitleCurrentValue()
getTitleCurrentValue
in interface AssetVocabularyModel
public Map<Locale,String> getTitleMap()
getTitleMap
in interface AssetVocabularyModel
public String getUnambiguousTitle(List<AssetVocabulary> vocabularies, long groupId, Locale locale) throws PortalException
getUnambiguousTitle
in interface AssetVocabulary
PortalException
public long getUserId()
getUserId
in interface AssetVocabularyModel
getUserId
in interface AuditedModel
public String getUserName()
getUserName
in interface AssetVocabularyModel
getUserName
in interface AuditedModel
public String getUserUuid()
getUserUuid
in interface AssetVocabularyModel
getUserUuid
in interface AuditedModel
public String getUuid()
getUuid
in interface AssetVocabularyModel
getUuid
in interface StagedModel
public int getVisibilityType()
getVisibilityType
in interface AssetVocabularyModel
public long getVocabularyId()
getVocabularyId
in interface AssetVocabularyModel
public boolean hasMoreThanOneCategorySelected(long[] categoryIds)
hasMoreThanOneCategorySelected
in interface AssetVocabulary
public boolean isAssociatedToClassNameId(long classNameId)
isAssociatedToClassNameId
in interface AssetVocabulary
public boolean isAssociatedToClassNameIdAndClassTypePK(long classNameId, long classTypePK)
isAssociatedToClassNameIdAndClassTypePK
in interface AssetVocabulary
public boolean isMissingRequiredCategory(long classNameId, long classTypePK, long[] categoryIds)
isMissingRequiredCategory
in interface AssetVocabulary
public boolean isMultiValued()
isMultiValued
in interface AssetVocabulary
public boolean isRequired(long classNameId, long classTypePK)
isRequired
in interface AssetVocabulary
public void persist()
PersistedModel
persist
in interface PersistedModel
public void prepareLocalizedFieldsForImport() throws LocaleException
prepareLocalizedFieldsForImport
in interface AssetVocabularyModel
prepareLocalizedFieldsForImport
in interface LocalizedModel
LocaleException
public void prepareLocalizedFieldsForImport(Locale defaultImportLocale) throws LocaleException
prepareLocalizedFieldsForImport
in interface AssetVocabularyModel
prepareLocalizedFieldsForImport
in interface LocalizedModel
LocaleException
public void setCompanyId(long companyId)
setCompanyId
in interface AssetVocabularyModel
setCompanyId
in interface AuditedModel
setCompanyId
in interface ShardedModel
setCompanyId
in interface StagedModel
companyId
- the company ID of this asset vocabularypublic void setCreateDate(Date createDate)
setCreateDate
in interface AssetVocabularyModel
setCreateDate
in interface AuditedModel
setCreateDate
in interface StagedModel
createDate
- the create date of this asset vocabularypublic void setCtCollectionId(long ctCollectionId)
setCtCollectionId
in interface AssetVocabularyModel
setCtCollectionId
in interface CTModel<AssetVocabulary>
ctCollectionId
- the ct collection ID of this asset vocabularypublic void setDescription(String description)
setDescription
in interface AssetVocabularyModel
description
- the description of this asset vocabularypublic void setDescription(String description, Locale locale)
setDescription
in interface AssetVocabularyModel
description
- the localized description of this asset vocabularylocale
- the locale of the languagepublic void setDescription(String description, Locale locale, Locale defaultLocale)
setDescription
in interface AssetVocabularyModel
description
- the localized description of this asset vocabularylocale
- the locale of the languagedefaultLocale
- the default localepublic void setDescriptionCurrentLanguageId(String languageId)
setDescriptionCurrentLanguageId
in interface AssetVocabularyModel
public void setDescriptionMap(Map<Locale,String> descriptionMap)
setDescriptionMap
in interface AssetVocabularyModel
descriptionMap
- the locales and localized descriptions of this asset vocabularypublic void setDescriptionMap(Map<Locale,String> descriptionMap, Locale defaultLocale)
setDescriptionMap
in interface AssetVocabularyModel
descriptionMap
- the locales and localized descriptions of this asset vocabularydefaultLocale
- the default localepublic void setExternalReferenceCode(String externalReferenceCode)
setExternalReferenceCode
in interface AssetVocabularyModel
externalReferenceCode
- the external reference code of this asset vocabularypublic void setGroupId(long groupId)
setGroupId
in interface AssetVocabularyModel
setGroupId
in interface GroupedModel
groupId
- the group ID of this asset vocabularypublic void setLastPublishDate(Date lastPublishDate)
setLastPublishDate
in interface AssetVocabularyModel
setLastPublishDate
in interface StagedGroupedModel
lastPublishDate
- the last publish date of this asset vocabularypublic void setModifiedDate(Date modifiedDate)
setModifiedDate
in interface AssetVocabularyModel
setModifiedDate
in interface AuditedModel
setModifiedDate
in interface StagedModel
modifiedDate
- the modified date of this asset vocabularypublic void setMvccVersion(long mvccVersion)
setMvccVersion
in interface AssetVocabularyModel
setMvccVersion
in interface MVCCModel
mvccVersion
- the mvcc version of this asset vocabularypublic void setName(String name)
setName
in interface AssetVocabularyModel
name
- the name of this asset vocabularypublic void setPrimaryKey(long primaryKey)
setPrimaryKey
in interface AssetVocabularyModel
setPrimaryKey
in interface CTModel<AssetVocabulary>
primaryKey
- the primary key of this asset vocabularypublic void setSettings(String settings)
setSettings
in interface AssetVocabularyModel
settings
- the settings of this asset vocabularypublic void setTitle(String title)
setTitle
in interface AssetVocabularyModel
title
- the title of this asset vocabularypublic void setTitle(String title, Locale locale)
setTitle
in interface AssetVocabularyModel
title
- the localized title of this asset vocabularylocale
- the locale of the languagepublic void setTitle(String title, Locale locale, Locale defaultLocale)
setTitle
in interface AssetVocabularyModel
title
- the localized title of this asset vocabularylocale
- the locale of the languagedefaultLocale
- the default localepublic void setTitleCurrentLanguageId(String languageId)
setTitleCurrentLanguageId
in interface AssetVocabularyModel
public void setTitleMap(Map<Locale,String> titleMap)
setTitleMap
in interface AssetVocabularyModel
titleMap
- the locales and localized titles of this asset vocabularypublic void setTitleMap(Map<Locale,String> titleMap, Locale defaultLocale)
setTitleMap
in interface AssetVocabularyModel
titleMap
- the locales and localized titles of this asset vocabularydefaultLocale
- the default localepublic void setUserId(long userId)
setUserId
in interface AssetVocabularyModel
setUserId
in interface AuditedModel
userId
- the user ID of this asset vocabularypublic void setUserName(String userName)
setUserName
in interface AssetVocabularyModel
setUserName
in interface AuditedModel
userName
- the user name of this asset vocabularypublic void setUserUuid(String userUuid)
setUserUuid
in interface AssetVocabularyModel
setUserUuid
in interface AuditedModel
userUuid
- the user uuid of this asset vocabularypublic void setUuid(String uuid)
setUuid
in interface AssetVocabularyModel
setUuid
in interface StagedModel
uuid
- the uuid of this asset vocabularypublic void setVisibilityType(int visibilityType)
setVisibilityType
in interface AssetVocabularyModel
visibilityType
- the visibility type of this asset vocabularypublic void setVocabularyId(long vocabularyId)
setVocabularyId
in interface AssetVocabularyModel
vocabularyId
- the vocabulary ID of this asset vocabularypublic Map<String,Function<AssetVocabulary,Object>> getAttributeGetterFunctions()
getAttributeGetterFunctions
in interface BaseModel<AssetVocabulary>
public Map<String,BiConsumer<AssetVocabulary,Object>> getAttributeSetterBiConsumers()
getAttributeSetterBiConsumers
in interface BaseModel<AssetVocabulary>
public StagedModelType getStagedModelType()
getStagedModelType
in interface StagedModel
protected AssetVocabularyWrapper wrap(AssetVocabulary assetVocabulary)
wrap
in class BaseModelWrapper<AssetVocabulary>