public class DDMContentWrapper extends BaseModelWrapper<DDMContent> implements DDMContent, ModelWrapper<DDMContent>
This class is a wrapper for DDMContent.
DDMContent,
Serialized FormmodelCONTENT_ID_ACCESSOR| Constructor and Description |
|---|
DDMContentWrapper(DDMContent ddmContent) |
| Modifier and Type | Method and Description |
|---|---|
java.util.Map<java.lang.String,java.util.function.Function<DDMContent,java.lang.Object>> |
getAttributeGetterFunctions() |
java.util.Map<java.lang.String,java.util.function.BiConsumer<DDMContent,java.lang.Object>> |
getAttributeSetterBiConsumers() |
java.lang.String[] |
getAvailableLanguageIds() |
long |
getCompanyId()
Returns the company ID of this ddm content.
|
long |
getContentId()
Returns the content ID of this ddm content.
|
java.util.Date |
getCreateDate()
Returns the create date of this ddm content.
|
long |
getCtCollectionId()
Returns the ct collection ID of this ddm content.
|
java.lang.String |
getData()
Returns the data of this ddm content.
|
java.lang.String |
getDefaultLanguageId() |
java.lang.String |
getDescription()
Returns the description of this ddm content.
|
long |
getGroupId()
Returns the group ID of this ddm content.
|
java.util.Map<java.lang.String,java.lang.Object> |
getModelAttributes() |
java.util.Date |
getModifiedDate()
Returns the modified date of this ddm content.
|
long |
getMvccVersion()
Returns the mvcc version of this ddm content.
|
java.lang.String |
getName()
Returns the name of this ddm content.
|
java.lang.String |
getName(java.util.Locale locale)
Returns the localized name of this ddm content in the language.
|
java.lang.String |
getName(java.util.Locale locale,
boolean useDefault)
Returns the localized name of this ddm content in the language, optionally using the default language if no localization exists for the requested language.
|
java.lang.String |
getName(java.lang.String languageId)
Returns the localized name of this ddm content in the language.
|
java.lang.String |
getName(java.lang.String languageId,
boolean useDefault)
Returns the localized name of this ddm content in the language, optionally using the default language if no localization exists for the requested language.
|
java.lang.String |
getNameCurrentLanguageId() |
java.lang.String |
getNameCurrentValue() |
java.util.Map<java.util.Locale,java.lang.String> |
getNameMap()
Returns a map of the locales and localized names of this ddm content.
|
long |
getPrimaryKey()
Returns the primary key of this ddm content.
|
StagedModelType |
getStagedModelType() |
long |
getUserId()
Returns the user ID of this ddm content.
|
java.lang.String |
getUserName()
Returns the user name of this ddm content.
|
java.lang.String |
getUserUuid()
Returns the user uuid of this ddm content.
|
java.lang.String |
getUuid()
Returns the uuid of this ddm content.
|
void |
persist()
Updates this model instance in the database or adds it if it does not yet
exist.
|
void |
prepareLocalizedFieldsForImport() |
void |
prepareLocalizedFieldsForImport(java.util.Locale defaultImportLocale) |
void |
setCompanyId(long companyId)
Sets the company ID of this ddm content.
|
void |
setContentId(long contentId)
Sets the content ID of this ddm content.
|
void |
setCreateDate(java.util.Date createDate)
Sets the create date of this ddm content.
|
void |
setCtCollectionId(long ctCollectionId)
Sets the ct collection ID of this ddm content.
|
void |
setData(java.lang.String data)
Sets the data of this ddm content.
|
void |
setDescription(java.lang.String description)
Sets the description of this ddm content.
|
void |
setGroupId(long groupId)
Sets the group ID of this ddm content.
|
void |
setModelAttributes(java.util.Map<java.lang.String,java.lang.Object> attributes) |
void |
setModifiedDate(java.util.Date modifiedDate)
Sets the modified date of this ddm content.
|
void |
setMvccVersion(long mvccVersion)
Sets the mvcc version of this ddm content.
|
void |
setName(java.lang.String name)
Sets the name of this ddm content.
|
void |
setName(java.lang.String name,
java.util.Locale locale)
Sets the localized name of this ddm content in the language.
|
void |
setName(java.lang.String name,
java.util.Locale locale,
java.util.Locale defaultLocale)
Sets the localized name of this ddm content in the language, and sets the default locale.
|
void |
setNameCurrentLanguageId(java.lang.String languageId) |
void |
setNameMap(java.util.Map<java.util.Locale,java.lang.String> nameMap)
Sets the localized names of this ddm content from the map of locales and localized names.
|
void |
setNameMap(java.util.Map<java.util.Locale,java.lang.String> nameMap,
java.util.Locale defaultLocale)
Sets the localized names of this ddm content from the map of locales and localized names, and sets the default locale.
|
void |
setPrimaryKey(long primaryKey)
Sets the primary key of this ddm content.
|
void |
setUserId(long userId)
Sets the user ID of this ddm content.
|
void |
setUserName(java.lang.String userName)
Sets the user name of this ddm content.
|
void |
setUserUuid(java.lang.String userUuid)
Sets the user uuid of this ddm content.
|
void |
setUuid(java.lang.String uuid)
Sets the uuid of this ddm content.
|
protected DDMContentWrapper |
wrap(DDMContent ddmContent) |
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, toXmlStringfinalize, getClass, notify, notifyAll, wait, wait, waitclone, getExpandoBridge, getPrimaryKeyObj, isCachedModel, isEntityCacheEnabled, isEscapedModel, isFinderCacheEnabled, isNew, resetOriginalValues, setCachedModel, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setNew, setPrimaryKeyObj, toCacheModel, toEscapedModel, toUnescapedModel, toXmlStringclonegetModelClass, getModelClassNamegetWrappedModelpublic DDMContentWrapper(DDMContent ddmContent)
public java.util.Map<java.lang.String,java.lang.Object> getModelAttributes()
getModelAttributes in interface BaseModel<DDMContent>public void setModelAttributes(java.util.Map<java.lang.String,java.lang.Object> attributes)
setModelAttributes in interface BaseModel<DDMContent>public java.lang.String[] getAvailableLanguageIds()
getAvailableLanguageIds in interface DDMContentModelgetAvailableLanguageIds in interface LocalizedModelpublic long getCompanyId()
getCompanyId in interface DDMContentModelgetCompanyId in interface AuditedModelgetCompanyId in interface ShardedModelgetCompanyId in interface StagedModelpublic long getContentId()
getContentId in interface DDMContentModelpublic java.util.Date getCreateDate()
getCreateDate in interface DDMContentModelgetCreateDate in interface AuditedModelgetCreateDate in interface StagedModelpublic long getCtCollectionId()
getCtCollectionId in interface DDMContentModelgetCtCollectionId in interface CTModel<DDMContent>public java.lang.String getData()
getData in interface DDMContentModelpublic java.lang.String getDefaultLanguageId()
getDefaultLanguageId in interface DDMContentModelgetDefaultLanguageId in interface LocalizedModelpublic java.lang.String getDescription()
getDescription in interface DDMContentModelpublic long getGroupId()
getGroupId in interface DDMContentModelgetGroupId in interface GroupedModelpublic java.util.Date getModifiedDate()
getModifiedDate in interface DDMContentModelgetModifiedDate in interface AuditedModelgetModifiedDate in interface StagedModelpublic long getMvccVersion()
getMvccVersion in interface DDMContentModelgetMvccVersion in interface MVCCModelpublic java.lang.String getName()
getName in interface DDMContentModelpublic java.lang.String getName(java.util.Locale locale)
getName in interface DDMContentModellocale - the locale of the languagepublic java.lang.String getName(java.util.Locale locale,
boolean useDefault)
getName in interface DDMContentModellocale - 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 java.lang.String getName(java.lang.String languageId)
getName in interface DDMContentModellanguageId - the ID of the languagepublic java.lang.String getName(java.lang.String languageId,
boolean useDefault)
getName in interface DDMContentModellanguageId - the ID of the languageuseDefault - whether to use the default language if no localization exists for the requested languagepublic java.lang.String getNameCurrentLanguageId()
getNameCurrentLanguageId in interface DDMContentModelpublic java.lang.String getNameCurrentValue()
getNameCurrentValue in interface DDMContentModelpublic java.util.Map<java.util.Locale,java.lang.String> getNameMap()
getNameMap in interface DDMContentModelpublic long getPrimaryKey()
getPrimaryKey in interface DDMContentModelgetPrimaryKey in interface CTModel<DDMContent>public long getUserId()
getUserId in interface DDMContentModelgetUserId in interface AuditedModelpublic java.lang.String getUserName()
getUserName in interface DDMContentModelgetUserName in interface AuditedModelpublic java.lang.String getUserUuid()
getUserUuid in interface DDMContentModelgetUserUuid in interface AuditedModelpublic java.lang.String getUuid()
getUuid in interface DDMContentModelgetUuid in interface StagedModelpublic void persist()
PersistedModelpersist in interface PersistedModelpublic void prepareLocalizedFieldsForImport()
throws LocaleException
prepareLocalizedFieldsForImport in interface DDMContentModelprepareLocalizedFieldsForImport in interface LocalizedModelLocaleExceptionpublic void prepareLocalizedFieldsForImport(java.util.Locale defaultImportLocale)
throws LocaleException
prepareLocalizedFieldsForImport in interface DDMContentModelprepareLocalizedFieldsForImport in interface LocalizedModelLocaleExceptionpublic void setCompanyId(long companyId)
setCompanyId in interface DDMContentModelsetCompanyId in interface AuditedModelsetCompanyId in interface ShardedModelsetCompanyId in interface StagedModelcompanyId - the company ID of this ddm contentpublic void setContentId(long contentId)
setContentId in interface DDMContentModelcontentId - the content ID of this ddm contentpublic void setCreateDate(java.util.Date createDate)
setCreateDate in interface DDMContentModelsetCreateDate in interface AuditedModelsetCreateDate in interface StagedModelcreateDate - the create date of this ddm contentpublic void setCtCollectionId(long ctCollectionId)
setCtCollectionId in interface DDMContentModelsetCtCollectionId in interface CTModel<DDMContent>ctCollectionId - the ct collection ID of this ddm contentpublic void setData(java.lang.String data)
setData in interface DDMContentModeldata - the data of this ddm contentpublic void setDescription(java.lang.String description)
setDescription in interface DDMContentModeldescription - the description of this ddm contentpublic void setGroupId(long groupId)
setGroupId in interface DDMContentModelsetGroupId in interface GroupedModelgroupId - the group ID of this ddm contentpublic void setModifiedDate(java.util.Date modifiedDate)
setModifiedDate in interface DDMContentModelsetModifiedDate in interface AuditedModelsetModifiedDate in interface StagedModelmodifiedDate - the modified date of this ddm contentpublic void setMvccVersion(long mvccVersion)
setMvccVersion in interface DDMContentModelsetMvccVersion in interface MVCCModelmvccVersion - the mvcc version of this ddm contentpublic void setName(java.lang.String name)
setName in interface DDMContentModelname - the name of this ddm contentpublic void setName(java.lang.String name,
java.util.Locale locale)
setName in interface DDMContentModelname - the localized name of this ddm contentlocale - the locale of the languagepublic void setName(java.lang.String name,
java.util.Locale locale,
java.util.Locale defaultLocale)
setName in interface DDMContentModelname - the localized name of this ddm contentlocale - the locale of the languagedefaultLocale - the default localepublic void setNameCurrentLanguageId(java.lang.String languageId)
setNameCurrentLanguageId in interface DDMContentModelpublic void setNameMap(java.util.Map<java.util.Locale,java.lang.String> nameMap)
setNameMap in interface DDMContentModelnameMap - the locales and localized names of this ddm contentpublic void setNameMap(java.util.Map<java.util.Locale,java.lang.String> nameMap,
java.util.Locale defaultLocale)
setNameMap in interface DDMContentModelnameMap - the locales and localized names of this ddm contentdefaultLocale - the default localepublic void setPrimaryKey(long primaryKey)
setPrimaryKey in interface DDMContentModelsetPrimaryKey in interface CTModel<DDMContent>primaryKey - the primary key of this ddm contentpublic void setUserId(long userId)
setUserId in interface DDMContentModelsetUserId in interface AuditedModeluserId - the user ID of this ddm contentpublic void setUserName(java.lang.String userName)
setUserName in interface DDMContentModelsetUserName in interface AuditedModeluserName - the user name of this ddm contentpublic void setUserUuid(java.lang.String userUuid)
setUserUuid in interface DDMContentModelsetUserUuid in interface AuditedModeluserUuid - the user uuid of this ddm contentpublic void setUuid(java.lang.String uuid)
setUuid in interface DDMContentModelsetUuid in interface StagedModeluuid - the uuid of this ddm contentpublic java.util.Map<java.lang.String,java.util.function.Function<DDMContent,java.lang.Object>> getAttributeGetterFunctions()
getAttributeGetterFunctions in interface BaseModel<DDMContent>public java.util.Map<java.lang.String,java.util.function.BiConsumer<DDMContent,java.lang.Object>> getAttributeSetterBiConsumers()
getAttributeSetterBiConsumers in interface BaseModel<DDMContent>public StagedModelType getStagedModelType()
getStagedModelType in interface StagedModelprotected DDMContentWrapper wrap(DDMContent ddmContent)
wrap in class BaseModelWrapper<DDMContent>