com.liferay.portlet.asset.model.impl
Class AssetVocabularyImpl
java.lang.Object
com.liferay.portal.model.impl.BaseModelImpl<AssetVocabulary>
com.liferay.portlet.asset.model.impl.AssetVocabularyModelImpl
com.liferay.portlet.asset.model.impl.AssetVocabularyBaseImpl
com.liferay.portlet.asset.model.impl.AssetVocabularyImpl
- All Implemented Interfaces:
- AuditedModel, BaseModel<AssetVocabulary>, ClassedModel, GroupedModel, LocalizedModel, PersistedModel, ShardedModel, StagedGroupedModel, StagedModel, AssetVocabulary, AssetVocabularyModel, Serializable, Cloneable, Comparable<AssetVocabulary>
public class AssetVocabularyImpl
- extends AssetVocabularyBaseImpl
- See Also:
- Serialized Form
| Fields inherited from class com.liferay.portlet.asset.model.impl.AssetVocabularyModelImpl |
COLUMN_BITMASK_ENABLED, COMPANYID_COLUMN_BITMASK, DATA_SOURCE, ENTITY_CACHE_ENABLED, FINDER_CACHE_ENABLED, GROUPID_COLUMN_BITMASK, LOCK_EXPIRATION_TIME, NAME_COLUMN_BITMASK, ORDER_BY_JPQL, ORDER_BY_SQL, SESSION_FACTORY, TABLE_COLUMNS, TABLE_COLUMNS_MAP, TABLE_NAME, TABLE_SQL_CREATE, TABLE_SQL_DROP, TX_MANAGER, UUID_COLUMN_BITMASK |
|
Method Summary |
List<AssetCategory> |
getCategories()
|
int |
getCategoriesCount()
|
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 |
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 |
getUnambiguousTitle(List<AssetVocabulary> vocabularies,
long groupId,
Locale locale)
|
protected AssetVocabularySettingsHelper |
getVocabularySettingsHelper()
|
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)
Deprecated. As of 7.0.0, replaced by isRequired(long, long) |
boolean |
isRequired(long classNameId,
long classTypePK)
|
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 |
| Methods inherited from class com.liferay.portlet.asset.model.impl.AssetVocabularyModelImpl |
clone, compareTo, equals, getAvailableLanguageIds, getColumnBitmask, getCompanyId, getCreateDate, getDefaultLanguageId, getDescription, getDescription, getDescription, getDescription, getDescription, getDescriptionCurrentLanguageId, getDescriptionCurrentValue, getDescriptionMap, getExpandoBridge, getGroupId, getLastPublishDate, getModelAttributes, getModelClass, getModelClassName, getModifiedDate, getName, getOriginalCompanyId, getOriginalGroupId, getOriginalName, getOriginalUuid, getPrimaryKey, getPrimaryKeyObj, getStagedModelType, getTitle, getTitle, getTitle, getTitleCurrentLanguageId, getTitleCurrentValue, getTitleMap, getUserId, getUserName, getUserUuid, getUuid, getVocabularyId, hashCode, hasSetModifiedDate, isEntityCacheEnabled, isFinderCacheEnabled, prepareLocalizedFieldsForImport, prepareLocalizedFieldsForImport, resetOriginalValues, setCompanyId, setCreateDate, setDescription, setDescription, setDescription, setDescriptionCurrentLanguageId, setDescriptionMap, setDescriptionMap, setExpandoBridgeAttributes, setGroupId, setLastPublishDate, setModelAttributes, setModifiedDate, setName, setPrimaryKey, setPrimaryKeyObj, setTitle, setTitle, setTitle, setTitleCurrentLanguageId, setTitleMap, setTitleMap, setUserId, setUserName, setUserUuid, setUuid, setVocabularyId, toCacheModel, toEscapedModel, toModel, toModels, toString, toXmlString |
| Methods inherited from interface com.liferay.portlet.asset.model.AssetVocabularyModel |
clone, compareTo, getAvailableLanguageIds, getCompanyId, getCreateDate, getDefaultLanguageId, getDescription, getDescription, getDescription, getDescription, getDescription, getDescriptionCurrentLanguageId, getDescriptionCurrentValue, getDescriptionMap, getExpandoBridge, getGroupId, getLastPublishDate, getModifiedDate, getName, getPrimaryKey, getPrimaryKeyObj, getTitle, getTitle, getTitle, getTitleCurrentLanguageId, getTitleCurrentValue, getTitleMap, getUserId, getUserName, getUserUuid, getUuid, getVocabularyId, hashCode, isCachedModel, isEscapedModel, isNew, prepareLocalizedFieldsForImport, prepareLocalizedFieldsForImport, setCachedModel, setCompanyId, setCreateDate, setDescription, setDescription, setDescription, setDescriptionCurrentLanguageId, setDescriptionMap, setDescriptionMap, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setGroupId, setLastPublishDate, setModifiedDate, setName, setNew, setPrimaryKey, setPrimaryKeyObj, setTitle, setTitle, setTitle, setTitleCurrentLanguageId, setTitleMap, setTitleMap, setUserId, setUserName, setUserUuid, setUuid, setVocabularyId, toCacheModel, toEscapedModel, toString, toUnescapedModel, toXmlString |
AssetVocabularyImpl
public AssetVocabularyImpl()
getCategories
public List<AssetCategory> getCategories()
getCategoriesCount
public int getCategoriesCount()
getRequiredClassNameIds
public long[] getRequiredClassNameIds()
getSelectedClassNameIds
public long[] getSelectedClassNameIds()
getSelectedClassTypePKs
public long[] getSelectedClassTypePKs()
getSettings
public String getSettings()
- Description copied from interface:
AssetVocabularyModel
- Returns the settings of this asset vocabulary.
- Specified by:
getSettings in interface AssetVocabularyModel- Overrides:
getSettings in class AssetVocabularyModelImpl
- Returns:
- the settings of this asset vocabulary
getSettingsProperties
@Deprecated
public UnicodeProperties getSettingsProperties()
- Deprecated. As of 7.0.0, with no direct replacement
getTitle
public String getTitle(String languageId)
- Description copied from interface:
AssetVocabularyModel
- Returns the localized title of this asset vocabulary in the language. Uses the default language if no localization exists for the requested language.
- Specified by:
getTitle in interface AssetVocabularyModel- Overrides:
getTitle in class AssetVocabularyModelImpl
- Parameters:
languageId - the ID of the language
- Returns:
- the localized title of this asset vocabulary
getTitle
public String getTitle(String languageId,
boolean useDefault)
- Description copied from interface:
AssetVocabularyModel
- Returns the localized title of this asset vocabulary in the language, optionally using the default language if no localization exists for the requested language.
- Specified by:
getTitle in interface AssetVocabularyModel- Overrides:
getTitle in class AssetVocabularyModelImpl
- Parameters:
languageId - the ID of the languageuseDefault - whether to use the default language if no localization exists for the requested language
- Returns:
- the localized title of this asset vocabulary
getUnambiguousTitle
public String getUnambiguousTitle(List<AssetVocabulary> vocabularies,
long groupId,
Locale locale)
throws PortalException
- Throws:
PortalException
hasMoreThanOneCategorySelected
public boolean hasMoreThanOneCategorySelected(long[] categoryIds)
isAssociatedToClassNameId
public boolean isAssociatedToClassNameId(long classNameId)
isAssociatedToClassNameIdAndClassTypePK
public boolean isAssociatedToClassNameIdAndClassTypePK(long classNameId,
long classTypePK)
isMissingRequiredCategory
public boolean isMissingRequiredCategory(long classNameId,
long classTypePK,
long[] categoryIds)
isMultiValued
public boolean isMultiValued()
isRequired
@Deprecated
public boolean isRequired(long classNameId)
- Deprecated. As of 7.0.0, replaced by
isRequired(long, long)
isRequired
public boolean isRequired(long classNameId,
long classTypePK)
setSettings
public void setSettings(String settings)
- Description copied from interface:
AssetVocabularyModel
- Sets the settings of this asset vocabulary.
- Specified by:
setSettings in interface AssetVocabularyModel- Overrides:
setSettings in class AssetVocabularyModelImpl
- Parameters:
settings - the settings of this asset vocabulary
setSettingsProperties
@Deprecated
public void setSettingsProperties(UnicodeProperties settingsProperties)
- Deprecated. As of 7.0.0, with no direct replacement
getVocabularySettingsHelper
protected AssetVocabularySettingsHelper getVocabularySettingsHelper()