@JSON(strict=true) @ProviderType public class DDMTemplateModelImpl extends com.liferay.portal.kernel.model.impl.BaseModelImpl<DDMTemplate> implements DDMTemplateModel
This implementation and its corresponding interface DDMTemplateModel
exist only as a container for the default property accessors generated by ServiceBuilder. Helper methods and all application logic should be put in DDMTemplateImpl
.
DDMTemplateImpl
,
DDMTemplate
,
DDMTemplateModel
,
Serialized FormModifier and Type | Field and Description |
---|---|
static long |
CLASSNAMEID_COLUMN_BITMASK |
static long |
CLASSPK_COLUMN_BITMASK |
static boolean |
COLUMN_BITMASK_ENABLED |
static long |
COMPANYID_COLUMN_BITMASK |
static java.lang.String |
DATA_SOURCE |
static boolean |
ENTITY_CACHE_ENABLED |
static boolean |
FINDER_CACHE_ENABLED |
static long |
GROUPID_COLUMN_BITMASK |
static long |
LANGUAGE_COLUMN_BITMASK |
static long |
LOCK_EXPIRATION_TIME |
static long |
MODE_COLUMN_BITMASK |
static java.lang.String |
ORDER_BY_JPQL |
static java.lang.String |
ORDER_BY_SQL |
static java.lang.String |
SESSION_FACTORY |
static long |
SMALLIMAGEID_COLUMN_BITMASK |
static java.lang.Object[][] |
TABLE_COLUMNS |
static java.util.Map<java.lang.String,java.lang.Integer> |
TABLE_COLUMNS_MAP |
static java.lang.String |
TABLE_NAME |
static java.lang.String |
TABLE_SQL_CREATE |
static java.lang.String |
TABLE_SQL_DROP |
static long |
TEMPLATEID_COLUMN_BITMASK |
static long |
TEMPLATEKEY_COLUMN_BITMASK |
static java.lang.String |
TX_MANAGER |
static long |
TYPE_COLUMN_BITMASK |
static long |
UUID_COLUMN_BITMASK |
Constructor and Description |
---|
DDMTemplateModelImpl() |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone() |
int |
compareTo(DDMTemplate ddmTemplate) |
boolean |
equals(java.lang.Object obj) |
java.lang.String[] |
getAvailableLanguageIds() |
boolean |
getCacheable()
Returns the cacheable of this ddm template.
|
java.lang.String |
getClassName()
Returns the fully qualified class name of this ddm template.
|
long |
getClassNameId()
Returns the class name ID of this ddm template.
|
long |
getClassPK()
Returns the class pk of this ddm template.
|
long |
getColumnBitmask() |
long |
getCompanyId()
Returns the company ID of this ddm template.
|
java.util.Date |
getCreateDate()
Returns the create date of this ddm template.
|
java.lang.String |
getDefaultLanguageId() |
java.lang.String |
getDescription()
Returns the description of this ddm template.
|
java.lang.String |
getDescription(java.util.Locale locale)
Returns the localized description of this ddm template in the language.
|
java.lang.String |
getDescription(java.util.Locale locale,
boolean useDefault)
Returns the localized description of this ddm template in the language, optionally using the default language if no localization exists for the requested language.
|
java.lang.String |
getDescription(java.lang.String languageId)
Returns the localized description of this ddm template in the language.
|
java.lang.String |
getDescription(java.lang.String languageId,
boolean useDefault)
Returns the localized description of this ddm template in the language, optionally using the default language if no localization exists for the requested language.
|
java.lang.String |
getDescriptionCurrentLanguageId() |
java.lang.String |
getDescriptionCurrentValue() |
java.util.Map<java.util.Locale,java.lang.String> |
getDescriptionMap()
Returns a map of the locales and localized descriptions of this ddm template.
|
com.liferay.expando.kernel.model.ExpandoBridge |
getExpandoBridge() |
long |
getGroupId()
Returns the group ID of this ddm template.
|
java.lang.String |
getLanguage()
Returns the language of this ddm template.
|
java.util.Date |
getLastPublishDate()
Returns the last publish date of this ddm template.
|
java.lang.String |
getMode()
Returns the mode of this ddm template.
|
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 ddm template.
|
java.lang.String |
getName()
Returns the name of this ddm template.
|
java.lang.String |
getName(java.util.Locale locale)
Returns the localized name of this ddm template in the language.
|
java.lang.String |
getName(java.util.Locale locale,
boolean useDefault)
Returns the localized name of this ddm template 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 template in the language.
|
java.lang.String |
getName(java.lang.String languageId,
boolean useDefault)
Returns the localized name of this ddm template 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 template.
|
long |
getOriginalClassNameId() |
long |
getOriginalClassPK() |
long |
getOriginalCompanyId() |
long |
getOriginalGroupId() |
java.lang.String |
getOriginalLanguage() |
java.lang.String |
getOriginalMode() |
long |
getOriginalSmallImageId() |
java.lang.String |
getOriginalTemplateKey() |
java.lang.String |
getOriginalType() |
java.lang.String |
getOriginalUuid() |
long |
getPrimaryKey()
Returns the primary key of this ddm template.
|
java.io.Serializable |
getPrimaryKeyObj() |
long |
getResourceClassNameId()
Returns the resource class name ID of this ddm template.
|
java.lang.String |
getScript()
Returns the script of this ddm template.
|
boolean |
getSmallImage()
Returns the small image of this ddm template.
|
long |
getSmallImageId()
Returns the small image ID of this ddm template.
|
java.lang.String |
getSmallImageURL()
Returns the small image url of this ddm template.
|
com.liferay.exportimport.kernel.lar.StagedModelType |
getStagedModelType() |
long |
getTemplateId()
Returns the template ID of this ddm template.
|
java.lang.String |
getTemplateKey()
Returns the template key of this ddm template.
|
java.lang.String |
getType()
Returns the type of this ddm template.
|
long |
getUserId()
Returns the user ID of this ddm template.
|
java.lang.String |
getUserName()
Returns the user name of this ddm template.
|
java.lang.String |
getUserUuid()
Returns the user uuid of this ddm template.
|
java.lang.String |
getUuid()
Returns the uuid of this ddm template.
|
java.lang.String |
getVersion()
Returns the version of this ddm template.
|
long |
getVersionUserId()
Returns the version user ID of this ddm template.
|
java.lang.String |
getVersionUserName()
Returns the version user name of this ddm template.
|
java.lang.String |
getVersionUserUuid()
Returns the version user uuid of this ddm template.
|
int |
hashCode() |
boolean |
hasSetModifiedDate() |
boolean |
isCacheable()
Returns
true if this ddm template is cacheable. |
boolean |
isEntityCacheEnabled() |
boolean |
isFinderCacheEnabled() |
boolean |
isSmallImage()
Returns
true if this ddm template is small image. |
void |
prepareLocalizedFieldsForImport() |
void |
prepareLocalizedFieldsForImport(java.util.Locale defaultImportLocale) |
void |
resetOriginalValues() |
void |
setCacheable(boolean cacheable)
Sets whether this ddm template is cacheable.
|
void |
setClassName(java.lang.String className) |
void |
setClassNameId(long classNameId)
Sets the class name ID of this ddm template.
|
void |
setClassPK(long classPK)
Sets the class pk of this ddm template.
|
void |
setCompanyId(long companyId)
Sets the company ID of this ddm template.
|
void |
setCreateDate(java.util.Date createDate)
Sets the create date of this ddm template.
|
void |
setDescription(java.lang.String description)
Sets the description of this ddm template.
|
void |
setDescription(java.lang.String description,
java.util.Locale locale)
Sets the localized description of this ddm template in the language.
|
void |
setDescription(java.lang.String description,
java.util.Locale locale,
java.util.Locale defaultLocale)
Sets the localized description of this ddm template in the language, and sets the default locale.
|
void |
setDescriptionCurrentLanguageId(java.lang.String languageId) |
void |
setDescriptionMap(java.util.Map<java.util.Locale,java.lang.String> descriptionMap)
Sets the localized descriptions of this ddm template from the map of locales and localized descriptions.
|
void |
setDescriptionMap(java.util.Map<java.util.Locale,java.lang.String> descriptionMap,
java.util.Locale defaultLocale)
Sets the localized descriptions of this ddm template from the map of locales and localized descriptions, and sets the default locale.
|
void |
setExpandoBridgeAttributes(com.liferay.portal.kernel.service.ServiceContext serviceContext) |
void |
setGroupId(long groupId)
Sets the group ID of this ddm template.
|
void |
setLanguage(java.lang.String language)
Sets the language of this ddm template.
|
void |
setLastPublishDate(java.util.Date lastPublishDate)
Sets the last publish date of this ddm template.
|
void |
setMode(java.lang.String mode)
Sets the mode of this ddm template.
|
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 template.
|
void |
setName(java.lang.String name)
Sets the name of this ddm template.
|
void |
setName(java.lang.String name,
java.util.Locale locale)
Sets the localized name of this ddm template in the language.
|
void |
setName(java.lang.String name,
java.util.Locale locale,
java.util.Locale defaultLocale)
Sets the localized name of this ddm template 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 template 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 template from the map of locales and localized names, and sets the default locale.
|
void |
setPrimaryKey(long primaryKey)
Sets the primary key of this ddm template.
|
void |
setPrimaryKeyObj(java.io.Serializable primaryKeyObj) |
void |
setResourceClassNameId(long resourceClassNameId)
Sets the resource class name ID of this ddm template.
|
void |
setScript(java.lang.String script)
Sets the script of this ddm template.
|
void |
setSmallImage(boolean smallImage)
Sets whether this ddm template is small image.
|
void |
setSmallImageId(long smallImageId)
Sets the small image ID of this ddm template.
|
void |
setSmallImageURL(java.lang.String smallImageURL)
Sets the small image url of this ddm template.
|
void |
setTemplateId(long templateId)
Sets the template ID of this ddm template.
|
void |
setTemplateKey(java.lang.String templateKey)
Sets the template key of this ddm template.
|
void |
setType(java.lang.String type)
Sets the type of this ddm template.
|
void |
setUserId(long userId)
Sets the user ID of this ddm template.
|
void |
setUserName(java.lang.String userName)
Sets the user name of this ddm template.
|
void |
setUserUuid(java.lang.String userUuid)
Sets the user uuid of this ddm template.
|
void |
setUuid(java.lang.String uuid)
Sets the uuid of this ddm template.
|
void |
setVersion(java.lang.String version)
Sets the version of this ddm template.
|
void |
setVersionUserId(long versionUserId)
Sets the version user ID of this ddm template.
|
void |
setVersionUserName(java.lang.String versionUserName)
Sets the version user name of this ddm template.
|
void |
setVersionUserUuid(java.lang.String versionUserUuid)
Sets the version user uuid of this ddm template.
|
com.liferay.portal.kernel.model.CacheModel<DDMTemplate> |
toCacheModel() |
DDMTemplate |
toEscapedModel() |
static DDMTemplate |
toModel(DDMTemplateSoap soapModel)
Converts the soap model instance into a normal model instance.
|
static java.util.List<DDMTemplate> |
toModels(DDMTemplateSoap[] soapModels)
Converts the soap model instances into normal model instances.
|
java.lang.String |
toString() |
java.lang.String |
toXmlString() |
getLocale, isCachedModel, isEscapedModel, isNew, setCachedModel, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setNew, toUnescapedModel
finalize, getClass, notify, notifyAll, wait, wait, wait
isCachedModel, isEscapedModel, isNew, setCachedModel, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setNew, toUnescapedModel
public static final java.lang.String TABLE_NAME
public static final java.lang.Object[][] TABLE_COLUMNS
public static final java.util.Map<java.lang.String,java.lang.Integer> TABLE_COLUMNS_MAP
public static final java.lang.String TABLE_SQL_CREATE
public static final java.lang.String TABLE_SQL_DROP
public static final java.lang.String ORDER_BY_JPQL
public static final java.lang.String ORDER_BY_SQL
public static final java.lang.String DATA_SOURCE
public static final java.lang.String SESSION_FACTORY
public static final java.lang.String TX_MANAGER
public static final boolean ENTITY_CACHE_ENABLED
public static final boolean FINDER_CACHE_ENABLED
public static final boolean COLUMN_BITMASK_ENABLED
public static final long CLASSNAMEID_COLUMN_BITMASK
public static final long CLASSPK_COLUMN_BITMASK
public static final long COMPANYID_COLUMN_BITMASK
public static final long GROUPID_COLUMN_BITMASK
public static final long LANGUAGE_COLUMN_BITMASK
public static final long MODE_COLUMN_BITMASK
public static final long SMALLIMAGEID_COLUMN_BITMASK
public static final long TEMPLATEKEY_COLUMN_BITMASK
public static final long TYPE_COLUMN_BITMASK
public static final long UUID_COLUMN_BITMASK
public static final long TEMPLATEID_COLUMN_BITMASK
public static final long LOCK_EXPIRATION_TIME
public static DDMTemplate toModel(DDMTemplateSoap soapModel)
soapModel
- the soap model instance to convertpublic static java.util.List<DDMTemplate> toModels(DDMTemplateSoap[] soapModels)
soapModels
- the soap model instances to convertpublic long getPrimaryKey()
DDMTemplateModel
getPrimaryKey
in interface DDMTemplateModel
public void setPrimaryKey(long primaryKey)
DDMTemplateModel
setPrimaryKey
in interface DDMTemplateModel
primaryKey
- the primary key of this ddm templatepublic java.io.Serializable getPrimaryKeyObj()
getPrimaryKeyObj
in interface DDMTemplateModel
getPrimaryKeyObj
in interface com.liferay.portal.kernel.model.BaseModel<DDMTemplate>
getPrimaryKeyObj
in interface com.liferay.portal.kernel.model.ClassedModel
public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj)
setPrimaryKeyObj
in interface DDMTemplateModel
setPrimaryKeyObj
in interface com.liferay.portal.kernel.model.BaseModel<DDMTemplate>
setPrimaryKeyObj
in interface com.liferay.portal.kernel.model.ClassedModel
public java.lang.Class<?> getModelClass()
getModelClass
in interface com.liferay.portal.kernel.model.ClassedModel
public java.lang.String getModelClassName()
getModelClassName
in interface com.liferay.portal.kernel.model.ClassedModel
public java.util.Map<java.lang.String,java.lang.Object> getModelAttributes()
getModelAttributes
in interface com.liferay.portal.kernel.model.BaseModel<DDMTemplate>
getModelAttributes
in class com.liferay.portal.kernel.model.impl.BaseModelImpl<DDMTemplate>
public void setModelAttributes(java.util.Map<java.lang.String,java.lang.Object> attributes)
setModelAttributes
in interface com.liferay.portal.kernel.model.BaseModel<DDMTemplate>
setModelAttributes
in class com.liferay.portal.kernel.model.impl.BaseModelImpl<DDMTemplate>
@JSON public java.lang.String getUuid()
DDMTemplateModel
getUuid
in interface DDMTemplateModel
getUuid
in interface com.liferay.portal.kernel.model.StagedModel
public void setUuid(java.lang.String uuid)
DDMTemplateModel
setUuid
in interface DDMTemplateModel
setUuid
in interface com.liferay.portal.kernel.model.StagedModel
uuid
- the uuid of this ddm templatepublic java.lang.String getOriginalUuid()
@JSON public long getTemplateId()
DDMTemplateModel
getTemplateId
in interface DDMTemplateModel
public void setTemplateId(long templateId)
DDMTemplateModel
setTemplateId
in interface DDMTemplateModel
templateId
- the template ID of this ddm template@JSON public long getGroupId()
DDMTemplateModel
getGroupId
in interface DDMTemplateModel
getGroupId
in interface com.liferay.portal.kernel.model.GroupedModel
public void setGroupId(long groupId)
DDMTemplateModel
setGroupId
in interface DDMTemplateModel
setGroupId
in interface com.liferay.portal.kernel.model.GroupedModel
groupId
- the group ID of this ddm templatepublic long getOriginalGroupId()
@JSON public long getCompanyId()
DDMTemplateModel
getCompanyId
in interface DDMTemplateModel
getCompanyId
in interface com.liferay.portal.kernel.model.AuditedModel
getCompanyId
in interface com.liferay.portal.kernel.model.ShardedModel
getCompanyId
in interface com.liferay.portal.kernel.model.StagedModel
public void setCompanyId(long companyId)
DDMTemplateModel
setCompanyId
in interface DDMTemplateModel
setCompanyId
in interface com.liferay.portal.kernel.model.AuditedModel
setCompanyId
in interface com.liferay.portal.kernel.model.ShardedModel
setCompanyId
in interface com.liferay.portal.kernel.model.StagedModel
companyId
- the company ID of this ddm templatepublic long getOriginalCompanyId()
@JSON public long getUserId()
DDMTemplateModel
getUserId
in interface DDMTemplateModel
getUserId
in interface com.liferay.portal.kernel.model.AuditedModel
public void setUserId(long userId)
DDMTemplateModel
setUserId
in interface DDMTemplateModel
setUserId
in interface com.liferay.portal.kernel.model.AuditedModel
userId
- the user ID of this ddm templatepublic java.lang.String getUserUuid()
DDMTemplateModel
getUserUuid
in interface DDMTemplateModel
getUserUuid
in interface com.liferay.portal.kernel.model.AuditedModel
public void setUserUuid(java.lang.String userUuid)
DDMTemplateModel
setUserUuid
in interface DDMTemplateModel
setUserUuid
in interface com.liferay.portal.kernel.model.AuditedModel
userUuid
- the user uuid of this ddm template@JSON public java.lang.String getUserName()
DDMTemplateModel
getUserName
in interface DDMTemplateModel
getUserName
in interface com.liferay.portal.kernel.model.AuditedModel
public void setUserName(java.lang.String userName)
DDMTemplateModel
setUserName
in interface DDMTemplateModel
setUserName
in interface com.liferay.portal.kernel.model.AuditedModel
userName
- the user name of this ddm template@JSON public long getVersionUserId()
DDMTemplateModel
getVersionUserId
in interface DDMTemplateModel
public void setVersionUserId(long versionUserId)
DDMTemplateModel
setVersionUserId
in interface DDMTemplateModel
versionUserId
- the version user ID of this ddm templatepublic java.lang.String getVersionUserUuid()
DDMTemplateModel
getVersionUserUuid
in interface DDMTemplateModel
public void setVersionUserUuid(java.lang.String versionUserUuid)
DDMTemplateModel
setVersionUserUuid
in interface DDMTemplateModel
versionUserUuid
- the version user uuid of this ddm template@JSON public java.lang.String getVersionUserName()
DDMTemplateModel
getVersionUserName
in interface DDMTemplateModel
public void setVersionUserName(java.lang.String versionUserName)
DDMTemplateModel
setVersionUserName
in interface DDMTemplateModel
versionUserName
- the version user name of this ddm template@JSON public java.util.Date getCreateDate()
DDMTemplateModel
getCreateDate
in interface DDMTemplateModel
getCreateDate
in interface com.liferay.portal.kernel.model.AuditedModel
getCreateDate
in interface com.liferay.portal.kernel.model.StagedModel
public void setCreateDate(java.util.Date createDate)
DDMTemplateModel
setCreateDate
in interface DDMTemplateModel
setCreateDate
in interface com.liferay.portal.kernel.model.AuditedModel
setCreateDate
in interface com.liferay.portal.kernel.model.StagedModel
createDate
- the create date of this ddm template@JSON public java.util.Date getModifiedDate()
DDMTemplateModel
getModifiedDate
in interface DDMTemplateModel
getModifiedDate
in interface com.liferay.portal.kernel.model.AuditedModel
getModifiedDate
in interface com.liferay.portal.kernel.model.StagedModel
public boolean hasSetModifiedDate()
public void setModifiedDate(java.util.Date modifiedDate)
DDMTemplateModel
setModifiedDate
in interface DDMTemplateModel
setModifiedDate
in interface com.liferay.portal.kernel.model.AuditedModel
setModifiedDate
in interface com.liferay.portal.kernel.model.StagedModel
modifiedDate
- the modified date of this ddm templatepublic java.lang.String getClassName()
DDMTemplateModel
getClassName
in interface DDMTemplateModel
getClassName
in interface com.liferay.portal.kernel.model.TypedModel
public void setClassName(java.lang.String className)
setClassName
in interface DDMTemplateModel
@JSON public long getClassNameId()
DDMTemplateModel
getClassNameId
in interface DDMTemplateModel
getClassNameId
in interface com.liferay.portal.kernel.model.TypedModel
public void setClassNameId(long classNameId)
DDMTemplateModel
setClassNameId
in interface DDMTemplateModel
setClassNameId
in interface com.liferay.portal.kernel.model.TypedModel
classNameId
- the class name ID of this ddm templatepublic long getOriginalClassNameId()
@JSON public long getClassPK()
DDMTemplateModel
getClassPK
in interface DDMTemplateModel
getClassPK
in interface com.liferay.portal.kernel.model.AttachedModel
public void setClassPK(long classPK)
DDMTemplateModel
setClassPK
in interface DDMTemplateModel
setClassPK
in interface com.liferay.portal.kernel.model.AttachedModel
classPK
- the class pk of this ddm templatepublic long getOriginalClassPK()
@JSON public long getResourceClassNameId()
DDMTemplateModel
getResourceClassNameId
in interface DDMTemplateModel
public void setResourceClassNameId(long resourceClassNameId)
DDMTemplateModel
setResourceClassNameId
in interface DDMTemplateModel
resourceClassNameId
- the resource class name ID of this ddm template@JSON public java.lang.String getTemplateKey()
DDMTemplateModel
getTemplateKey
in interface DDMTemplateModel
public void setTemplateKey(java.lang.String templateKey)
DDMTemplateModel
setTemplateKey
in interface DDMTemplateModel
templateKey
- the template key of this ddm templatepublic java.lang.String getOriginalTemplateKey()
@JSON public java.lang.String getVersion()
DDMTemplateModel
getVersion
in interface DDMTemplateModel
public void setVersion(java.lang.String version)
DDMTemplateModel
setVersion
in interface DDMTemplateModel
version
- the version of this ddm template@JSON public java.lang.String getName()
DDMTemplateModel
getName
in interface DDMTemplateModel
public java.lang.String getName(java.util.Locale locale)
DDMTemplateModel
getName
in interface DDMTemplateModel
locale
- the locale of the languagepublic java.lang.String getName(java.util.Locale locale, boolean useDefault)
DDMTemplateModel
getName
in interface DDMTemplateModel
locale
- 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)
DDMTemplateModel
getName
in interface DDMTemplateModel
languageId
- the ID of the languagepublic java.lang.String getName(java.lang.String languageId, boolean useDefault)
DDMTemplateModel
getName
in interface DDMTemplateModel
languageId
- 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 DDMTemplateModel
@JSON public java.lang.String getNameCurrentValue()
getNameCurrentValue
in interface DDMTemplateModel
public java.util.Map<java.util.Locale,java.lang.String> getNameMap()
DDMTemplateModel
getNameMap
in interface DDMTemplateModel
public void setName(java.lang.String name)
DDMTemplateModel
setName
in interface DDMTemplateModel
name
- the name of this ddm templatepublic void setName(java.lang.String name, java.util.Locale locale)
DDMTemplateModel
setName
in interface DDMTemplateModel
name
- the localized name of this ddm templatelocale
- the locale of the languagepublic void setName(java.lang.String name, java.util.Locale locale, java.util.Locale defaultLocale)
DDMTemplateModel
setName
in interface DDMTemplateModel
name
- the localized name of this ddm templatelocale
- the locale of the languagedefaultLocale
- the default localepublic void setNameCurrentLanguageId(java.lang.String languageId)
setNameCurrentLanguageId
in interface DDMTemplateModel
public void setNameMap(java.util.Map<java.util.Locale,java.lang.String> nameMap)
DDMTemplateModel
setNameMap
in interface DDMTemplateModel
nameMap
- the locales and localized names of this ddm templatepublic void setNameMap(java.util.Map<java.util.Locale,java.lang.String> nameMap, java.util.Locale defaultLocale)
DDMTemplateModel
setNameMap
in interface DDMTemplateModel
nameMap
- the locales and localized names of this ddm templatedefaultLocale
- the default locale@JSON public java.lang.String getDescription()
DDMTemplateModel
getDescription
in interface DDMTemplateModel
public java.lang.String getDescription(java.util.Locale locale)
DDMTemplateModel
getDescription
in interface DDMTemplateModel
locale
- the locale of the languagepublic java.lang.String getDescription(java.util.Locale locale, boolean useDefault)
DDMTemplateModel
getDescription
in interface DDMTemplateModel
locale
- 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 getDescription(java.lang.String languageId)
DDMTemplateModel
getDescription
in interface DDMTemplateModel
languageId
- the ID of the languagepublic java.lang.String getDescription(java.lang.String languageId, boolean useDefault)
DDMTemplateModel
getDescription
in interface DDMTemplateModel
languageId
- the ID of the languageuseDefault
- whether to use the default language if no localization exists for the requested languagepublic java.lang.String getDescriptionCurrentLanguageId()
getDescriptionCurrentLanguageId
in interface DDMTemplateModel
@JSON public java.lang.String getDescriptionCurrentValue()
getDescriptionCurrentValue
in interface DDMTemplateModel
public java.util.Map<java.util.Locale,java.lang.String> getDescriptionMap()
DDMTemplateModel
getDescriptionMap
in interface DDMTemplateModel
public void setDescription(java.lang.String description)
DDMTemplateModel
setDescription
in interface DDMTemplateModel
description
- the description of this ddm templatepublic void setDescription(java.lang.String description, java.util.Locale locale)
DDMTemplateModel
setDescription
in interface DDMTemplateModel
description
- the localized description of this ddm templatelocale
- the locale of the languagepublic void setDescription(java.lang.String description, java.util.Locale locale, java.util.Locale defaultLocale)
DDMTemplateModel
setDescription
in interface DDMTemplateModel
description
- the localized description of this ddm templatelocale
- the locale of the languagedefaultLocale
- the default localepublic void setDescriptionCurrentLanguageId(java.lang.String languageId)
setDescriptionCurrentLanguageId
in interface DDMTemplateModel
public void setDescriptionMap(java.util.Map<java.util.Locale,java.lang.String> descriptionMap)
DDMTemplateModel
setDescriptionMap
in interface DDMTemplateModel
descriptionMap
- the locales and localized descriptions of this ddm templatepublic void setDescriptionMap(java.util.Map<java.util.Locale,java.lang.String> descriptionMap, java.util.Locale defaultLocale)
DDMTemplateModel
setDescriptionMap
in interface DDMTemplateModel
descriptionMap
- the locales and localized descriptions of this ddm templatedefaultLocale
- the default locale@JSON public java.lang.String getType()
DDMTemplateModel
getType
in interface DDMTemplateModel
public void setType(java.lang.String type)
DDMTemplateModel
setType
in interface DDMTemplateModel
type
- the type of this ddm templatepublic java.lang.String getOriginalType()
@JSON public java.lang.String getMode()
DDMTemplateModel
getMode
in interface DDMTemplateModel
public void setMode(java.lang.String mode)
DDMTemplateModel
setMode
in interface DDMTemplateModel
mode
- the mode of this ddm templatepublic java.lang.String getOriginalMode()
@JSON public java.lang.String getLanguage()
DDMTemplateModel
getLanguage
in interface DDMTemplateModel
public void setLanguage(java.lang.String language)
DDMTemplateModel
setLanguage
in interface DDMTemplateModel
language
- the language of this ddm templatepublic java.lang.String getOriginalLanguage()
@JSON public java.lang.String getScript()
DDMTemplateModel
getScript
in interface DDMTemplateModel
public void setScript(java.lang.String script)
DDMTemplateModel
setScript
in interface DDMTemplateModel
script
- the script of this ddm template@JSON public boolean getCacheable()
DDMTemplateModel
getCacheable
in interface DDMTemplateModel
@JSON public boolean isCacheable()
DDMTemplateModel
true
if this ddm template is cacheable.isCacheable
in interface DDMTemplateModel
true
if this ddm template is cacheable; false
otherwisepublic void setCacheable(boolean cacheable)
DDMTemplateModel
setCacheable
in interface DDMTemplateModel
cacheable
- the cacheable of this ddm template@JSON public boolean getSmallImage()
DDMTemplateModel
getSmallImage
in interface DDMTemplateModel
@JSON public boolean isSmallImage()
DDMTemplateModel
true
if this ddm template is small image.isSmallImage
in interface DDMTemplateModel
true
if this ddm template is small image; false
otherwisepublic void setSmallImage(boolean smallImage)
DDMTemplateModel
setSmallImage
in interface DDMTemplateModel
smallImage
- the small image of this ddm template@JSON public long getSmallImageId()
DDMTemplateModel
getSmallImageId
in interface DDMTemplateModel
public void setSmallImageId(long smallImageId)
DDMTemplateModel
setSmallImageId
in interface DDMTemplateModel
smallImageId
- the small image ID of this ddm templatepublic long getOriginalSmallImageId()
@JSON public java.lang.String getSmallImageURL()
DDMTemplateModel
getSmallImageURL
in interface DDMTemplateModel
public void setSmallImageURL(java.lang.String smallImageURL)
DDMTemplateModel
setSmallImageURL
in interface DDMTemplateModel
smallImageURL
- the small image url of this ddm template@JSON public java.util.Date getLastPublishDate()
DDMTemplateModel
getLastPublishDate
in interface DDMTemplateModel
getLastPublishDate
in interface com.liferay.portal.kernel.model.StagedGroupedModel
public void setLastPublishDate(java.util.Date lastPublishDate)
DDMTemplateModel
setLastPublishDate
in interface DDMTemplateModel
setLastPublishDate
in interface com.liferay.portal.kernel.model.StagedGroupedModel
lastPublishDate
- the last publish date of this ddm templatepublic com.liferay.exportimport.kernel.lar.StagedModelType getStagedModelType()
getStagedModelType
in interface com.liferay.portal.kernel.model.StagedModel
public long getColumnBitmask()
public com.liferay.expando.kernel.model.ExpandoBridge getExpandoBridge()
getExpandoBridge
in interface DDMTemplateModel
getExpandoBridge
in interface com.liferay.portal.kernel.model.BaseModel<DDMTemplate>
getExpandoBridge
in interface com.liferay.portal.kernel.model.ClassedModel
getExpandoBridge
in class com.liferay.portal.kernel.model.impl.BaseModelImpl<DDMTemplate>
public void setExpandoBridgeAttributes(com.liferay.portal.kernel.service.ServiceContext serviceContext)
setExpandoBridgeAttributes
in interface DDMTemplateModel
setExpandoBridgeAttributes
in interface com.liferay.portal.kernel.model.BaseModel<DDMTemplate>
setExpandoBridgeAttributes
in class com.liferay.portal.kernel.model.impl.BaseModelImpl<DDMTemplate>
public java.lang.String[] getAvailableLanguageIds()
getAvailableLanguageIds
in interface DDMTemplateModel
getAvailableLanguageIds
in interface com.liferay.portal.kernel.model.LocalizedModel
public java.lang.String getDefaultLanguageId()
getDefaultLanguageId
in interface DDMTemplateModel
getDefaultLanguageId
in interface com.liferay.portal.kernel.model.LocalizedModel
public void prepareLocalizedFieldsForImport() throws com.liferay.portal.kernel.exception.LocaleException
prepareLocalizedFieldsForImport
in interface DDMTemplateModel
prepareLocalizedFieldsForImport
in interface com.liferay.portal.kernel.model.LocalizedModel
com.liferay.portal.kernel.exception.LocaleException
public void prepareLocalizedFieldsForImport(java.util.Locale defaultImportLocale) throws com.liferay.portal.kernel.exception.LocaleException
prepareLocalizedFieldsForImport
in interface DDMTemplateModel
prepareLocalizedFieldsForImport
in interface com.liferay.portal.kernel.model.LocalizedModel
com.liferay.portal.kernel.exception.LocaleException
public DDMTemplate toEscapedModel()
toEscapedModel
in interface DDMTemplateModel
toEscapedModel
in interface com.liferay.portal.kernel.model.BaseModel<DDMTemplate>
toEscapedModel
in class com.liferay.portal.kernel.model.impl.BaseModelImpl<DDMTemplate>
public java.lang.Object clone()
clone
in interface DDMTemplateModel
clone
in interface com.liferay.portal.kernel.model.BaseModel<DDMTemplate>
clone
in interface com.liferay.portal.kernel.model.StagedModel
clone
in class com.liferay.portal.kernel.model.impl.BaseModelImpl<DDMTemplate>
public int compareTo(DDMTemplate ddmTemplate)
compareTo
in interface DDMTemplateModel
compareTo
in interface java.lang.Comparable<DDMTemplate>
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in interface DDMTemplateModel
hashCode
in class java.lang.Object
public boolean isEntityCacheEnabled()
isEntityCacheEnabled
in interface com.liferay.portal.kernel.model.BaseModel<DDMTemplate>
public boolean isFinderCacheEnabled()
isFinderCacheEnabled
in interface com.liferay.portal.kernel.model.BaseModel<DDMTemplate>
public void resetOriginalValues()
resetOriginalValues
in interface com.liferay.portal.kernel.model.BaseModel<DDMTemplate>
resetOriginalValues
in class com.liferay.portal.kernel.model.impl.BaseModelImpl<DDMTemplate>
public com.liferay.portal.kernel.model.CacheModel<DDMTemplate> toCacheModel()
toCacheModel
in interface DDMTemplateModel
toCacheModel
in interface com.liferay.portal.kernel.model.BaseModel<DDMTemplate>
toCacheModel
in class com.liferay.portal.kernel.model.impl.BaseModelImpl<DDMTemplate>
public java.lang.String toString()
toString
in interface DDMTemplateModel
toString
in class java.lang.Object
public java.lang.String toXmlString()
toXmlString
in interface DDMTemplateModel
toXmlString
in interface com.liferay.portal.kernel.model.BaseModel<DDMTemplate>