Class DDMTemplateWrapper

java.lang.Object
com.liferay.portal.kernel.model.wrapper.BaseModelWrapper<DDMTemplate>
com.liferay.dynamic.data.mapping.model.DDMTemplateWrapper
All Implemented Interfaces:
DDMTemplate, DDMTemplateModel, com.liferay.portal.kernel.model.AttachedModel, com.liferay.portal.kernel.model.AuditedModel, com.liferay.portal.kernel.model.BaseModel<DDMTemplate>, com.liferay.portal.kernel.model.change.tracking.CTModel<DDMTemplate>, com.liferay.portal.kernel.model.ClassedModel, com.liferay.portal.kernel.model.ExternalReferenceCodeModel, com.liferay.portal.kernel.model.GroupedModel, com.liferay.portal.kernel.model.LocalizedModel, com.liferay.portal.kernel.model.ModelWrapper<DDMTemplate>, com.liferay.portal.kernel.model.MVCCModel, com.liferay.portal.kernel.model.PersistedModel, com.liferay.portal.kernel.model.ShardedModel, com.liferay.portal.kernel.model.StagedGroupedModel, com.liferay.portal.kernel.model.StagedModel, com.liferay.portal.kernel.model.TypedModel, Serializable, Cloneable, Comparable<DDMTemplate>

public class DDMTemplateWrapper extends com.liferay.portal.kernel.model.wrapper.BaseModelWrapper<DDMTemplate> implements DDMTemplate, com.liferay.portal.kernel.model.ModelWrapper<DDMTemplate>

This class is a wrapper for DDMTemplate.

See Also:
Generated:
  • Constructor Details

    • DDMTemplateWrapper

      public DDMTemplateWrapper(DDMTemplate ddmTemplate)
  • Method Details

    • getModelAttributes

      public Map<String,Object> getModelAttributes()
      Specified by:
      getModelAttributes in interface com.liferay.portal.kernel.model.BaseModel<DDMTemplate>
    • setModelAttributes

      public void setModelAttributes(Map<String,Object> attributes)
      Specified by:
      setModelAttributes in interface com.liferay.portal.kernel.model.BaseModel<DDMTemplate>
    • cloneWithOriginalValues

      public DDMTemplate cloneWithOriginalValues()
      Specified by:
      cloneWithOriginalValues in interface com.liferay.portal.kernel.model.BaseModel<DDMTemplate>
      Specified by:
      cloneWithOriginalValues in interface DDMTemplateModel
    • getAvailableLanguageIds

      public String[] getAvailableLanguageIds()
      Specified by:
      getAvailableLanguageIds in interface DDMTemplateModel
      Specified by:
      getAvailableLanguageIds in interface com.liferay.portal.kernel.model.LocalizedModel
    • getCacheable

      public boolean getCacheable()
      Returns the cacheable of this ddm template.
      Specified by:
      getCacheable in interface DDMTemplateModel
      Returns:
      the cacheable of this ddm template
    • getClassName

      public String getClassName()
      Returns the fully qualified class name of this ddm template.
      Specified by:
      getClassName in interface DDMTemplateModel
      Specified by:
      getClassName in interface com.liferay.portal.kernel.model.TypedModel
      Returns:
      the fully qualified class name of this ddm template
    • getClassNameId

      public long getClassNameId()
      Returns the class name ID of this ddm template.
      Specified by:
      getClassNameId in interface DDMTemplateModel
      Specified by:
      getClassNameId in interface com.liferay.portal.kernel.model.TypedModel
      Returns:
      the class name ID of this ddm template
    • getClassPK

      public long getClassPK()
      Returns the class pk of this ddm template.
      Specified by:
      getClassPK in interface com.liferay.portal.kernel.model.AttachedModel
      Specified by:
      getClassPK in interface DDMTemplateModel
      Returns:
      the class pk of this ddm template
    • getCompanyId

      public long getCompanyId()
      Returns the company ID of this ddm template.
      Specified by:
      getCompanyId in interface com.liferay.portal.kernel.model.AuditedModel
      Specified by:
      getCompanyId in interface DDMTemplateModel
      Specified by:
      getCompanyId in interface com.liferay.portal.kernel.model.ShardedModel
      Specified by:
      getCompanyId in interface com.liferay.portal.kernel.model.StagedModel
      Returns:
      the company ID of this ddm template
    • getCreateDate

      public Date getCreateDate()
      Returns the create date of this ddm template.
      Specified by:
      getCreateDate in interface com.liferay.portal.kernel.model.AuditedModel
      Specified by:
      getCreateDate in interface DDMTemplateModel
      Specified by:
      getCreateDate in interface com.liferay.portal.kernel.model.StagedModel
      Returns:
      the create date of this ddm template
    • getCtCollectionId

      public long getCtCollectionId()
      Returns the ct collection ID of this ddm template.
      Specified by:
      getCtCollectionId in interface com.liferay.portal.kernel.model.change.tracking.CTModel<DDMTemplate>
      Specified by:
      getCtCollectionId in interface DDMTemplateModel
      Returns:
      the ct collection ID of this ddm template
    • getDefaultLanguageId

      public String getDefaultLanguageId()
      Specified by:
      getDefaultLanguageId in interface DDMTemplateModel
      Specified by:
      getDefaultLanguageId in interface com.liferay.portal.kernel.model.LocalizedModel
    • getDescription

      public String getDescription()
      Returns the description of this ddm template.
      Specified by:
      getDescription in interface DDMTemplateModel
      Returns:
      the description of this ddm template
    • getDescription

      public String getDescription(Locale locale)
      Returns the localized description of this ddm 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 ddm template
    • getDescription

      public String getDescription(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.
      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 ddm 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 ddm 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 ddm template
    • getDescription

      public String getDescription(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.
      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 ddm 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 ddm template.
      Specified by:
      getDescriptionMap in interface DDMTemplateModel
      Returns:
      the locales and localized descriptions of this ddm template
    • getExternalReferenceCode

      public String getExternalReferenceCode()
      Returns the external reference code of this ddm template.
      Specified by:
      getExternalReferenceCode in interface DDMTemplateModel
      Specified by:
      getExternalReferenceCode in interface com.liferay.portal.kernel.model.ExternalReferenceCodeModel
      Returns:
      the external reference code of this ddm template
    • getGroupId

      public long getGroupId()
      Returns the group ID of this ddm template.
      Specified by:
      getGroupId in interface DDMTemplateModel
      Specified by:
      getGroupId in interface com.liferay.portal.kernel.model.GroupedModel
      Returns:
      the group ID of this ddm template
    • getLanguage

      public String getLanguage()
      Returns the language of this ddm template.
      Specified by:
      getLanguage in interface DDMTemplateModel
      Returns:
      the language of this ddm template
    • getLastPublishDate

      public Date getLastPublishDate()
      Returns the last publish date of this ddm template.
      Specified by:
      getLastPublishDate in interface DDMTemplateModel
      Specified by:
      getLastPublishDate in interface com.liferay.portal.kernel.model.StagedGroupedModel
      Returns:
      the last publish date of this ddm template
    • getLatestTemplateVersion

      public DDMTemplateVersion getLatestTemplateVersion() throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getLatestTemplateVersion in interface DDMTemplate
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getMode

      public String getMode()
      Returns the mode of this ddm template.
      Specified by:
      getMode in interface DDMTemplateModel
      Returns:
      the mode of this ddm template
    • getModifiedDate

      public Date getModifiedDate()
      Returns the modified date of this ddm template.
      Specified by:
      getModifiedDate in interface com.liferay.portal.kernel.model.AuditedModel
      Specified by:
      getModifiedDate in interface DDMTemplateModel
      Specified by:
      getModifiedDate in interface com.liferay.portal.kernel.model.StagedModel
      Returns:
      the modified date of this ddm template
    • getMvccVersion

      public long getMvccVersion()
      Returns the mvcc version of this ddm template.
      Specified by:
      getMvccVersion in interface DDMTemplateModel
      Specified by:
      getMvccVersion in interface com.liferay.portal.kernel.model.MVCCModel
      Returns:
      the mvcc version of this ddm template
    • getName

      public String getName()
      Returns the name of this ddm template.
      Specified by:
      getName in interface DDMTemplateModel
      Returns:
      the name of this ddm template
    • getName

      public String getName(Locale locale)
      Returns the localized name of this ddm 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 ddm template
    • getName

      public String getName(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.
      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 ddm 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 ddm 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 ddm template
    • getName

      public String getName(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.
      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 ddm 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 ddm template.
      Specified by:
      getNameMap in interface DDMTemplateModel
      Returns:
      the locales and localized names of this ddm template
    • getPrimaryKey

      public long getPrimaryKey()
      Returns the primary key of this ddm template.
      Specified by:
      getPrimaryKey in interface com.liferay.portal.kernel.model.change.tracking.CTModel<DDMTemplate>
      Specified by:
      getPrimaryKey in interface DDMTemplateModel
      Returns:
      the primary key of this ddm template
    • getResourceClassName

      public String getResourceClassName()
      Specified by:
      getResourceClassName in interface DDMTemplate
    • getResourceClassNameId

      public long getResourceClassNameId()
      Returns the resource class name ID of this ddm template.
      Specified by:
      getResourceClassNameId in interface DDMTemplateModel
      Returns:
      the resource class name ID of this ddm template
    • getScript

      public String getScript()
      Returns the script of this ddm template.
      Specified by:
      getScript in interface DDMTemplateModel
      Returns:
      the script of this ddm template
    • getSmallImage

      public boolean getSmallImage()
      Returns the small image of this ddm template.
      Specified by:
      getSmallImage in interface DDMTemplateModel
      Returns:
      the small image of this ddm template
    • getSmallImageId

      public long getSmallImageId()
      Returns the small image ID of this ddm template.
      Specified by:
      getSmallImageId in interface DDMTemplateModel
      Returns:
      the small image ID of this ddm template
    • getSmallImageType

      public String getSmallImageType() throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getSmallImageType in interface DDMTemplate
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getSmallImageURL

      public String getSmallImageURL()
      Returns the small image url of this ddm template.
      Specified by:
      getSmallImageURL in interface DDMTemplateModel
      Returns:
      the small image url of this ddm template
    • getTemplateId

      public long getTemplateId()
      Returns the template ID of this ddm template.
      Specified by:
      getTemplateId in interface DDMTemplateModel
      Returns:
      the template ID of this ddm template
    • getTemplateImageURL

      public String getTemplateImageURL(com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay)
      Specified by:
      getTemplateImageURL in interface DDMTemplate
    • getTemplateKey

      public String getTemplateKey()
      Returns the template key of this ddm template.
      Specified by:
      getTemplateKey in interface DDMTemplateModel
      Returns:
      the template key of this ddm template
    • getTemplateVersion

      public DDMTemplateVersion getTemplateVersion() throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getTemplateVersion in interface DDMTemplate
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getType

      public String getType()
      Returns the type of this ddm template.
      Specified by:
      getType in interface DDMTemplateModel
      Returns:
      the type of this ddm template
    • getUserId

      public long getUserId()
      Returns the user ID of this ddm template.
      Specified by:
      getUserId in interface com.liferay.portal.kernel.model.AuditedModel
      Specified by:
      getUserId in interface DDMTemplateModel
      Returns:
      the user ID of this ddm template
    • getUserName

      public String getUserName()
      Returns the user name of this ddm template.
      Specified by:
      getUserName in interface com.liferay.portal.kernel.model.AuditedModel
      Specified by:
      getUserName in interface DDMTemplateModel
      Returns:
      the user name of this ddm template
    • getUserUuid

      public String getUserUuid()
      Returns the user uuid of this ddm template.
      Specified by:
      getUserUuid in interface com.liferay.portal.kernel.model.AuditedModel
      Specified by:
      getUserUuid in interface DDMTemplateModel
      Returns:
      the user uuid of this ddm template
    • getUuid

      public String getUuid()
      Returns the uuid of this ddm template.
      Specified by:
      getUuid in interface DDMTemplateModel
      Specified by:
      getUuid in interface com.liferay.portal.kernel.model.StagedModel
      Returns:
      the uuid of this ddm template
    • getVersion

      public String getVersion()
      Returns the version of this ddm template.
      Specified by:
      getVersion in interface DDMTemplateModel
      Returns:
      the version of this ddm template
    • getVersionUserId

      public long getVersionUserId()
      Returns the version user ID of this ddm template.
      Specified by:
      getVersionUserId in interface DDMTemplateModel
      Returns:
      the version user ID of this ddm template
    • getVersionUserName

      public String getVersionUserName()
      Returns the version user name of this ddm template.
      Specified by:
      getVersionUserName in interface DDMTemplateModel
      Returns:
      the version user name of this ddm template
    • getVersionUserUuid

      public String getVersionUserUuid()
      Returns the version user uuid of this ddm template.
      Specified by:
      getVersionUserUuid in interface DDMTemplateModel
      Returns:
      the version user uuid of this ddm template
    • getWebDavURL

      public String getWebDavURL(com.liferay.portal.kernel.theme.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
    • isCacheable

      public boolean isCacheable()
      Returns true if this ddm template is cacheable.
      Specified by:
      isCacheable in interface DDMTemplateModel
      Returns:
      true if this ddm template is cacheable; false otherwise
    • isSmallImage

      public boolean isSmallImage()
      Returns true if this ddm template is small image.
      Specified by:
      isSmallImage in interface DDMTemplateModel
      Returns:
      true if this ddm template is small image; false otherwise
    • persist

      public void persist()
      Specified by:
      persist in interface com.liferay.portal.kernel.model.PersistedModel
    • prepareLocalizedFieldsForImport

      public void prepareLocalizedFieldsForImport() throws com.liferay.portal.kernel.exception.LocaleException
      Specified by:
      prepareLocalizedFieldsForImport in interface DDMTemplateModel
      Specified by:
      prepareLocalizedFieldsForImport in interface com.liferay.portal.kernel.model.LocalizedModel
      Throws:
      com.liferay.portal.kernel.exception.LocaleException
    • prepareLocalizedFieldsForImport

      public void prepareLocalizedFieldsForImport(Locale defaultImportLocale) throws com.liferay.portal.kernel.exception.LocaleException
      Specified by:
      prepareLocalizedFieldsForImport in interface DDMTemplateModel
      Specified by:
      prepareLocalizedFieldsForImport in interface com.liferay.portal.kernel.model.LocalizedModel
      Throws:
      com.liferay.portal.kernel.exception.LocaleException
    • setCacheable

      public void setCacheable(boolean cacheable)
      Sets whether this ddm template is cacheable.
      Specified by:
      setCacheable in interface DDMTemplateModel
      Parameters:
      cacheable - the cacheable of this ddm template
    • setClassName

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

      public void setClassNameId(long classNameId)
      Sets the class name ID of this ddm template.
      Specified by:
      setClassNameId in interface DDMTemplateModel
      Specified by:
      setClassNameId in interface com.liferay.portal.kernel.model.TypedModel
      Parameters:
      classNameId - the class name ID of this ddm template
    • setClassPK

      public void setClassPK(long classPK)
      Sets the class pk of this ddm template.
      Specified by:
      setClassPK in interface com.liferay.portal.kernel.model.AttachedModel
      Specified by:
      setClassPK in interface DDMTemplateModel
      Parameters:
      classPK - the class pk of this ddm template
    • setCompanyId

      public void setCompanyId(long companyId)
      Sets the company ID of this ddm template.
      Specified by:
      setCompanyId in interface com.liferay.portal.kernel.model.AuditedModel
      Specified by:
      setCompanyId in interface DDMTemplateModel
      Specified by:
      setCompanyId in interface com.liferay.portal.kernel.model.ShardedModel
      Specified by:
      setCompanyId in interface com.liferay.portal.kernel.model.StagedModel
      Parameters:
      companyId - the company ID of this ddm template
    • setCreateDate

      public void setCreateDate(Date createDate)
      Sets the create date of this ddm template.
      Specified by:
      setCreateDate in interface com.liferay.portal.kernel.model.AuditedModel
      Specified by:
      setCreateDate in interface DDMTemplateModel
      Specified by:
      setCreateDate in interface com.liferay.portal.kernel.model.StagedModel
      Parameters:
      createDate - the create date of this ddm template
    • setCtCollectionId

      public void setCtCollectionId(long ctCollectionId)
      Sets the ct collection ID of this ddm template.
      Specified by:
      setCtCollectionId in interface com.liferay.portal.kernel.model.change.tracking.CTModel<DDMTemplate>
      Specified by:
      setCtCollectionId in interface DDMTemplateModel
      Parameters:
      ctCollectionId - the ct collection ID of this ddm template
    • setDescription

      public void setDescription(String description)
      Sets the description of this ddm template.
      Specified by:
      setDescription in interface DDMTemplateModel
      Parameters:
      description - the description of this ddm template
    • setDescription

      public void setDescription(String description, Locale locale)
      Sets the localized description of this ddm template in the language.
      Specified by:
      setDescription in interface DDMTemplateModel
      Parameters:
      description - the localized description of this ddm template
      locale - the locale of the language
    • setDescription

      public void setDescription(String description, Locale locale, Locale defaultLocale)
      Sets the localized description of this ddm template in the language, and sets the default locale.
      Specified by:
      setDescription in interface DDMTemplateModel
      Parameters:
      description - the localized description of this ddm 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 ddm template from the map of locales and localized descriptions.
      Specified by:
      setDescriptionMap in interface DDMTemplateModel
      Parameters:
      descriptionMap - the locales and localized descriptions of this ddm template
    • setDescriptionMap

      public void setDescriptionMap(Map<Locale,String> descriptionMap, Locale defaultLocale)
      Sets the localized descriptions of this ddm 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 ddm template
      defaultLocale - the default locale
    • setExternalReferenceCode

      public void setExternalReferenceCode(String externalReferenceCode)
      Sets the external reference code of this ddm template.
      Specified by:
      setExternalReferenceCode in interface DDMTemplateModel
      Specified by:
      setExternalReferenceCode in interface com.liferay.portal.kernel.model.ExternalReferenceCodeModel
      Parameters:
      externalReferenceCode - the external reference code of this ddm template
    • setGroupId

      public void setGroupId(long groupId)
      Sets the group ID of this ddm template.
      Specified by:
      setGroupId in interface DDMTemplateModel
      Specified by:
      setGroupId in interface com.liferay.portal.kernel.model.GroupedModel
      Parameters:
      groupId - the group ID of this ddm template
    • setLanguage

      public void setLanguage(String language)
      Sets the language of this ddm template.
      Specified by:
      setLanguage in interface DDMTemplateModel
      Parameters:
      language - the language of this ddm template
    • setLastPublishDate

      public void setLastPublishDate(Date lastPublishDate)
      Sets the last publish date of this ddm template.
      Specified by:
      setLastPublishDate in interface DDMTemplateModel
      Specified by:
      setLastPublishDate in interface com.liferay.portal.kernel.model.StagedGroupedModel
      Parameters:
      lastPublishDate - the last publish date of this ddm template
    • setMode

      public void setMode(String mode)
      Sets the mode of this ddm template.
      Specified by:
      setMode in interface DDMTemplateModel
      Parameters:
      mode - the mode of this ddm template
    • setModifiedDate

      public void setModifiedDate(Date modifiedDate)
      Sets the modified date of this ddm template.
      Specified by:
      setModifiedDate in interface com.liferay.portal.kernel.model.AuditedModel
      Specified by:
      setModifiedDate in interface DDMTemplateModel
      Specified by:
      setModifiedDate in interface com.liferay.portal.kernel.model.StagedModel
      Parameters:
      modifiedDate - the modified date of this ddm template
    • setMvccVersion

      public void setMvccVersion(long mvccVersion)
      Sets the mvcc version of this ddm template.
      Specified by:
      setMvccVersion in interface DDMTemplateModel
      Specified by:
      setMvccVersion in interface com.liferay.portal.kernel.model.MVCCModel
      Parameters:
      mvccVersion - the mvcc version of this ddm template
    • setName

      public void setName(String name)
      Sets the name of this ddm template.
      Specified by:
      setName in interface DDMTemplateModel
      Parameters:
      name - the name of this ddm template
    • setName

      public void setName(String name, Locale locale)
      Sets the localized name of this ddm template in the language.
      Specified by:
      setName in interface DDMTemplateModel
      Parameters:
      name - the localized name of this ddm template
      locale - the locale of the language
    • setName

      public void setName(String name, Locale locale, Locale defaultLocale)
      Sets the localized name of this ddm template in the language, and sets the default locale.
      Specified by:
      setName in interface DDMTemplateModel
      Parameters:
      name - the localized name of this ddm 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 ddm template from the map of locales and localized names.
      Specified by:
      setNameMap in interface DDMTemplateModel
      Parameters:
      nameMap - the locales and localized names of this ddm template
    • setNameMap

      public void setNameMap(Map<Locale,String> nameMap, Locale defaultLocale)
      Sets the localized names of this ddm 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 ddm template
      defaultLocale - the default locale
    • setPrimaryKey

      public void setPrimaryKey(long primaryKey)
      Sets the primary key of this ddm template.
      Specified by:
      setPrimaryKey in interface com.liferay.portal.kernel.model.change.tracking.CTModel<DDMTemplate>
      Specified by:
      setPrimaryKey in interface DDMTemplateModel
      Parameters:
      primaryKey - the primary key of this ddm template
    • setResourceClassName

      public void setResourceClassName(String resourceClassName)
      Specified by:
      setResourceClassName in interface DDMTemplate
    • setResourceClassNameId

      public void setResourceClassNameId(long resourceClassNameId)
      Sets the resource class name ID of this ddm template.
      Specified by:
      setResourceClassNameId in interface DDMTemplateModel
      Parameters:
      resourceClassNameId - the resource class name ID of this ddm template
    • setScript

      public void setScript(String script)
      Sets the script of this ddm template.
      Specified by:
      setScript in interface DDMTemplateModel
      Parameters:
      script - the script of this ddm template
    • setSmallImage

      public void setSmallImage(boolean smallImage)
      Sets whether this ddm template is small image.
      Specified by:
      setSmallImage in interface DDMTemplateModel
      Parameters:
      smallImage - the small image of this ddm template
    • setSmallImageId

      public void setSmallImageId(long smallImageId)
      Sets the small image ID of this ddm template.
      Specified by:
      setSmallImageId in interface DDMTemplateModel
      Parameters:
      smallImageId - the small image ID of this ddm template
    • setSmallImageType

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

      public void setSmallImageURL(String smallImageURL)
      Sets the small image url of this ddm template.
      Specified by:
      setSmallImageURL in interface DDMTemplateModel
      Parameters:
      smallImageURL - the small image url of this ddm template
    • setTemplateId

      public void setTemplateId(long templateId)
      Sets the template ID of this ddm template.
      Specified by:
      setTemplateId in interface DDMTemplateModel
      Parameters:
      templateId - the template ID of this ddm template
    • setTemplateKey

      public void setTemplateKey(String templateKey)
      Sets the template key of this ddm template.
      Specified by:
      setTemplateKey in interface DDMTemplateModel
      Parameters:
      templateKey - the template key of this ddm template
    • setType

      public void setType(String type)
      Sets the type of this ddm template.
      Specified by:
      setType in interface DDMTemplateModel
      Parameters:
      type - the type of this ddm template
    • setUserId

      public void setUserId(long userId)
      Sets the user ID of this ddm template.
      Specified by:
      setUserId in interface com.liferay.portal.kernel.model.AuditedModel
      Specified by:
      setUserId in interface DDMTemplateModel
      Parameters:
      userId - the user ID of this ddm template
    • setUserName

      public void setUserName(String userName)
      Sets the user name of this ddm template.
      Specified by:
      setUserName in interface com.liferay.portal.kernel.model.AuditedModel
      Specified by:
      setUserName in interface DDMTemplateModel
      Parameters:
      userName - the user name of this ddm template
    • setUserUuid

      public void setUserUuid(String userUuid)
      Sets the user uuid of this ddm template.
      Specified by:
      setUserUuid in interface com.liferay.portal.kernel.model.AuditedModel
      Specified by:
      setUserUuid in interface DDMTemplateModel
      Parameters:
      userUuid - the user uuid of this ddm template
    • setUuid

      public void setUuid(String uuid)
      Sets the uuid of this ddm template.
      Specified by:
      setUuid in interface DDMTemplateModel
      Specified by:
      setUuid in interface com.liferay.portal.kernel.model.StagedModel
      Parameters:
      uuid - the uuid of this ddm template
    • setVersion

      public void setVersion(String version)
      Sets the version of this ddm template.
      Specified by:
      setVersion in interface DDMTemplateModel
      Parameters:
      version - the version of this ddm template
    • setVersionUserId

      public void setVersionUserId(long versionUserId)
      Sets the version user ID of this ddm template.
      Specified by:
      setVersionUserId in interface DDMTemplateModel
      Parameters:
      versionUserId - the version user ID of this ddm template
    • setVersionUserName

      public void setVersionUserName(String versionUserName)
      Sets the version user name of this ddm template.
      Specified by:
      setVersionUserName in interface DDMTemplateModel
      Parameters:
      versionUserName - the version user name of this ddm template
    • setVersionUserUuid

      public void setVersionUserUuid(String versionUserUuid)
      Sets the version user uuid of this ddm template.
      Specified by:
      setVersionUserUuid in interface DDMTemplateModel
      Parameters:
      versionUserUuid - the version user uuid of this ddm template
    • toXmlString

      public String toXmlString()
      Specified by:
      toXmlString in interface DDMTemplateModel
    • getAttributeGetterFunctions

      public Map<String,Function<DDMTemplate,Object>> getAttributeGetterFunctions()
      Specified by:
      getAttributeGetterFunctions in interface com.liferay.portal.kernel.model.BaseModel<DDMTemplate>
    • getAttributeSetterBiConsumers

      public Map<String,BiConsumer<DDMTemplate,Object>> getAttributeSetterBiConsumers()
      Specified by:
      getAttributeSetterBiConsumers in interface com.liferay.portal.kernel.model.BaseModel<DDMTemplate>
    • getStagedModelType

      public com.liferay.exportimport.kernel.lar.StagedModelType getStagedModelType()
      Specified by:
      getStagedModelType in interface com.liferay.portal.kernel.model.StagedModel
    • wrap

      protected DDMTemplateWrapper wrap(DDMTemplate ddmTemplate)
      Specified by:
      wrap in class com.liferay.portal.kernel.model.wrapper.BaseModelWrapper<DDMTemplate>