@ProviderType public class DDMContentWrapper extends java.lang.Object implements DDMContent, ModelWrapper<DDMContent>
This class is a wrapper for DDMContent.
DDMContent,
Serialized Form| Constructor and Description |
|---|
DDMContentWrapper(DDMContent ddmContent) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone()
Creates a shallow clone of this model instance.
|
int |
compareTo(DDMContent ddmContent) |
boolean |
equals(java.lang.Object obj) |
java.lang.String[] |
getAvailableLanguageIds() |
long |
getCompanyId()
Returns the company ID of this d d m content.
|
long |
getContentId()
Returns the content ID of this d d m content.
|
java.util.Date |
getCreateDate()
Returns the create date of this d d m content.
|
java.lang.String |
getDefaultLanguageId() |
java.lang.String |
getDescription()
Returns the description of this d d m content.
|
ExpandoBridge |
getExpandoBridge()
Returns the expando bridge for this model instance.
|
long |
getGroupId()
Returns the group ID of this d d m content.
|
java.util.Map<java.lang.String,java.lang.Object> |
getModelAttributes() |
java.lang.Class<?> |
getModelClass() |
java.lang.String |
getModelClassName() |
java.util.Date |
getModifiedDate()
Returns the modified date of this d d m content.
|
java.lang.String |
getName()
Returns the name of this d d m content.
|
java.lang.String |
getName(java.util.Locale locale)
Returns the localized name of this d d m content in the language.
|
java.lang.String |
getName(java.util.Locale locale,
boolean useDefault)
Returns the localized name of this d d m 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 d d m content in the language.
|
java.lang.String |
getName(java.lang.String languageId,
boolean useDefault)
Returns the localized name of this d d m 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 d d m content.
|
long |
getPrimaryKey()
Returns the primary key of this d d m content.
|
java.io.Serializable |
getPrimaryKeyObj()
Returns the primary key of this model instance.
|
StagedModelType |
getStagedModelType() |
long |
getUserId()
Returns the user ID of this d d m content.
|
java.lang.String |
getUserName()
Returns the user name of this d d m content.
|
java.lang.String |
getUserUuid()
Returns the user uuid of this d d m content.
|
java.lang.String |
getUuid()
Returns the uuid of this d d m content.
|
DDMContent |
getWrappedDDMContent()
Deprecated.
As of 6.1.0, replaced by
getWrappedModel() |
DDMContent |
getWrappedModel() |
java.lang.String |
getXml()
Returns the xml of this d d m content.
|
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 |
isNew()
Returns
true if this model instance does not yet exist in
the database. |
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 |
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 d d m content.
|
void |
setContentId(long contentId)
Sets the content ID of this d d m content.
|
void |
setCreateDate(java.util.Date createDate)
Sets the create date of this d d m content.
|
void |
setDescription(java.lang.String description)
Sets the description of this d d m content.
|
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 d d m 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 d d m content.
|
void |
setName(java.lang.String name)
Sets the name of this d d m content.
|
void |
setName(java.lang.String name,
java.util.Locale locale)
Sets the localized name of this d d m content in the language.
|
void |
setName(java.lang.String name,
java.util.Locale locale,
java.util.Locale defaultLocale)
Sets the localized name of this d d m 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 d d m 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 d d m content from the map of locales and localized names, and sets the default locale.
|
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 d d m content.
|
void |
setPrimaryKeyObj(java.io.Serializable primaryKeyObj)
Sets the primary key of this model instance.
|
void |
setUserId(long userId)
Sets the user ID of this d d m content.
|
void |
setUserName(java.lang.String userName)
Sets the user name of this d d m content.
|
void |
setUserUuid(java.lang.String userUuid)
Sets the user uuid of this d d m content.
|
void |
setUuid(java.lang.String uuid)
Sets the uuid of this d d m content.
|
void |
setXml(java.lang.String xml)
Sets the xml of this d d m content.
|
CacheModel<DDMContent> |
toCacheModel()
Returns a cache model object for this entity used by entity cache.
|
DDMContent |
toEscapedModel()
Returns a copy of this entity as an escaped model instance by wrapping it
with an
AutoEscapeBeanHandler. |
java.lang.String |
toString() |
DDMContent |
toUnescapedModel() |
java.lang.String |
toXmlString()
Returns the XML representation of this model instance.
|
public DDMContentWrapper(DDMContent ddmContent)
public java.lang.Class<?> getModelClass()
getModelClass in interface ClassedModelpublic java.lang.String getModelClassName()
getModelClassName in interface ClassedModelpublic 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 long getPrimaryKey()
getPrimaryKey in interface DDMContentModelpublic void setPrimaryKey(long primaryKey)
setPrimaryKey in interface DDMContentModelprimaryKey - the primary key of this d d m contentpublic java.lang.String getUuid()
getUuid in interface StagedModelgetUuid in interface DDMContentModelpublic void setUuid(java.lang.String uuid)
setUuid in interface StagedModelsetUuid in interface DDMContentModeluuid - the uuid of this d d m contentpublic long getContentId()
getContentId in interface DDMContentModelpublic void setContentId(long contentId)
setContentId in interface DDMContentModelcontentId - the content ID of this d d m contentpublic long getGroupId()
getGroupId in interface GroupedModelgetGroupId in interface DDMContentModelpublic void setGroupId(long groupId)
setGroupId in interface GroupedModelsetGroupId in interface DDMContentModelgroupId - the group ID of this d d m contentpublic long getCompanyId()
getCompanyId in interface AuditedModelgetCompanyId in interface StagedModelgetCompanyId in interface DDMContentModelpublic void setCompanyId(long companyId)
setCompanyId in interface AuditedModelsetCompanyId in interface StagedModelsetCompanyId in interface DDMContentModelcompanyId - the company ID of this d d m contentpublic long getUserId()
getUserId in interface AuditedModelgetUserId in interface DDMContentModelpublic void setUserId(long userId)
setUserId in interface AuditedModelsetUserId in interface DDMContentModeluserId - the user ID of this d d m contentpublic java.lang.String getUserUuid()
throws SystemException
getUserUuid in interface AuditedModelgetUserUuid in interface DDMContentModelSystemException - if a system exception occurredpublic void setUserUuid(java.lang.String userUuid)
setUserUuid in interface AuditedModelsetUserUuid in interface DDMContentModeluserUuid - the user uuid of this d d m contentpublic java.lang.String getUserName()
getUserName in interface AuditedModelgetUserName in interface DDMContentModelpublic void setUserName(java.lang.String userName)
setUserName in interface AuditedModelsetUserName in interface DDMContentModeluserName - the user name of this d d m contentpublic java.util.Date getCreateDate()
getCreateDate in interface AuditedModelgetCreateDate in interface StagedModelgetCreateDate in interface DDMContentModelpublic void setCreateDate(java.util.Date createDate)
setCreateDate in interface AuditedModelsetCreateDate in interface StagedModelsetCreateDate in interface DDMContentModelcreateDate - the create date of this d d m contentpublic java.util.Date getModifiedDate()
getModifiedDate in interface AuditedModelgetModifiedDate in interface StagedModelgetModifiedDate in interface DDMContentModelpublic void setModifiedDate(java.util.Date modifiedDate)
setModifiedDate in interface AuditedModelsetModifiedDate in interface StagedModelsetModifiedDate in interface DDMContentModelmodifiedDate - the modified date of this d d m contentpublic 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 void setName(java.lang.String name)
setName in interface DDMContentModelname - the name of this d d m contentpublic void setName(java.lang.String name,
java.util.Locale locale)
setName in interface DDMContentModelname - the localized name of this d d m 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 d d m 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 d d m 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 d d m contentdefaultLocale - the default localepublic java.lang.String getDescription()
getDescription in interface DDMContentModelpublic void setDescription(java.lang.String description)
setDescription in interface DDMContentModeldescription - the description of this d d m contentpublic java.lang.String getXml()
getXml in interface DDMContentModelpublic void setXml(java.lang.String xml)
setXml in interface DDMContentModelxml - the xml of this d d m contentpublic boolean isNew()
BaseModeltrue if this model instance does not yet exist in
the database.isNew in interface BaseModel<DDMContent>isNew in interface DDMContentModeltrue if this model instance does not yet exist in
the database; false otherwisepublic void setNew(boolean n)
BaseModelsetNew in interface BaseModel<DDMContent>setNew in interface DDMContentModeln - whether this model instance does not yet exist in the databasepublic boolean isCachedModel()
BaseModeltrue if this model instance was retrieved from the
entity cache.isCachedModel in interface BaseModel<DDMContent>isCachedModel in interface DDMContentModeltrue if this model instance was retrieved from the
entity cache; false otherwiseBaseModel.setCachedModel(boolean)public void setCachedModel(boolean cachedModel)
BaseModelsetCachedModel in interface BaseModel<DDMContent>setCachedModel in interface DDMContentModelcachedModel - whether this model instance was retrieved from the
entity cacheEntityCachepublic boolean isEscapedModel()
BaseModeltrue if this model instance is escaped.isEscapedModel in interface BaseModel<DDMContent>isEscapedModel in interface DDMContentModeltrue if this model instance is escaped;
false otherwisepublic java.io.Serializable getPrimaryKeyObj()
BaseModelgetPrimaryKeyObj in interface BaseModel<DDMContent>getPrimaryKeyObj in interface ClassedModelgetPrimaryKeyObj in interface DDMContentModelpublic void setPrimaryKeyObj(java.io.Serializable primaryKeyObj)
BaseModelsetPrimaryKeyObj in interface BaseModel<DDMContent>setPrimaryKeyObj in interface ClassedModelsetPrimaryKeyObj in interface DDMContentModelprimaryKeyObj - the primary key of this model instancepublic ExpandoBridge getExpandoBridge()
BaseModelgetExpandoBridge in interface BaseModel<DDMContent>getExpandoBridge in interface ClassedModelgetExpandoBridge in interface DDMContentModelpublic void setExpandoBridgeAttributes(BaseModel<?> baseModel)
setExpandoBridgeAttributes in interface BaseModel<DDMContent>setExpandoBridgeAttributes in interface DDMContentModelpublic void setExpandoBridgeAttributes(ExpandoBridge expandoBridge)
setExpandoBridgeAttributes in interface BaseModel<DDMContent>setExpandoBridgeAttributes in interface DDMContentModelpublic void setExpandoBridgeAttributes(ServiceContext serviceContext)
BaseModelsetExpandoBridgeAttributes in interface BaseModel<DDMContent>setExpandoBridgeAttributes in interface DDMContentModelserviceContext - the service context to be appliedServiceContext.getExpandoBridgeAttributes(
)public java.lang.String[] getAvailableLanguageIds()
getAvailableLanguageIds in interface DDMContentModelpublic java.lang.String getDefaultLanguageId()
getDefaultLanguageId in interface DDMContentModelpublic void prepareLocalizedFieldsForImport()
throws LocaleException
prepareLocalizedFieldsForImport in interface DDMContentModelLocaleExceptionpublic void prepareLocalizedFieldsForImport(java.util.Locale defaultImportLocale)
throws LocaleException
prepareLocalizedFieldsForImport in interface DDMContentModelLocaleExceptionpublic java.lang.Object clone()
BaseModelclone in interface BaseModel<DDMContent>clone in interface StagedModelclone in interface DDMContentModelclone in class java.lang.Objectpublic int compareTo(DDMContent ddmContent)
compareTo in interface DDMContentModelcompareTo in interface java.lang.Comparable<DDMContent>public int hashCode()
hashCode in interface DDMContentModelhashCode in class java.lang.Objectpublic CacheModel<DDMContent> toCacheModel()
BaseModeltoCacheModel in interface BaseModel<DDMContent>toCacheModel in interface DDMContentModelpublic DDMContent toEscapedModel()
BaseModelAutoEscapeBeanHandler.toEscapedModel in interface BaseModel<DDMContent>toEscapedModel in interface DDMContentModelAutoEscapeBeanHandlerpublic DDMContent toUnescapedModel()
toUnescapedModel in interface BaseModel<DDMContent>toUnescapedModel in interface DDMContentModelpublic java.lang.String toString()
toString in interface DDMContentModeltoString in class java.lang.Objectpublic java.lang.String toXmlString()
BaseModeltoXmlString in interface BaseModel<DDMContent>toXmlString in interface DDMContentModelpublic void persist()
throws SystemException
PersistedModelpersist in interface PersistedModelSystemException - if a system exception occurredpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic StagedModelType getStagedModelType()
getStagedModelType in interface StagedModelpublic DDMContent getWrappedDDMContent()
getWrappedModel()public DDMContent getWrappedModel()
getWrappedModel in interface ModelWrapper<DDMContent>public void resetOriginalValues()
BaseModelresetOriginalValues in interface BaseModel<DDMContent>