public class AssetVocabularyWrapper extends BaseModelWrapper<AssetVocabulary> implements AssetVocabulary, ModelWrapper<AssetVocabulary>
This class is a wrapper for AssetVocabulary.
AssetVocabulary,
Serialized FormmodelVOCABULARY_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, toXmlStringclone, getExpandoBridge, getPrimaryKeyObj, isCachedModel, isEntityCacheEnabled, isEscapedModel, isFinderCacheEnabled, isNew, resetOriginalValues, setCachedModel, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setNew, setPrimaryKeyObj, toCacheModel, toEscapedModel, toUnescapedModel, toXmlStringgetModelClass, getModelClassNameclonegetWrappedModelpublic 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 AssetVocabularyModelcloneWithOriginalValues in interface BaseModel<AssetVocabulary>public String[] getAvailableLanguageIds()
getAvailableLanguageIds in interface AssetVocabularyModelgetAvailableLanguageIds in interface LocalizedModelpublic List<AssetCategory> getCategories()
getCategories in interface AssetVocabularypublic int getCategoriesCount()
getCategoriesCount in interface AssetVocabularypublic long getCompanyId()
getCompanyId in interface AssetVocabularyModelgetCompanyId in interface AuditedModelgetCompanyId in interface ShardedModelgetCompanyId in interface StagedModelpublic Date getCreateDate()
getCreateDate in interface AssetVocabularyModelgetCreateDate in interface AuditedModelgetCreateDate in interface StagedModelpublic long getCtCollectionId()
getCtCollectionId in interface AssetVocabularyModelgetCtCollectionId in interface CTModel<AssetVocabulary>public String getDefaultLanguageId()
getDefaultLanguageId in interface AssetVocabularyModelgetDefaultLanguageId in interface LocalizedModelpublic String getDescription()
getDescription in interface AssetVocabularyModelpublic String getDescription(Locale locale)
getDescription in interface AssetVocabularyModellocale - the locale of the languagepublic String getDescription(Locale locale,
boolean useDefault)
getDescription in interface AssetVocabularyModellocale - 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 AssetVocabularyModellanguageId - the ID of the languagepublic String getDescription(String languageId,
boolean useDefault)
getDescription in interface AssetVocabularyModellanguageId - the ID of the languageuseDefault - whether to use the default language if no localization exists for the requested languagepublic String getDescriptionCurrentLanguageId()
getDescriptionCurrentLanguageId in interface AssetVocabularyModelpublic String getDescriptionCurrentValue()
getDescriptionCurrentValue in interface AssetVocabularyModelpublic Map<Locale,String> getDescriptionMap()
getDescriptionMap in interface AssetVocabularyModelpublic String getExternalReferenceCode()
getExternalReferenceCode in interface AssetVocabularyModelpublic long getGroupId()
getGroupId in interface AssetVocabularyModelgetGroupId in interface GroupedModelpublic Date getLastPublishDate()
getLastPublishDate in interface AssetVocabularyModelgetLastPublishDate in interface StagedGroupedModelpublic Date getModifiedDate()
getModifiedDate in interface AssetVocabularyModelgetModifiedDate in interface AuditedModelgetModifiedDate in interface StagedModelpublic long getMvccVersion()
getMvccVersion in interface AssetVocabularyModelgetMvccVersion in interface MVCCModelpublic String getName()
getName in interface AssetVocabularyModelpublic long getPrimaryKey()
getPrimaryKey in interface AssetVocabularyModelgetPrimaryKey in interface CTModel<AssetVocabulary>public long[] getRequiredClassNameIds()
getRequiredClassNameIds in interface AssetVocabularypublic long[] getSelectedClassNameIds()
getSelectedClassNameIds in interface AssetVocabularypublic long[] getSelectedClassTypePKs()
getSelectedClassTypePKs in interface AssetVocabularypublic String getSettings()
getSettings in interface AssetVocabularyModelpublic String getTitle()
getTitle in interface AssetVocabularyModelpublic String getTitle(Locale locale)
getTitle in interface AssetVocabularyModellocale - the locale of the languagepublic String getTitle(Locale locale,
boolean useDefault)
getTitle in interface AssetVocabularyModellocale - 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 AssetVocabularyModellanguageId - the ID of the languagepublic String getTitle(String languageId,
boolean useDefault)
getTitle in interface AssetVocabularyModellanguageId - the ID of the languageuseDefault - whether to use the default language if no localization exists for the requested languagepublic String getTitleCurrentLanguageId()
getTitleCurrentLanguageId in interface AssetVocabularyModelpublic String getTitleCurrentValue()
getTitleCurrentValue in interface AssetVocabularyModelpublic Map<Locale,String> getTitleMap()
getTitleMap in interface AssetVocabularyModelpublic String getUnambiguousTitle(List<AssetVocabulary> vocabularies, long groupId, Locale locale) throws PortalException
getUnambiguousTitle in interface AssetVocabularyPortalExceptionpublic long getUserId()
getUserId in interface AssetVocabularyModelgetUserId in interface AuditedModelpublic String getUserName()
getUserName in interface AssetVocabularyModelgetUserName in interface AuditedModelpublic String getUserUuid()
getUserUuid in interface AssetVocabularyModelgetUserUuid in interface AuditedModelpublic String getUuid()
getUuid in interface AssetVocabularyModelgetUuid in interface StagedModelpublic int getVisibilityType()
getVisibilityType in interface AssetVocabularyModelpublic long getVocabularyId()
getVocabularyId in interface AssetVocabularyModelpublic boolean hasMoreThanOneCategorySelected(long[] categoryIds)
hasMoreThanOneCategorySelected in interface AssetVocabularypublic boolean isAssociatedToClassNameId(long classNameId)
isAssociatedToClassNameId in interface AssetVocabularypublic boolean isAssociatedToClassNameIdAndClassTypePK(long classNameId,
long classTypePK)
isAssociatedToClassNameIdAndClassTypePK in interface AssetVocabularypublic boolean isMissingRequiredCategory(long classNameId,
long classTypePK,
long[] categoryIds)
isMissingRequiredCategory in interface AssetVocabularypublic boolean isMultiValued()
isMultiValued in interface AssetVocabularypublic boolean isRequired(long classNameId,
long classTypePK)
isRequired in interface AssetVocabularypublic void persist()
PersistedModelpersist in interface PersistedModelpublic void prepareLocalizedFieldsForImport()
throws LocaleException
prepareLocalizedFieldsForImport in interface AssetVocabularyModelprepareLocalizedFieldsForImport in interface LocalizedModelLocaleExceptionpublic void prepareLocalizedFieldsForImport(Locale defaultImportLocale)
throws LocaleException
prepareLocalizedFieldsForImport in interface AssetVocabularyModelprepareLocalizedFieldsForImport in interface LocalizedModelLocaleExceptionpublic void setCompanyId(long companyId)
setCompanyId in interface AssetVocabularyModelsetCompanyId in interface AuditedModelsetCompanyId in interface ShardedModelsetCompanyId in interface StagedModelcompanyId - the company ID of this asset vocabularypublic void setCreateDate(Date createDate)
setCreateDate in interface AssetVocabularyModelsetCreateDate in interface AuditedModelsetCreateDate in interface StagedModelcreateDate - the create date of this asset vocabularypublic void setCtCollectionId(long ctCollectionId)
setCtCollectionId in interface AssetVocabularyModelsetCtCollectionId in interface CTModel<AssetVocabulary>ctCollectionId - the ct collection ID of this asset vocabularypublic void setDescription(String description)
setDescription in interface AssetVocabularyModeldescription - the description of this asset vocabularypublic void setDescription(String description,
Locale locale)
setDescription in interface AssetVocabularyModeldescription - the localized description of this asset vocabularylocale - the locale of the languagepublic void setDescription(String description,
Locale locale,
Locale defaultLocale)
setDescription in interface AssetVocabularyModeldescription - the localized description of this asset vocabularylocale - the locale of the languagedefaultLocale - the default localepublic void setDescriptionCurrentLanguageId(String languageId)
setDescriptionCurrentLanguageId in interface AssetVocabularyModelpublic void setDescriptionMap(Map<Locale,String> descriptionMap)
setDescriptionMap in interface AssetVocabularyModeldescriptionMap - the locales and localized descriptions of this asset vocabularypublic void setDescriptionMap(Map<Locale,String> descriptionMap,
Locale defaultLocale)
setDescriptionMap in interface AssetVocabularyModeldescriptionMap - the locales and localized descriptions of this asset vocabularydefaultLocale - the default localepublic void setExternalReferenceCode(String externalReferenceCode)
setExternalReferenceCode in interface AssetVocabularyModelexternalReferenceCode - the external reference code of this asset vocabularypublic void setGroupId(long groupId)
setGroupId in interface AssetVocabularyModelsetGroupId in interface GroupedModelgroupId - the group ID of this asset vocabularypublic void setLastPublishDate(Date lastPublishDate)
setLastPublishDate in interface AssetVocabularyModelsetLastPublishDate in interface StagedGroupedModellastPublishDate - the last publish date of this asset vocabularypublic void setModifiedDate(Date modifiedDate)
setModifiedDate in interface AssetVocabularyModelsetModifiedDate in interface AuditedModelsetModifiedDate in interface StagedModelmodifiedDate - the modified date of this asset vocabularypublic void setMvccVersion(long mvccVersion)
setMvccVersion in interface AssetVocabularyModelsetMvccVersion in interface MVCCModelmvccVersion - the mvcc version of this asset vocabularypublic void setName(String name)
setName in interface AssetVocabularyModelname - the name of this asset vocabularypublic void setPrimaryKey(long primaryKey)
setPrimaryKey in interface AssetVocabularyModelsetPrimaryKey in interface CTModel<AssetVocabulary>primaryKey - the primary key of this asset vocabularypublic void setSettings(String settings)
setSettings in interface AssetVocabularyModelsettings - the settings of this asset vocabularypublic void setTitle(String title)
setTitle in interface AssetVocabularyModeltitle - the title of this asset vocabularypublic void setTitle(String title,
Locale locale)
setTitle in interface AssetVocabularyModeltitle - the localized title of this asset vocabularylocale - the locale of the languagepublic void setTitle(String title,
Locale locale,
Locale defaultLocale)
setTitle in interface AssetVocabularyModeltitle - the localized title of this asset vocabularylocale - the locale of the languagedefaultLocale - the default localepublic void setTitleCurrentLanguageId(String languageId)
setTitleCurrentLanguageId in interface AssetVocabularyModelpublic void setTitleMap(Map<Locale,String> titleMap)
setTitleMap in interface AssetVocabularyModeltitleMap - the locales and localized titles of this asset vocabularypublic void setTitleMap(Map<Locale,String> titleMap,
Locale defaultLocale)
setTitleMap in interface AssetVocabularyModeltitleMap - the locales and localized titles of this asset vocabularydefaultLocale - the default localepublic void setUserId(long userId)
setUserId in interface AssetVocabularyModelsetUserId in interface AuditedModeluserId - the user ID of this asset vocabularypublic void setUserName(String userName)
setUserName in interface AssetVocabularyModelsetUserName in interface AuditedModeluserName - the user name of this asset vocabularypublic void setUserUuid(String userUuid)
setUserUuid in interface AssetVocabularyModelsetUserUuid in interface AuditedModeluserUuid - the user uuid of this asset vocabularypublic void setUuid(String uuid)
setUuid in interface AssetVocabularyModelsetUuid in interface StagedModeluuid - the uuid of this asset vocabularypublic void setVisibilityType(int visibilityType)
setVisibilityType in interface AssetVocabularyModelvisibilityType - the visibility type of this asset vocabularypublic void setVocabularyId(long vocabularyId)
setVocabularyId in interface AssetVocabularyModelvocabularyId - 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 StagedModelprotected AssetVocabularyWrapper wrap(AssetVocabulary assetVocabulary)
wrap in class BaseModelWrapper<AssetVocabulary>