@ProviderType public class AssetVocabularyWrapper extends Object implements AssetVocabulary, ModelWrapper<AssetVocabulary>
This class is a wrapper for AssetVocabulary.
AssetVocabulary,
Serialized FormVOCABULARY_ID_ACCESSOR| Constructor and Description |
|---|
AssetVocabularyWrapper(AssetVocabulary assetVocabulary) |
| Modifier and Type | Method and Description |
|---|---|
Object |
clone()
Creates a shallow clone of this model instance.
|
int |
compareTo(AssetVocabulary assetVocabulary) |
boolean |
equals(Object obj) |
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.
|
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.
|
ExpandoBridge |
getExpandoBridge()
Returns the expando bridge for this model instance.
|
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() |
Class<?> |
getModelClass() |
String |
getModelClassName() |
Date |
getModifiedDate()
Returns the modified date of this asset vocabulary.
|
String |
getName()
Returns the name of this asset vocabulary.
|
long |
getPrimaryKey()
Returns the primary key of this asset vocabulary.
|
Serializable |
getPrimaryKeyObj()
Returns the primary key of this model instance.
|
long[] |
getRequiredClassNameIds() |
long[] |
getSelectedClassNameIds() |
long[] |
getSelectedClassTypePKs() |
String |
getSettings()
Returns the settings of this asset vocabulary.
|
UnicodeProperties |
getSettingsProperties()
Deprecated.
As of 7.0.0, with no direct replacement
|
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.
|
long |
getVocabularyId()
Returns the vocabulary ID of this asset vocabulary.
|
AssetVocabulary |
getWrappedModel() |
int |
hashCode() |
boolean |
hasMoreThanOneCategorySelected(long[] categoryIds) |
boolean |
isAssociatedToClassNameId(long classNameId) |
boolean |
isAssociatedToClassNameIdAndClassTypePK(long classNameId,
long classTypePK) |
boolean |
isCachedModel()
Returns
true if this model instance was retrieved from the
entity cache. |
boolean |
isEntityCacheEnabled()
Returns
true if this model's entity cache is enabled. |
boolean |
isEscapedModel()
Returns
true if this model instance is escaped. |
boolean |
isFinderCacheEnabled()
Returns
true if this model's finder cache is enabled. |
boolean |
isMissingRequiredCategory(long classNameId,
long classTypePK,
long[] categoryIds) |
boolean |
isMultiValued() |
boolean |
isNew()
Returns
true if this model instance does not yet exist in
the database. |
boolean |
isRequired(long classNameId)
Deprecated.
As of 7.0.0, replaced by
isRequired(long, long) |
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 |
resetOriginalValues()
Reset all original fields to current values.
|
void |
setCachedModel(boolean cachedModel)
Sets whether this model instance was retrieved from the entity cache.
|
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 |
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 |
setExpandoBridgeAttributes(BaseModel<?> baseModel) |
void |
setExpandoBridgeAttributes(ExpandoBridge expandoBridge) |
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 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 |
setName(String name)
Sets the name of this asset vocabulary.
|
void |
setNew(boolean n)
Sets whether this model instance does not yet exist in the database.
|
void |
setPrimaryKey(long primaryKey)
Sets the primary key of this asset vocabulary.
|
void |
setPrimaryKeyObj(Serializable primaryKeyObj)
Sets the primary key of this model instance.
|
void |
setSettings(String settings)
Sets the settings of this asset vocabulary.
|
void |
setSettingsProperties(UnicodeProperties settingsProperties)
Deprecated.
As of 7.0.0, with no direct replacement
|
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 |
setVocabularyId(long vocabularyId)
Sets the vocabulary ID of this asset vocabulary.
|
CacheModel<AssetVocabulary> |
toCacheModel()
Returns a cache model object for this entity used by entity cache.
|
AssetVocabulary |
toEscapedModel()
Returns a copy of this entity as an escaped model instance by wrapping it
with an
AutoEscapeBeanHandler. |
String |
toString() |
AssetVocabulary |
toUnescapedModel() |
String |
toXmlString()
Returns the XML representation of this model instance.
|
public AssetVocabularyWrapper(AssetVocabulary assetVocabulary)
public Class<?> getModelClass()
getModelClass in interface ClassedModelpublic String getModelClassName()
getModelClassName in interface ClassedModelpublic Map<String,Object> getModelAttributes()
getModelAttributes in interface BaseModel<AssetVocabulary>public void setModelAttributes(Map<String,Object> attributes)
setModelAttributes in interface BaseModel<AssetVocabulary>public AssetVocabulary toEscapedModel()
BaseModelAutoEscapeBeanHandler.toEscapedModel in interface AssetVocabularyModeltoEscapedModel in interface BaseModel<AssetVocabulary>AutoEscapeBeanHandlerpublic AssetVocabulary toUnescapedModel()
toUnescapedModel in interface AssetVocabularyModeltoUnescapedModel in interface BaseModel<AssetVocabulary>public 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 isCachedModel()
BaseModeltrue if this model instance was retrieved from the
entity cache.isCachedModel in interface AssetVocabularyModelisCachedModel in interface BaseModel<AssetVocabulary>true if this model instance was retrieved from the
entity cache; false otherwiseBaseModel.setCachedModel(boolean)public boolean isEscapedModel()
BaseModeltrue if this model instance is escaped.isEscapedModel in interface AssetVocabularyModelisEscapedModel in interface BaseModel<AssetVocabulary>true if this model instance is escaped;
false otherwisepublic boolean isMissingRequiredCategory(long classNameId,
long classTypePK,
long[] categoryIds)
isMissingRequiredCategory in interface AssetVocabularypublic boolean isMultiValued()
isMultiValued in interface AssetVocabularypublic boolean isNew()
BaseModeltrue if this model instance does not yet exist in
the database.isNew in interface AssetVocabularyModelisNew in interface BaseModel<AssetVocabulary>true if this model instance does not yet exist in
the database; false otherwise@Deprecated public boolean isRequired(long classNameId)
isRequired(long, long)isRequired in interface AssetVocabularypublic boolean isRequired(long classNameId,
long classTypePK)
isRequired in interface AssetVocabularypublic ExpandoBridge getExpandoBridge()
BaseModelgetExpandoBridge in interface AssetVocabularyModelgetExpandoBridge in interface BaseModel<AssetVocabulary>getExpandoBridge in interface ClassedModelpublic CacheModel<AssetVocabulary> toCacheModel()
BaseModeltoCacheModel in interface AssetVocabularyModeltoCacheModel in interface BaseModel<AssetVocabulary>@Deprecated public UnicodeProperties getSettingsProperties()
getSettingsProperties in interface AssetVocabularypublic int compareTo(AssetVocabulary assetVocabulary)
compareTo in interface AssetVocabularyModelcompareTo in interface Comparable<AssetVocabulary>public int getCategoriesCount()
getCategoriesCount in interface AssetVocabularypublic int hashCode()
hashCode in interface AssetVocabularyModelhashCode in class Objectpublic Serializable getPrimaryKeyObj()
BaseModelgetPrimaryKeyObj in interface AssetVocabularyModelgetPrimaryKeyObj in interface BaseModel<AssetVocabulary>getPrimaryKeyObj in interface ClassedModelpublic Object clone()
BaseModelclone in interface AssetVocabularyModelclone in interface BaseModel<AssetVocabulary>clone in interface StagedModelclone in class Objectpublic String getDefaultLanguageId()
getDefaultLanguageId in interface AssetVocabularyModelgetDefaultLanguageId in interface LocalizedModelpublic String getDescription()
getDescription in interface AssetVocabularyModelpublic 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 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 getDescriptionCurrentLanguageId()
getDescriptionCurrentLanguageId in interface AssetVocabularyModelpublic String getDescriptionCurrentValue()
getDescriptionCurrentValue in interface AssetVocabularyModelpublic String getName()
getName in interface AssetVocabularyModelpublic String getSettings()
getSettings in interface AssetVocabularyModelpublic String getTitle()
getTitle in interface AssetVocabularyModelpublic 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 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 getTitleCurrentLanguageId()
getTitleCurrentLanguageId in interface AssetVocabularyModelpublic String getTitleCurrentValue()
getTitleCurrentValue in interface AssetVocabularyModelpublic String getUnambiguousTitle(List<AssetVocabulary> vocabularies, long groupId, Locale locale) throws PortalException
getUnambiguousTitle in interface AssetVocabularyPortalExceptionpublic 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 String toString()
toString in interface AssetVocabularyModeltoString in class Objectpublic String toXmlString()
BaseModeltoXmlString in interface AssetVocabularyModeltoXmlString in interface BaseModel<AssetVocabulary>public String[] getAvailableLanguageIds()
getAvailableLanguageIds in interface AssetVocabularyModelgetAvailableLanguageIds in interface LocalizedModelpublic Date getCreateDate()
getCreateDate in interface AssetVocabularyModelgetCreateDate in interface AuditedModelgetCreateDate in interface StagedModelpublic Date getLastPublishDate()
getLastPublishDate in interface AssetVocabularyModelgetLastPublishDate in interface StagedGroupedModelpublic Date getModifiedDate()
getModifiedDate in interface AssetVocabularyModelgetModifiedDate in interface AuditedModelgetModifiedDate in interface StagedModelpublic List<AssetCategory> getCategories()
getCategories in interface AssetVocabularypublic Map<Locale,String> getDescriptionMap()
getDescriptionMap in interface AssetVocabularyModelpublic Map<Locale,String> getTitleMap()
getTitleMap in interface AssetVocabularyModelpublic long getCompanyId()
getCompanyId in interface AssetVocabularyModelgetCompanyId in interface AuditedModelgetCompanyId in interface ShardedModelgetCompanyId in interface StagedModelpublic long getGroupId()
getGroupId in interface AssetVocabularyModelgetGroupId in interface GroupedModelpublic long getPrimaryKey()
getPrimaryKey in interface AssetVocabularyModelpublic long getUserId()
getUserId in interface AssetVocabularyModelgetUserId in interface AuditedModelpublic long getVocabularyId()
getVocabularyId in interface AssetVocabularyModelpublic long[] getRequiredClassNameIds()
getRequiredClassNameIds in interface AssetVocabularypublic long[] getSelectedClassNameIds()
getSelectedClassNameIds in interface AssetVocabularypublic long[] getSelectedClassTypePKs()
getSelectedClassTypePKs 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 setCachedModel(boolean cachedModel)
BaseModelsetCachedModel in interface AssetVocabularyModelsetCachedModel in interface BaseModel<AssetVocabulary>cachedModel - whether this model instance was retrieved from the
entity cacheEntityCachepublic 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 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 setExpandoBridgeAttributes(ExpandoBridge expandoBridge)
setExpandoBridgeAttributes in interface AssetVocabularyModelsetExpandoBridgeAttributes in interface BaseModel<AssetVocabulary>public void setExpandoBridgeAttributes(BaseModel<?> baseModel)
setExpandoBridgeAttributes in interface AssetVocabularyModelsetExpandoBridgeAttributes in interface BaseModel<AssetVocabulary>public void setExpandoBridgeAttributes(ServiceContext serviceContext)
BaseModelsetExpandoBridgeAttributes in interface AssetVocabularyModelsetExpandoBridgeAttributes in interface BaseModel<AssetVocabulary>serviceContext - the service context to be appliedServiceContext.getExpandoBridgeAttributes()public 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 setName(String name)
setName in interface AssetVocabularyModelname - the name of this asset vocabularypublic void setNew(boolean n)
BaseModelsetNew in interface AssetVocabularyModelsetNew in interface BaseModel<AssetVocabulary>n - whether this model instance does not yet exist in the databasepublic void setPrimaryKey(long primaryKey)
setPrimaryKey in interface AssetVocabularyModelprimaryKey - the primary key of this asset vocabularypublic void setPrimaryKeyObj(Serializable primaryKeyObj)
BaseModelsetPrimaryKeyObj in interface AssetVocabularyModelsetPrimaryKeyObj in interface BaseModel<AssetVocabulary>setPrimaryKeyObj in interface ClassedModelprimaryKeyObj - the primary key of this model instancepublic void setSettings(String settings)
setSettings in interface AssetVocabularyModelsettings - the settings of this asset vocabulary@Deprecated public void setSettingsProperties(UnicodeProperties settingsProperties)
setSettingsProperties in interface AssetVocabularypublic 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 setVocabularyId(long vocabularyId)
setVocabularyId in interface AssetVocabularyModelvocabularyId - the vocabulary ID of this asset vocabularypublic StagedModelType getStagedModelType()
getStagedModelType in interface StagedModelpublic AssetVocabulary getWrappedModel()
getWrappedModel in interface ModelWrapper<AssetVocabulary>public boolean isEntityCacheEnabled()
BaseModeltrue if this model's entity cache is enabled.isEntityCacheEnabled in interface BaseModel<AssetVocabulary>true if this model's entity cache is enabled;
false otherwisepublic boolean isFinderCacheEnabled()
BaseModeltrue if this model's finder cache is enabled.isFinderCacheEnabled in interface BaseModel<AssetVocabulary>true if this model's finder cache is enabled;
false otherwisepublic void resetOriginalValues()
BaseModelresetOriginalValues in interface BaseModel<AssetVocabulary>