|
Liferay 6.2-ce-ga5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.liferay.portlet.asset.model.AssetVocabularyWrapper
@ProviderType public class AssetVocabularyWrapper
This class is a wrapper for AssetVocabulary
.
AssetVocabulary
,
Serialized FormConstructor Summary | |
---|---|
AssetVocabularyWrapper(AssetVocabulary assetVocabulary)
|
Method Summary | |
---|---|
Object |
clone()
Creates a shallow clone of this model instance. |
int |
compareTo(AssetVocabulary assetVocabulary)
|
boolean |
equals(Object obj)
|
String[] |
getAvailableLanguageIds()
|
List<AssetCategory> |
getCategories()
|
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. |
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. |
String |
getSettings()
Returns the settings of this asset vocabulary. |
UnicodeProperties |
getSettingsProperties()
|
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. |
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 |
getWrappedAssetVocabulary()
Deprecated. As of 6.1.0, replaced by getWrappedModel() |
AssetVocabulary |
getWrappedModel()
|
int |
hashCode()
|
boolean |
isCachedModel()
Returns true if this model instance was retrieved from the
entity cache. |
boolean |
isEscapedModel()
Returns true if this model instance is escaped. |
boolean |
isMultiValued()
|
boolean |
isNew()
Returns true if this model instance does not yet exist in
the database. |
boolean |
isRequired(long classNameId)
|
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 |
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)
|
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. |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AssetVocabularyWrapper(AssetVocabulary assetVocabulary)
Method Detail |
---|
public Class<?> getModelClass()
getModelClass
in interface ClassedModel
public String getModelClassName()
getModelClassName
in interface ClassedModel
public Map<String,Object> getModelAttributes()
getModelAttributes
in interface BaseModel<AssetVocabulary>
public void setModelAttributes(Map<String,Object> attributes)
setModelAttributes
in interface BaseModel<AssetVocabulary>
public long getPrimaryKey()
getPrimaryKey
in interface AssetVocabularyModel
public void setPrimaryKey(long primaryKey)
setPrimaryKey
in interface AssetVocabularyModel
primaryKey
- the primary key of this asset vocabularypublic String getUuid()
getUuid
in interface StagedModel
getUuid
in interface AssetVocabularyModel
public void setUuid(String uuid)
setUuid
in interface StagedModel
setUuid
in interface AssetVocabularyModel
uuid
- the uuid of this asset vocabularypublic long getVocabularyId()
getVocabularyId
in interface AssetVocabularyModel
public void setVocabularyId(long vocabularyId)
setVocabularyId
in interface AssetVocabularyModel
vocabularyId
- the vocabulary ID of this asset vocabularypublic long getGroupId()
getGroupId
in interface GroupedModel
getGroupId
in interface AssetVocabularyModel
public void setGroupId(long groupId)
setGroupId
in interface GroupedModel
setGroupId
in interface AssetVocabularyModel
groupId
- the group ID of this asset vocabularypublic long getCompanyId()
getCompanyId
in interface AuditedModel
getCompanyId
in interface StagedModel
getCompanyId
in interface AssetVocabularyModel
public void setCompanyId(long companyId)
setCompanyId
in interface AuditedModel
setCompanyId
in interface StagedModel
setCompanyId
in interface AssetVocabularyModel
companyId
- the company ID of this asset vocabularypublic long getUserId()
getUserId
in interface AuditedModel
getUserId
in interface AssetVocabularyModel
public void setUserId(long userId)
setUserId
in interface AuditedModel
setUserId
in interface AssetVocabularyModel
userId
- the user ID of this asset vocabularypublic String getUserUuid() throws SystemException
getUserUuid
in interface AuditedModel
getUserUuid
in interface AssetVocabularyModel
SystemException
- if a system exception occurredpublic void setUserUuid(String userUuid)
setUserUuid
in interface AuditedModel
setUserUuid
in interface AssetVocabularyModel
userUuid
- the user uuid of this asset vocabularypublic String getUserName()
getUserName
in interface AuditedModel
getUserName
in interface AssetVocabularyModel
public void setUserName(String userName)
setUserName
in interface AuditedModel
setUserName
in interface AssetVocabularyModel
userName
- the user name of this asset vocabularypublic Date getCreateDate()
getCreateDate
in interface AuditedModel
getCreateDate
in interface StagedModel
getCreateDate
in interface AssetVocabularyModel
public void setCreateDate(Date createDate)
setCreateDate
in interface AuditedModel
setCreateDate
in interface StagedModel
setCreateDate
in interface AssetVocabularyModel
createDate
- the create date of this asset vocabularypublic Date getModifiedDate()
getModifiedDate
in interface AuditedModel
getModifiedDate
in interface StagedModel
getModifiedDate
in interface AssetVocabularyModel
public void setModifiedDate(Date modifiedDate)
setModifiedDate
in interface AuditedModel
setModifiedDate
in interface StagedModel
setModifiedDate
in interface AssetVocabularyModel
modifiedDate
- the modified date of this asset vocabularypublic String getName()
getName
in interface AssetVocabularyModel
public void setName(String name)
setName
in interface AssetVocabularyModel
name
- the name of this asset vocabularypublic String getTitle()
getTitle
in interface AssetVocabularyModel
public String getTitle(Locale locale)
getTitle
in interface AssetVocabularyModel
locale
- the locale of the language
public 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 language
useDefault
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 language
public 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 language
public String getTitleCurrentLanguageId()
getTitleCurrentLanguageId
in interface AssetVocabularyModel
public String getTitleCurrentValue()
getTitleCurrentValue
in interface AssetVocabularyModel
public Map<Locale,String> getTitleMap()
getTitleMap
in interface AssetVocabularyModel
public 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 String getDescription()
getDescription
in interface AssetVocabularyModel
public String getDescription(Locale locale)
getDescription
in interface AssetVocabularyModel
locale
- the locale of the language
public 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 language
useDefault
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 language
public 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 language
public String getDescriptionCurrentLanguageId()
getDescriptionCurrentLanguageId
in interface AssetVocabularyModel
public String getDescriptionCurrentValue()
getDescriptionCurrentValue
in interface AssetVocabularyModel
public Map<Locale,String> getDescriptionMap()
getDescriptionMap
in interface AssetVocabularyModel
public 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 String getSettings()
getSettings
in interface AssetVocabularyModel
public void setSettings(String settings)
setSettings
in interface AssetVocabularyModel
settings
- the settings of this asset vocabularypublic boolean isNew()
BaseModel
true
if this model instance does not yet exist in
the database.
isNew
in interface BaseModel<AssetVocabulary>
isNew
in interface AssetVocabularyModel
true
if this model instance does not yet exist in
the database; false
otherwisepublic void setNew(boolean n)
BaseModel
setNew
in interface BaseModel<AssetVocabulary>
setNew
in interface AssetVocabularyModel
n
- whether this model instance does not yet exist in the databasepublic boolean isCachedModel()
BaseModel
true
if this model instance was retrieved from the
entity cache.
isCachedModel
in interface BaseModel<AssetVocabulary>
isCachedModel
in interface AssetVocabularyModel
true
if this model instance was retrieved from the
entity cache; false
otherwiseBaseModel.setCachedModel(boolean)
public void setCachedModel(boolean cachedModel)
BaseModel
setCachedModel
in interface BaseModel<AssetVocabulary>
setCachedModel
in interface AssetVocabularyModel
cachedModel
- whether this model instance was retrieved from the
entity cacheEntityCache
public boolean isEscapedModel()
BaseModel
true
if this model instance is escaped.
isEscapedModel
in interface BaseModel<AssetVocabulary>
isEscapedModel
in interface AssetVocabularyModel
true
if this model instance is escaped;
false
otherwisepublic Serializable getPrimaryKeyObj()
BaseModel
getPrimaryKeyObj
in interface BaseModel<AssetVocabulary>
getPrimaryKeyObj
in interface ClassedModel
getPrimaryKeyObj
in interface AssetVocabularyModel
public void setPrimaryKeyObj(Serializable primaryKeyObj)
BaseModel
setPrimaryKeyObj
in interface BaseModel<AssetVocabulary>
setPrimaryKeyObj
in interface ClassedModel
setPrimaryKeyObj
in interface AssetVocabularyModel
primaryKeyObj
- the primary key of this model instancepublic ExpandoBridge getExpandoBridge()
BaseModel
getExpandoBridge
in interface BaseModel<AssetVocabulary>
getExpandoBridge
in interface ClassedModel
getExpandoBridge
in interface AssetVocabularyModel
public void setExpandoBridgeAttributes(BaseModel<?> baseModel)
setExpandoBridgeAttributes
in interface BaseModel<AssetVocabulary>
setExpandoBridgeAttributes
in interface AssetVocabularyModel
public void setExpandoBridgeAttributes(ExpandoBridge expandoBridge)
setExpandoBridgeAttributes
in interface BaseModel<AssetVocabulary>
setExpandoBridgeAttributes
in interface AssetVocabularyModel
public void setExpandoBridgeAttributes(ServiceContext serviceContext)
BaseModel
setExpandoBridgeAttributes
in interface BaseModel<AssetVocabulary>
setExpandoBridgeAttributes
in interface AssetVocabularyModel
serviceContext
- the service context to be appliedServiceContext.getExpandoBridgeAttributes(
)
public String[] getAvailableLanguageIds()
getAvailableLanguageIds
in interface AssetVocabularyModel
public String getDefaultLanguageId()
getDefaultLanguageId
in interface AssetVocabularyModel
public void prepareLocalizedFieldsForImport() throws LocaleException
prepareLocalizedFieldsForImport
in interface AssetVocabularyModel
LocaleException
public void prepareLocalizedFieldsForImport(Locale defaultImportLocale) throws LocaleException
prepareLocalizedFieldsForImport
in interface AssetVocabularyModel
LocaleException
public Object clone()
BaseModel
clone
in interface BaseModel<AssetVocabulary>
clone
in interface StagedModel
clone
in interface AssetVocabularyModel
clone
in class Object
public int compareTo(AssetVocabulary assetVocabulary)
compareTo
in interface AssetVocabularyModel
compareTo
in interface Comparable<AssetVocabulary>
public int hashCode()
hashCode
in interface AssetVocabularyModel
hashCode
in class Object
public CacheModel<AssetVocabulary> toCacheModel()
BaseModel
toCacheModel
in interface BaseModel<AssetVocabulary>
toCacheModel
in interface AssetVocabularyModel
public AssetVocabulary toEscapedModel()
BaseModel
AutoEscapeBeanHandler
.
toEscapedModel
in interface BaseModel<AssetVocabulary>
toEscapedModel
in interface AssetVocabularyModel
AutoEscapeBeanHandler
public AssetVocabulary toUnescapedModel()
toUnescapedModel
in interface BaseModel<AssetVocabulary>
toUnescapedModel
in interface AssetVocabularyModel
public String toString()
toString
in interface AssetVocabularyModel
toString
in class Object
public String toXmlString()
BaseModel
toXmlString
in interface BaseModel<AssetVocabulary>
toXmlString
in interface AssetVocabularyModel
public void persist() throws SystemException
PersistedModel
persist
in interface PersistedModel
SystemException
- if a system exception occurredpublic List<AssetCategory> getCategories() throws SystemException
getCategories
in interface AssetVocabulary
SystemException
public UnicodeProperties getSettingsProperties()
getSettingsProperties
in interface AssetVocabulary
public boolean isMultiValued()
isMultiValued
in interface AssetVocabulary
public boolean isRequired(long classNameId)
isRequired
in interface AssetVocabulary
public void setSettingsProperties(UnicodeProperties settingsProperties)
setSettingsProperties
in interface AssetVocabulary
public boolean equals(Object obj)
equals
in class Object
public StagedModelType getStagedModelType()
getStagedModelType
in interface StagedModel
public AssetVocabulary getWrappedAssetVocabulary()
getWrappedModel()
public AssetVocabulary getWrappedModel()
getWrappedModel
in interface ModelWrapper<AssetVocabulary>
public void resetOriginalValues()
BaseModel
resetOriginalValues
in interface BaseModel<AssetVocabulary>
|
Liferay 6.2-ce-ga5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |