Liferay 6.2-ce-ga5

com.liferay.portlet.dynamicdatamapping.model
Class DDMTemplateWrapper

java.lang.Object
  extended by com.liferay.portlet.dynamicdatamapping.model.DDMTemplateWrapper
All Implemented Interfaces:
AttachedModel, AuditedModel, BaseModel<DDMTemplate>, ClassedModel, GroupedModel, ModelWrapper<DDMTemplate>, PersistedModel, StagedGroupedModel, StagedModel, TypedModel, DDMTemplate, DDMTemplateModel, Serializable, Cloneable, Comparable<DDMTemplate>

@ProviderType
public class DDMTemplateWrapper
extends Object
implements DDMTemplate, ModelWrapper<DDMTemplate>

This class is a wrapper for DDMTemplate.

See Also:
DDMTemplate, Serialized Form

Constructor Summary
DDMTemplateWrapper(DDMTemplate ddmTemplate)
           
 
Method Summary
 Object clone()
          Creates a shallow clone of this model instance.
 int compareTo(DDMTemplate ddmTemplate)
           
 boolean equals(Object obj)
           
 String[] getAvailableLanguageIds()
           
 boolean getCacheable()
          Returns the cacheable of this d d m template.
 String getClassName()
          Returns the fully qualified class name of this d d m template.
 long getClassNameId()
          Returns the class name ID of this d d m template.
 long getClassPK()
          Returns the class p k of this d d m template.
 long getCompanyId()
          Returns the company ID of this d d m template.
 Date getCreateDate()
          Returns the create date of this d d m template.
 String getDefaultLanguageId()
           
 String getDescription()
          Returns the description of this d d m template.
 String getDescription(Locale locale)
          Returns the localized description of this d d m template in the language.
 String getDescription(Locale locale, boolean useDefault)
          Returns the localized description of this d d m template 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 d d m template in the language.
 String getDescription(String languageId, boolean useDefault)
          Returns the localized description of this d d m template 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 d d m template.
 ExpandoBridge getExpandoBridge()
          Returns the expando bridge for this model instance.
 long getGroupId()
          Returns the group ID of this d d m template.
 String getLanguage()
          Returns the language of this d d m template.
 String getMode()
          Returns the mode of this d d m template.
 Map<String,Object> getModelAttributes()
           
 Class<?> getModelClass()
           
 String getModelClassName()
           
 Date getModifiedDate()
          Returns the modified date of this d d m template.
 String getName()
          Returns the name of this d d m template.
 String getName(Locale locale)
          Returns the localized name of this d d m template in the language.
 String getName(Locale locale, boolean useDefault)
          Returns the localized name of this d d m template in the language, optionally using the default language if no localization exists for the requested language.
 String getName(String languageId)
          Returns the localized name of this d d m template in the language.
 String getName(String languageId, boolean useDefault)
          Returns the localized name of this d d m template in the language, optionally using the default language if no localization exists for the requested language.
 String getNameCurrentLanguageId()
           
 String getNameCurrentValue()
           
 Map<Locale,String> getNameMap()
          Returns a map of the locales and localized names of this d d m template.
 long getPrimaryKey()
          Returns the primary key of this d d m template.
 Serializable getPrimaryKeyObj()
          Returns the primary key of this model instance.
 String getScript()
          Returns the script of this d d m template.
 boolean getSmallImage()
          Returns the small image of this d d m template.
 long getSmallImageId()
          Returns the small image ID of this d d m template.
 String getSmallImageType()
           
 String getSmallImageURL()
          Returns the small image u r l of this d d m template.
 StagedModelType getStagedModelType()
           
 long getTemplateId()
          Returns the template ID of this d d m template.
 String getTemplateKey()
          Returns the template key of this d d m template.
 String getType()
          Returns the type of this d d m template.
 long getUserId()
          Returns the user ID of this d d m template.
 String getUserName()
          Returns the user name of this d d m template.
 String getUserUuid()
          Returns the user uuid of this d d m template.
 String getUuid()
          Returns the uuid of this d d m template.
 String getWebDavURL(ThemeDisplay themeDisplay, String webDAVToken)
          Returns the WebDAV URL to access the template.
 DDMTemplate getWrappedDDMTemplate()
          Deprecated. As of 6.1.0, replaced by getWrappedModel()
 DDMTemplate getWrappedModel()
           
 int hashCode()
           
 boolean isCacheable()
          Returns true if this d d m template is cacheable.
 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.
 boolean isSmallImage()
          Returns true if this d d m template is small image.
 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 setCacheable(boolean cacheable)
          Sets whether this d d m template is cacheable.
 void setCachedModel(boolean cachedModel)
          Sets whether this model instance was retrieved from the entity cache.
 void setClassName(String className)
           
 void setClassNameId(long classNameId)
          Sets the class name ID of this d d m template.
 void setClassPK(long classPK)
          Sets the class p k of this d d m template.
 void setCompanyId(long companyId)
          Sets the company ID of this d d m template.
 void setCreateDate(Date createDate)
          Sets the create date of this d d m template.
 void setDescription(String description)
          Sets the description of this d d m template.
 void setDescription(String description, Locale locale)
          Sets the localized description of this d d m template in the language.
 void setDescription(String description, Locale locale, Locale defaultLocale)
          Sets the localized description of this d d m template in the language, and sets the default locale.
 void setDescriptionCurrentLanguageId(String languageId)
           
 void setDescriptionMap(Map<Locale,String> descriptionMap)
          Sets the localized descriptions of this d d m template from the map of locales and localized descriptions.
 void setDescriptionMap(Map<Locale,String> descriptionMap, Locale defaultLocale)
          Sets the localized descriptions of this d d m template 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 d d m template.
 void setLanguage(String language)
          Sets the language of this d d m template.
 void setMode(String mode)
          Sets the mode of this d d m template.
 void setModelAttributes(Map<String,Object> attributes)
           
 void setModifiedDate(Date modifiedDate)
          Sets the modified date of this d d m template.
 void setName(String name)
          Sets the name of this d d m template.
 void setName(String name, Locale locale)
          Sets the localized name of this d d m template in the language.
 void setName(String name, Locale locale, Locale defaultLocale)
          Sets the localized name of this d d m template in the language, and sets the default locale.
 void setNameCurrentLanguageId(String languageId)
           
 void setNameMap(Map<Locale,String> nameMap)
          Sets the localized names of this d d m template from the map of locales and localized names.
 void setNameMap(Map<Locale,String> nameMap, Locale defaultLocale)
          Sets the localized names of this d d m template 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 template.
 void setPrimaryKeyObj(Serializable primaryKeyObj)
          Sets the primary key of this model instance.
 void setScript(String script)
          Sets the script of this d d m template.
 void setSmallImage(boolean smallImage)
          Sets whether this d d m template is small image.
 void setSmallImageId(long smallImageId)
          Sets the small image ID of this d d m template.
 void setSmallImageType(String smallImageType)
           
 void setSmallImageURL(String smallImageURL)
          Sets the small image u r l of this d d m template.
 void setTemplateId(long templateId)
          Sets the template ID of this d d m template.
 void setTemplateKey(String templateKey)
          Sets the template key of this d d m template.
 void setType(String type)
          Sets the type of this d d m template.
 void setUserId(long userId)
          Sets the user ID of this d d m template.
 void setUserName(String userName)
          Sets the user name of this d d m template.
 void setUserUuid(String userUuid)
          Sets the user uuid of this d d m template.
 void setUuid(String uuid)
          Sets the uuid of this d d m template.
 CacheModel<DDMTemplate> toCacheModel()
          Returns a cache model object for this entity used by entity cache.
 DDMTemplate toEscapedModel()
          Returns a copy of this entity as an escaped model instance by wrapping it with an AutoEscapeBeanHandler.
 String toString()
           
 DDMTemplate 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

DDMTemplateWrapper

public DDMTemplateWrapper(DDMTemplate ddmTemplate)
Method Detail

getModelClass

public Class<?> getModelClass()
Specified by:
getModelClass in interface ClassedModel

getModelClassName

public String getModelClassName()
Specified by:
getModelClassName in interface ClassedModel

getModelAttributes

public Map<String,Object> getModelAttributes()
Specified by:
getModelAttributes in interface BaseModel<DDMTemplate>

setModelAttributes

public void setModelAttributes(Map<String,Object> attributes)
Specified by:
setModelAttributes in interface BaseModel<DDMTemplate>

getPrimaryKey

public long getPrimaryKey()
Returns the primary key of this d d m template.

Specified by:
getPrimaryKey in interface DDMTemplateModel
Returns:
the primary key of this d d m template

setPrimaryKey

public void setPrimaryKey(long primaryKey)
Sets the primary key of this d d m template.

Specified by:
setPrimaryKey in interface DDMTemplateModel
Parameters:
primaryKey - the primary key of this d d m template

getUuid

public String getUuid()
Returns the uuid of this d d m template.

Specified by:
getUuid in interface StagedModel
Specified by:
getUuid in interface DDMTemplateModel
Returns:
the uuid of this d d m template

setUuid

public void setUuid(String uuid)
Sets the uuid of this d d m template.

Specified by:
setUuid in interface StagedModel
Specified by:
setUuid in interface DDMTemplateModel
Parameters:
uuid - the uuid of this d d m template

getTemplateId

public long getTemplateId()
Returns the template ID of this d d m template.

Specified by:
getTemplateId in interface DDMTemplateModel
Returns:
the template ID of this d d m template

setTemplateId

public void setTemplateId(long templateId)
Sets the template ID of this d d m template.

Specified by:
setTemplateId in interface DDMTemplateModel
Parameters:
templateId - the template ID of this d d m template

getGroupId

public long getGroupId()
Returns the group ID of this d d m template.

Specified by:
getGroupId in interface GroupedModel
Specified by:
getGroupId in interface DDMTemplateModel
Returns:
the group ID of this d d m template

setGroupId

public void setGroupId(long groupId)
Sets the group ID of this d d m template.

Specified by:
setGroupId in interface GroupedModel
Specified by:
setGroupId in interface DDMTemplateModel
Parameters:
groupId - the group ID of this d d m template

getCompanyId

public long getCompanyId()
Returns the company ID of this d d m template.

Specified by:
getCompanyId in interface AuditedModel
Specified by:
getCompanyId in interface StagedModel
Specified by:
getCompanyId in interface DDMTemplateModel
Returns:
the company ID of this d d m template

setCompanyId

public void setCompanyId(long companyId)
Sets the company ID of this d d m template.

Specified by:
setCompanyId in interface AuditedModel
Specified by:
setCompanyId in interface StagedModel
Specified by:
setCompanyId in interface DDMTemplateModel
Parameters:
companyId - the company ID of this d d m template

getUserId

public long getUserId()
Returns the user ID of this d d m template.

Specified by:
getUserId in interface AuditedModel
Specified by:
getUserId in interface DDMTemplateModel
Returns:
the user ID of this d d m template

setUserId

public void setUserId(long userId)
Sets the user ID of this d d m template.

Specified by:
setUserId in interface AuditedModel
Specified by:
setUserId in interface DDMTemplateModel
Parameters:
userId - the user ID of this d d m template

getUserUuid

public String getUserUuid()
                   throws SystemException
Returns the user uuid of this d d m template.

Specified by:
getUserUuid in interface AuditedModel
Specified by:
getUserUuid in interface DDMTemplateModel
Returns:
the user uuid of this d d m template
Throws:
SystemException - if a system exception occurred

setUserUuid

public void setUserUuid(String userUuid)
Sets the user uuid of this d d m template.

Specified by:
setUserUuid in interface AuditedModel
Specified by:
setUserUuid in interface DDMTemplateModel
Parameters:
userUuid - the user uuid of this d d m template

getUserName

public String getUserName()
Returns the user name of this d d m template.

Specified by:
getUserName in interface AuditedModel
Specified by:
getUserName in interface DDMTemplateModel
Returns:
the user name of this d d m template

setUserName

public void setUserName(String userName)
Sets the user name of this d d m template.

Specified by:
setUserName in interface AuditedModel
Specified by:
setUserName in interface DDMTemplateModel
Parameters:
userName - the user name of this d d m template

getCreateDate

public Date getCreateDate()
Returns the create date of this d d m template.

Specified by:
getCreateDate in interface AuditedModel
Specified by:
getCreateDate in interface StagedModel
Specified by:
getCreateDate in interface DDMTemplateModel
Returns:
the create date of this d d m template

setCreateDate

public void setCreateDate(Date createDate)
Sets the create date of this d d m template.

Specified by:
setCreateDate in interface AuditedModel
Specified by:
setCreateDate in interface StagedModel
Specified by:
setCreateDate in interface DDMTemplateModel
Parameters:
createDate - the create date of this d d m template

getModifiedDate

public Date getModifiedDate()
Returns the modified date of this d d m template.

Specified by:
getModifiedDate in interface AuditedModel
Specified by:
getModifiedDate in interface StagedModel
Specified by:
getModifiedDate in interface DDMTemplateModel
Returns:
the modified date of this d d m template

setModifiedDate

public void setModifiedDate(Date modifiedDate)
Sets the modified date of this d d m template.

Specified by:
setModifiedDate in interface AuditedModel
Specified by:
setModifiedDate in interface StagedModel
Specified by:
setModifiedDate in interface DDMTemplateModel
Parameters:
modifiedDate - the modified date of this d d m template

getClassName

public String getClassName()
Returns the fully qualified class name of this d d m template.

Specified by:
getClassName in interface TypedModel
Specified by:
getClassName in interface DDMTemplateModel
Returns:
the fully qualified class name of this d d m template

setClassName

public void setClassName(String className)
Specified by:
setClassName in interface DDMTemplateModel

getClassNameId

public long getClassNameId()
Returns the class name ID of this d d m template.

Specified by:
getClassNameId in interface TypedModel
Specified by:
getClassNameId in interface DDMTemplateModel
Returns:
the class name ID of this d d m template

setClassNameId

public void setClassNameId(long classNameId)
Sets the class name ID of this d d m template.

Specified by:
setClassNameId in interface TypedModel
Specified by:
setClassNameId in interface DDMTemplateModel
Parameters:
classNameId - the class name ID of this d d m template

getClassPK

public long getClassPK()
Returns the class p k of this d d m template.

Specified by:
getClassPK in interface AttachedModel
Specified by:
getClassPK in interface DDMTemplateModel
Returns:
the class p k of this d d m template

setClassPK

public void setClassPK(long classPK)
Sets the class p k of this d d m template.

Specified by:
setClassPK in interface AttachedModel
Specified by:
setClassPK in interface DDMTemplateModel
Parameters:
classPK - the class p k of this d d m template

getTemplateKey

public String getTemplateKey()
Returns the template key of this d d m template.

Specified by:
getTemplateKey in interface DDMTemplateModel
Returns:
the template key of this d d m template

setTemplateKey

public void setTemplateKey(String templateKey)
Sets the template key of this d d m template.

Specified by:
setTemplateKey in interface DDMTemplateModel
Parameters:
templateKey - the template key of this d d m template

getName

public String getName()
Returns the name of this d d m template.

Specified by:
getName in interface DDMTemplateModel
Returns:
the name of this d d m template

getName

public String getName(Locale locale)
Returns the localized name of this d d m template in the language. Uses the default language if no localization exists for the requested language.

Specified by:
getName in interface DDMTemplateModel
Parameters:
locale - the locale of the language
Returns:
the localized name of this d d m template

getName

public String getName(Locale locale,
                      boolean useDefault)
Returns the localized name of this d d m template in the language, optionally using the default language if no localization exists for the requested language.

Specified by:
getName in interface DDMTemplateModel
Parameters:
locale - the local of the language
useDefault - whether to use the default language if no localization exists for the requested language
Returns:
the localized name of this d d m template. If useDefault is false and no localization exists for the requested language, an empty string will be returned.

getName

public String getName(String languageId)
Returns the localized name of this d d m template in the language. Uses the default language if no localization exists for the requested language.

Specified by:
getName in interface DDMTemplateModel
Parameters:
languageId - the ID of the language
Returns:
the localized name of this d d m template

getName

public String getName(String languageId,
                      boolean useDefault)
Returns the localized name of this d d m template in the language, optionally using the default language if no localization exists for the requested language.

Specified by:
getName in interface DDMTemplateModel
Parameters:
languageId - the ID of the language
useDefault - whether to use the default language if no localization exists for the requested language
Returns:
the localized name of this d d m template

getNameCurrentLanguageId

public String getNameCurrentLanguageId()
Specified by:
getNameCurrentLanguageId in interface DDMTemplateModel

getNameCurrentValue

public String getNameCurrentValue()
Specified by:
getNameCurrentValue in interface DDMTemplateModel

getNameMap

public Map<Locale,String> getNameMap()
Returns a map of the locales and localized names of this d d m template.

Specified by:
getNameMap in interface DDMTemplateModel
Returns:
the locales and localized names of this d d m template

setName

public void setName(String name)
Sets the name of this d d m template.

Specified by:
setName in interface DDMTemplateModel
Parameters:
name - the name of this d d m template

setName

public void setName(String name,
                    Locale locale)
Sets the localized name of this d d m template in the language.

Specified by:
setName in interface DDMTemplateModel
Parameters:
name - the localized name of this d d m template
locale - the locale of the language

setName

public void setName(String name,
                    Locale locale,
                    Locale defaultLocale)
Sets the localized name of this d d m template in the language, and sets the default locale.

Specified by:
setName in interface DDMTemplateModel
Parameters:
name - the localized name of this d d m template
locale - the locale of the language
defaultLocale - the default locale

setNameCurrentLanguageId

public void setNameCurrentLanguageId(String languageId)
Specified by:
setNameCurrentLanguageId in interface DDMTemplateModel

setNameMap

public void setNameMap(Map<Locale,String> nameMap)
Sets the localized names of this d d m template from the map of locales and localized names.

Specified by:
setNameMap in interface DDMTemplateModel
Parameters:
nameMap - the locales and localized names of this d d m template

setNameMap

public void setNameMap(Map<Locale,String> nameMap,
                       Locale defaultLocale)
Sets the localized names of this d d m template from the map of locales and localized names, and sets the default locale.

Specified by:
setNameMap in interface DDMTemplateModel
Parameters:
nameMap - the locales and localized names of this d d m template
defaultLocale - the default locale

getDescription

public String getDescription()
Returns the description of this d d m template.

Specified by:
getDescription in interface DDMTemplateModel
Returns:
the description of this d d m template

getDescription

public String getDescription(Locale locale)
Returns the localized description of this d d m template in the language. Uses the default language if no localization exists for the requested language.

Specified by:
getDescription in interface DDMTemplateModel
Parameters:
locale - the locale of the language
Returns:
the localized description of this d d m template

getDescription

public String getDescription(Locale locale,
                             boolean useDefault)
Returns the localized description of this d d m template in the language, optionally using the default language if no localization exists for the requested language.

Specified by:
getDescription in interface DDMTemplateModel
Parameters:
locale - the local of the language
useDefault - whether to use the default language if no localization exists for the requested language
Returns:
the localized description of this d d m template. If useDefault is false and no localization exists for the requested language, an empty string will be returned.

getDescription

public String getDescription(String languageId)
Returns the localized description of this d d m template in the language. Uses the default language if no localization exists for the requested language.

Specified by:
getDescription in interface DDMTemplateModel
Parameters:
languageId - the ID of the language
Returns:
the localized description of this d d m template

getDescription

public String getDescription(String languageId,
                             boolean useDefault)
Returns the localized description of this d d m template in the language, optionally using the default language if no localization exists for the requested language.

Specified by:
getDescription in interface DDMTemplateModel
Parameters:
languageId - the ID of the language
useDefault - whether to use the default language if no localization exists for the requested language
Returns:
the localized description of this d d m template

getDescriptionCurrentLanguageId

public String getDescriptionCurrentLanguageId()
Specified by:
getDescriptionCurrentLanguageId in interface DDMTemplateModel

getDescriptionCurrentValue

public String getDescriptionCurrentValue()
Specified by:
getDescriptionCurrentValue in interface DDMTemplateModel

getDescriptionMap

public Map<Locale,String> getDescriptionMap()
Returns a map of the locales and localized descriptions of this d d m template.

Specified by:
getDescriptionMap in interface DDMTemplateModel
Returns:
the locales and localized descriptions of this d d m template

setDescription

public void setDescription(String description)
Sets the description of this d d m template.

Specified by:
setDescription in interface DDMTemplateModel
Parameters:
description - the description of this d d m template

setDescription

public void setDescription(String description,
                           Locale locale)
Sets the localized description of this d d m template in the language.

Specified by:
setDescription in interface DDMTemplateModel
Parameters:
description - the localized description of this d d m template
locale - the locale of the language

setDescription

public void setDescription(String description,
                           Locale locale,
                           Locale defaultLocale)
Sets the localized description of this d d m template in the language, and sets the default locale.

Specified by:
setDescription in interface DDMTemplateModel
Parameters:
description - the localized description of this d d m template
locale - the locale of the language
defaultLocale - the default locale

setDescriptionCurrentLanguageId

public void setDescriptionCurrentLanguageId(String languageId)
Specified by:
setDescriptionCurrentLanguageId in interface DDMTemplateModel

setDescriptionMap

public void setDescriptionMap(Map<Locale,String> descriptionMap)
Sets the localized descriptions of this d d m template from the map of locales and localized descriptions.

Specified by:
setDescriptionMap in interface DDMTemplateModel
Parameters:
descriptionMap - the locales and localized descriptions of this d d m template

setDescriptionMap

public void setDescriptionMap(Map<Locale,String> descriptionMap,
                              Locale defaultLocale)
Sets the localized descriptions of this d d m template from the map of locales and localized descriptions, and sets the default locale.

Specified by:
setDescriptionMap in interface DDMTemplateModel
Parameters:
descriptionMap - the locales and localized descriptions of this d d m template
defaultLocale - the default locale

getType

public String getType()
Returns the type of this d d m template.

Specified by:
getType in interface DDMTemplateModel
Returns:
the type of this d d m template

setType

public void setType(String type)
Sets the type of this d d m template.

Specified by:
setType in interface DDMTemplateModel
Parameters:
type - the type of this d d m template

getMode

public String getMode()
Returns the mode of this d d m template.

Specified by:
getMode in interface DDMTemplateModel
Returns:
the mode of this d d m template

setMode

public void setMode(String mode)
Sets the mode of this d d m template.

Specified by:
setMode in interface DDMTemplateModel
Parameters:
mode - the mode of this d d m template

getLanguage

public String getLanguage()
Returns the language of this d d m template.

Specified by:
getLanguage in interface DDMTemplateModel
Returns:
the language of this d d m template

setLanguage

public void setLanguage(String language)
Sets the language of this d d m template.

Specified by:
setLanguage in interface DDMTemplateModel
Parameters:
language - the language of this d d m template

getScript

public String getScript()
Returns the script of this d d m template.

Specified by:
getScript in interface DDMTemplateModel
Returns:
the script of this d d m template

setScript

public void setScript(String script)
Sets the script of this d d m template.

Specified by:
setScript in interface DDMTemplateModel
Parameters:
script - the script of this d d m template

getCacheable

public boolean getCacheable()
Returns the cacheable of this d d m template.

Specified by:
getCacheable in interface DDMTemplateModel
Returns:
the cacheable of this d d m template

isCacheable

public boolean isCacheable()
Returns true if this d d m template is cacheable.

Specified by:
isCacheable in interface DDMTemplateModel
Returns:
true if this d d m template is cacheable; false otherwise

setCacheable

public void setCacheable(boolean cacheable)
Sets whether this d d m template is cacheable.

Specified by:
setCacheable in interface DDMTemplateModel
Parameters:
cacheable - the cacheable of this d d m template

getSmallImage

public boolean getSmallImage()
Returns the small image of this d d m template.

Specified by:
getSmallImage in interface DDMTemplateModel
Returns:
the small image of this d d m template

isSmallImage

public boolean isSmallImage()
Returns true if this d d m template is small image.

Specified by:
isSmallImage in interface DDMTemplateModel
Returns:
true if this d d m template is small image; false otherwise

setSmallImage

public void setSmallImage(boolean smallImage)
Sets whether this d d m template is small image.

Specified by:
setSmallImage in interface DDMTemplateModel
Parameters:
smallImage - the small image of this d d m template

getSmallImageId

public long getSmallImageId()
Returns the small image ID of this d d m template.

Specified by:
getSmallImageId in interface DDMTemplateModel
Returns:
the small image ID of this d d m template

setSmallImageId

public void setSmallImageId(long smallImageId)
Sets the small image ID of this d d m template.

Specified by:
setSmallImageId in interface DDMTemplateModel
Parameters:
smallImageId - the small image ID of this d d m template

getSmallImageURL

public String getSmallImageURL()
Returns the small image u r l of this d d m template.

Specified by:
getSmallImageURL in interface DDMTemplateModel
Returns:
the small image u r l of this d d m template

setSmallImageURL

public void setSmallImageURL(String smallImageURL)
Sets the small image u r l of this d d m template.

Specified by:
setSmallImageURL in interface DDMTemplateModel
Parameters:
smallImageURL - the small image u r l of this d d m template

isNew

public boolean isNew()
Description copied from interface: BaseModel
Returns true if this model instance does not yet exist in the database.

Specified by:
isNew in interface BaseModel<DDMTemplate>
Specified by:
isNew in interface DDMTemplateModel
Returns:
true if this model instance does not yet exist in the database; false otherwise

setNew

public void setNew(boolean n)
Description copied from interface: BaseModel
Sets whether this model instance does not yet exist in the database.

Specified by:
setNew in interface BaseModel<DDMTemplate>
Specified by:
setNew in interface DDMTemplateModel
Parameters:
n - whether this model instance does not yet exist in the database

isCachedModel

public boolean isCachedModel()
Description copied from interface: BaseModel
Returns true if this model instance was retrieved from the entity cache.

Specified by:
isCachedModel in interface BaseModel<DDMTemplate>
Specified by:
isCachedModel in interface DDMTemplateModel
Returns:
true if this model instance was retrieved from the entity cache; false otherwise
See Also:
BaseModel.setCachedModel(boolean)

setCachedModel

public void setCachedModel(boolean cachedModel)
Description copied from interface: BaseModel
Sets whether this model instance was retrieved from the entity cache.

Specified by:
setCachedModel in interface BaseModel<DDMTemplate>
Specified by:
setCachedModel in interface DDMTemplateModel
Parameters:
cachedModel - whether this model instance was retrieved from the entity cache
See Also:
EntityCache

isEscapedModel

public boolean isEscapedModel()
Description copied from interface: BaseModel
Returns true if this model instance is escaped.

Specified by:
isEscapedModel in interface BaseModel<DDMTemplate>
Specified by:
isEscapedModel in interface DDMTemplateModel
Returns:
true if this model instance is escaped; false otherwise

getPrimaryKeyObj

public Serializable getPrimaryKeyObj()
Description copied from interface: BaseModel
Returns the primary key of this model instance.

Specified by:
getPrimaryKeyObj in interface BaseModel<DDMTemplate>
Specified by:
getPrimaryKeyObj in interface ClassedModel
Specified by:
getPrimaryKeyObj in interface DDMTemplateModel
Returns:
the primary key of this model instance

setPrimaryKeyObj

public void setPrimaryKeyObj(Serializable primaryKeyObj)
Description copied from interface: BaseModel
Sets the primary key of this model instance.

Specified by:
setPrimaryKeyObj in interface BaseModel<DDMTemplate>
Specified by:
setPrimaryKeyObj in interface ClassedModel
Specified by:
setPrimaryKeyObj in interface DDMTemplateModel
Parameters:
primaryKeyObj - the primary key of this model instance

getExpandoBridge

public ExpandoBridge getExpandoBridge()
Description copied from interface: BaseModel
Returns the expando bridge for this model instance.

Specified by:
getExpandoBridge in interface BaseModel<DDMTemplate>
Specified by:
getExpandoBridge in interface ClassedModel
Specified by:
getExpandoBridge in interface DDMTemplateModel
Returns:
the expando bridge for this model instance

setExpandoBridgeAttributes

public void setExpandoBridgeAttributes(BaseModel<?> baseModel)
Specified by:
setExpandoBridgeAttributes in interface BaseModel<DDMTemplate>
Specified by:
setExpandoBridgeAttributes in interface DDMTemplateModel

setExpandoBridgeAttributes

public void setExpandoBridgeAttributes(ExpandoBridge expandoBridge)
Specified by:
setExpandoBridgeAttributes in interface BaseModel<DDMTemplate>
Specified by:
setExpandoBridgeAttributes in interface DDMTemplateModel

setExpandoBridgeAttributes

public void setExpandoBridgeAttributes(ServiceContext serviceContext)
Description copied from interface: BaseModel
Sets the expando bridge attributes for this model instance to the attributes stored in the service context.

Specified by:
setExpandoBridgeAttributes in interface BaseModel<DDMTemplate>
Specified by:
setExpandoBridgeAttributes in interface DDMTemplateModel
Parameters:
serviceContext - the service context to be applied
See Also:
ServiceContext.getExpandoBridgeAttributes( )

getAvailableLanguageIds

public String[] getAvailableLanguageIds()
Specified by:
getAvailableLanguageIds in interface DDMTemplateModel

getDefaultLanguageId

public String getDefaultLanguageId()
Specified by:
getDefaultLanguageId in interface DDMTemplateModel

prepareLocalizedFieldsForImport

public void prepareLocalizedFieldsForImport()
                                     throws LocaleException
Specified by:
prepareLocalizedFieldsForImport in interface DDMTemplateModel
Throws:
LocaleException

prepareLocalizedFieldsForImport

public void prepareLocalizedFieldsForImport(Locale defaultImportLocale)
                                     throws LocaleException
Specified by:
prepareLocalizedFieldsForImport in interface DDMTemplateModel
Throws:
LocaleException

clone

public Object clone()
Description copied from interface: BaseModel
Creates a shallow clone of this model instance.

Specified by:
clone in interface BaseModel<DDMTemplate>
Specified by:
clone in interface StagedModel
Specified by:
clone in interface DDMTemplateModel
Overrides:
clone in class Object
Returns:
the shallow clone of this model instance

compareTo

public int compareTo(DDMTemplate ddmTemplate)
Specified by:
compareTo in interface DDMTemplateModel
Specified by:
compareTo in interface Comparable<DDMTemplate>

hashCode

public int hashCode()
Specified by:
hashCode in interface DDMTemplateModel
Overrides:
hashCode in class Object

toCacheModel

public CacheModel<DDMTemplate> toCacheModel()
Description copied from interface: BaseModel
Returns a cache model object for this entity used by entity cache.

Specified by:
toCacheModel in interface BaseModel<DDMTemplate>
Specified by:
toCacheModel in interface DDMTemplateModel
Returns:
the cache model object

toEscapedModel

public DDMTemplate toEscapedModel()
Description copied from interface: BaseModel
Returns a copy of this entity as an escaped model instance by wrapping it with an AutoEscapeBeanHandler.

Specified by:
toEscapedModel in interface BaseModel<DDMTemplate>
Specified by:
toEscapedModel in interface DDMTemplateModel
Returns:
the escaped model instance
See Also:
AutoEscapeBeanHandler

toUnescapedModel

public DDMTemplate toUnescapedModel()
Specified by:
toUnescapedModel in interface BaseModel<DDMTemplate>
Specified by:
toUnescapedModel in interface DDMTemplateModel

toString

public String toString()
Specified by:
toString in interface DDMTemplateModel
Overrides:
toString in class Object

toXmlString

public String toXmlString()
Description copied from interface: BaseModel
Returns the XML representation of this model instance.

Specified by:
toXmlString in interface BaseModel<DDMTemplate>
Specified by:
toXmlString in interface DDMTemplateModel
Returns:
the XML representation of this model instance

persist

public void persist()
             throws SystemException
Description copied from interface: PersistedModel
Updates this model instance in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.

Specified by:
persist in interface PersistedModel
Throws:
SystemException - if a system exception occurred

getSmallImageType

public String getSmallImageType()
                         throws PortalException,
                                SystemException
Specified by:
getSmallImageType in interface DDMTemplate
Throws:
PortalException
SystemException

getWebDavURL

public String getWebDavURL(ThemeDisplay themeDisplay,
                           String webDAVToken)
Returns the WebDAV URL to access the template.

Specified by:
getWebDavURL in interface DDMTemplate
Parameters:
themeDisplay - the theme display needed to build the URL. It can set HTTPS access, the server name, the server port, the path context, and the scope group.
webDAVToken - the WebDAV token for the URL
Returns:
the WebDAV URL

setSmallImageType

public void setSmallImageType(String smallImageType)
Specified by:
setSmallImageType in interface DDMTemplate

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

getStagedModelType

public StagedModelType getStagedModelType()
Specified by:
getStagedModelType in interface StagedModel

getWrappedDDMTemplate

public DDMTemplate getWrappedDDMTemplate()
Deprecated. As of 6.1.0, replaced by getWrappedModel()


getWrappedModel

public DDMTemplate getWrappedModel()
Specified by:
getWrappedModel in interface ModelWrapper<DDMTemplate>

resetOriginalValues

public void resetOriginalValues()
Description copied from interface: BaseModel
Reset all original fields to current values.

Specified by:
resetOriginalValues in interface BaseModel<DDMTemplate>

Liferay 6.2-ce-ga5