Class LayoutRevisionWrapper

Object
com.liferay.portal.kernel.model.wrapper.BaseModelWrapper<LayoutRevision>
com.liferay.portal.kernel.model.LayoutRevisionWrapper
All Implemented Interfaces:
AuditedModel, BaseModel<LayoutRevision>, ClassedModel, GroupedModel, LayoutRevision, LayoutRevisionModel, LocalizedModel, ModelWrapper<LayoutRevision>, MVCCModel, PersistedModel, ShardedModel, WorkflowedModel, Serializable, Cloneable, Comparable<LayoutRevision>

public class LayoutRevisionWrapper extends BaseModelWrapper<LayoutRevision> implements LayoutRevision, ModelWrapper<LayoutRevision>

This class is a wrapper for LayoutRevision.

Author:
Brian Wing Shun Chan
See Also:
{$generated.description}
  • Constructor Details

    • LayoutRevisionWrapper

      public LayoutRevisionWrapper(LayoutRevision layoutRevision)
  • Method Details

    • getModelAttributes

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

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

      public LayoutRevision cloneWithOriginalValues()
      Specified by:
      cloneWithOriginalValues in interface BaseModel<LayoutRevision>
      Specified by:
      cloneWithOriginalValues in interface LayoutRevisionModel
    • getAvailableLanguageIds

      public String[] getAvailableLanguageIds()
      Specified by:
      getAvailableLanguageIds in interface LayoutRevisionModel
      Specified by:
      getAvailableLanguageIds in interface LocalizedModel
    • getBreadcrumb

      public String getBreadcrumb(Locale locale) throws PortalException
      Specified by:
      getBreadcrumb in interface LayoutRevision
      Throws:
      PortalException
    • getChildren

      public List<LayoutRevision> getChildren()
      Specified by:
      getChildren in interface LayoutRevision
    • getColorScheme

      public ColorScheme getColorScheme() throws PortalException
      Specified by:
      getColorScheme in interface LayoutRevision
      Throws:
      PortalException
    • getColorSchemeId

      public String getColorSchemeId()
      Returns the color scheme ID of this layout revision.
      Specified by:
      getColorSchemeId in interface LayoutRevisionModel
      Returns:
      the color scheme ID of this layout revision
    • getCompanyId

      public long getCompanyId()
      Returns the company ID of this layout revision.
      Specified by:
      getCompanyId in interface AuditedModel
      Specified by:
      getCompanyId in interface LayoutRevisionModel
      Specified by:
      getCompanyId in interface ShardedModel
      Returns:
      the company ID of this layout revision
    • getCreateDate

      public Date getCreateDate()
      Returns the create date of this layout revision.
      Specified by:
      getCreateDate in interface AuditedModel
      Specified by:
      getCreateDate in interface LayoutRevisionModel
      Returns:
      the create date of this layout revision
    • getCss

      public String getCss()
      Returns the css of this layout revision.
      Specified by:
      getCss in interface LayoutRevisionModel
      Returns:
      the css of this layout revision
    • getCssText

      public String getCssText() throws PortalException
      Specified by:
      getCssText in interface LayoutRevision
      Throws:
      PortalException
    • getDefaultLanguageId

      public String getDefaultLanguageId()
      Specified by:
      getDefaultLanguageId in interface LayoutRevisionModel
      Specified by:
      getDefaultLanguageId in interface LocalizedModel
    • getDescription

      public String getDescription()
      Returns the description of this layout revision.
      Specified by:
      getDescription in interface LayoutRevisionModel
      Returns:
      the description of this layout revision
    • getDescription

      public String getDescription(Locale locale)
      Returns the localized description of this layout revision in the language. Uses the default language if no localization exists for the requested language.
      Specified by:
      getDescription in interface LayoutRevisionModel
      Parameters:
      locale - the locale of the language
      Returns:
      the localized description of this layout revision
    • getDescription

      public String getDescription(Locale locale, boolean useDefault)
      Returns the localized description of this layout revision in the language, optionally using the default language if no localization exists for the requested language.
      Specified by:
      getDescription in interface LayoutRevisionModel
      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 layout revision. 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 layout revision in the language. Uses the default language if no localization exists for the requested language.
      Specified by:
      getDescription in interface LayoutRevisionModel
      Parameters:
      languageId - the ID of the language
      Returns:
      the localized description of this layout revision
    • getDescription

      public String getDescription(String languageId, boolean useDefault)
      Returns the localized description of this layout revision in the language, optionally using the default language if no localization exists for the requested language.
      Specified by:
      getDescription in interface LayoutRevisionModel
      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 layout revision
    • getDescriptionCurrentLanguageId

      public String getDescriptionCurrentLanguageId()
      Specified by:
      getDescriptionCurrentLanguageId in interface LayoutRevisionModel
    • getDescriptionCurrentValue

      public String getDescriptionCurrentValue()
      Specified by:
      getDescriptionCurrentValue in interface LayoutRevisionModel
    • getDescriptionMap

      public Map<Locale,String> getDescriptionMap()
      Returns a map of the locales and localized descriptions of this layout revision.
      Specified by:
      getDescriptionMap in interface LayoutRevisionModel
      Returns:
      the locales and localized descriptions of this layout revision
    • getGroup

      public Group getGroup()
      Specified by:
      getGroup in interface LayoutRevision
    • getGroupId

      public long getGroupId()
      Returns the group ID of this layout revision.
      Specified by:
      getGroupId in interface GroupedModel
      Specified by:
      getGroupId in interface LayoutRevisionModel
      Returns:
      the group ID of this layout revision
    • getHead

      public boolean getHead()
      Returns the head of this layout revision.
      Specified by:
      getHead in interface LayoutRevisionModel
      Returns:
      the head of this layout revision
    • getHTMLTitle

      public String getHTMLTitle(Locale locale)
      Specified by:
      getHTMLTitle in interface LayoutRevision
    • getHTMLTitle

      public String getHTMLTitle(String localeLanguageId)
      Specified by:
      getHTMLTitle in interface LayoutRevision
    • getIconImage

      public boolean getIconImage()
      Specified by:
      getIconImage in interface LayoutRevision
    • getIconImageId

      public long getIconImageId()
      Returns the icon image ID of this layout revision.
      Specified by:
      getIconImageId in interface LayoutRevisionModel
      Returns:
      the icon image ID of this layout revision
    • getKeywords

      public String getKeywords()
      Returns the keywords of this layout revision.
      Specified by:
      getKeywords in interface LayoutRevisionModel
      Returns:
      the keywords of this layout revision
    • getKeywords

      public String getKeywords(Locale locale)
      Returns the localized keywords of this layout revision in the language. Uses the default language if no localization exists for the requested language.
      Specified by:
      getKeywords in interface LayoutRevisionModel
      Parameters:
      locale - the locale of the language
      Returns:
      the localized keywords of this layout revision
    • getKeywords

      public String getKeywords(Locale locale, boolean useDefault)
      Returns the localized keywords of this layout revision in the language, optionally using the default language if no localization exists for the requested language.
      Specified by:
      getKeywords in interface LayoutRevisionModel
      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 keywords of this layout revision. If useDefault is false and no localization exists for the requested language, an empty string will be returned.
    • getKeywords

      public String getKeywords(String languageId)
      Returns the localized keywords of this layout revision in the language. Uses the default language if no localization exists for the requested language.
      Specified by:
      getKeywords in interface LayoutRevisionModel
      Parameters:
      languageId - the ID of the language
      Returns:
      the localized keywords of this layout revision
    • getKeywords

      public String getKeywords(String languageId, boolean useDefault)
      Returns the localized keywords of this layout revision in the language, optionally using the default language if no localization exists for the requested language.
      Specified by:
      getKeywords in interface LayoutRevisionModel
      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 keywords of this layout revision
    • getKeywordsCurrentLanguageId

      public String getKeywordsCurrentLanguageId()
      Specified by:
      getKeywordsCurrentLanguageId in interface LayoutRevisionModel
    • getKeywordsCurrentValue

      public String getKeywordsCurrentValue()
      Specified by:
      getKeywordsCurrentValue in interface LayoutRevisionModel
    • getKeywordsMap

      public Map<Locale,String> getKeywordsMap()
      Returns a map of the locales and localized keywordses of this layout revision.
      Specified by:
      getKeywordsMap in interface LayoutRevisionModel
      Returns:
      the locales and localized keywordses of this layout revision
    • getLayoutBranch

      public LayoutBranch getLayoutBranch() throws PortalException
      Specified by:
      getLayoutBranch in interface LayoutRevision
      Throws:
      PortalException
    • getLayoutBranchId

      public long getLayoutBranchId()
      Returns the layout branch ID of this layout revision.
      Specified by:
      getLayoutBranchId in interface LayoutRevisionModel
      Returns:
      the layout branch ID of this layout revision
    • getLayoutRevisionId

      public long getLayoutRevisionId()
      Returns the layout revision ID of this layout revision.
      Specified by:
      getLayoutRevisionId in interface LayoutRevisionModel
      Returns:
      the layout revision ID of this layout revision
    • getLayoutSet

      public LayoutSet getLayoutSet() throws PortalException
      Specified by:
      getLayoutSet in interface LayoutRevision
      Throws:
      PortalException
    • getLayoutSetBranchId

      public long getLayoutSetBranchId()
      Returns the layout set branch ID of this layout revision.
      Specified by:
      getLayoutSetBranchId in interface LayoutRevisionModel
      Returns:
      the layout set branch ID of this layout revision
    • getMajor

      public boolean getMajor()
      Returns the major of this layout revision.
      Specified by:
      getMajor in interface LayoutRevisionModel
      Returns:
      the major of this layout revision
    • getModifiedDate

      public Date getModifiedDate()
      Returns the modified date of this layout revision.
      Specified by:
      getModifiedDate in interface AuditedModel
      Specified by:
      getModifiedDate in interface LayoutRevisionModel
      Returns:
      the modified date of this layout revision
    • getMvccVersion

      public long getMvccVersion()
      Returns the mvcc version of this layout revision.
      Specified by:
      getMvccVersion in interface LayoutRevisionModel
      Specified by:
      getMvccVersion in interface MVCCModel
      Returns:
      the mvcc version of this layout revision
    • getName

      public String getName()
      Returns the name of this layout revision.
      Specified by:
      getName in interface LayoutRevisionModel
      Returns:
      the name of this layout revision
    • getName

      public String getName(Locale locale)
      Returns the localized name of this layout revision in the language. Uses the default language if no localization exists for the requested language.
      Specified by:
      getName in interface LayoutRevisionModel
      Parameters:
      locale - the locale of the language
      Returns:
      the localized name of this layout revision
    • getName

      public String getName(Locale locale, boolean useDefault)
      Returns the localized name of this layout revision in the language, optionally using the default language if no localization exists for the requested language.
      Specified by:
      getName in interface LayoutRevisionModel
      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 layout revision. 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 layout revision in the language. Uses the default language if no localization exists for the requested language.
      Specified by:
      getName in interface LayoutRevisionModel
      Parameters:
      languageId - the ID of the language
      Returns:
      the localized name of this layout revision
    • getName

      public String getName(String languageId, boolean useDefault)
      Returns the localized name of this layout revision in the language, optionally using the default language if no localization exists for the requested language.
      Specified by:
      getName in interface LayoutRevisionModel
      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 layout revision
    • getNameCurrentLanguageId

      public String getNameCurrentLanguageId()
      Specified by:
      getNameCurrentLanguageId in interface LayoutRevisionModel
    • getNameCurrentValue

      public String getNameCurrentValue()
      Specified by:
      getNameCurrentValue in interface LayoutRevisionModel
    • getNameMap

      public Map<Locale,String> getNameMap()
      Returns a map of the locales and localized names of this layout revision.
      Specified by:
      getNameMap in interface LayoutRevisionModel
      Returns:
      the locales and localized names of this layout revision
    • getParentLayoutRevisionId

      public long getParentLayoutRevisionId()
      Returns the parent layout revision ID of this layout revision.
      Specified by:
      getParentLayoutRevisionId in interface LayoutRevisionModel
      Returns:
      the parent layout revision ID of this layout revision
    • getPlid

      public long getPlid()
      Returns the plid of this layout revision.
      Specified by:
      getPlid in interface LayoutRevisionModel
      Returns:
      the plid of this layout revision
    • getPrimaryKey

      public long getPrimaryKey()
      Returns the primary key of this layout revision.
      Specified by:
      getPrimaryKey in interface LayoutRevisionModel
      Returns:
      the primary key of this layout revision
    • getPrivateLayout

      public boolean getPrivateLayout()
      Returns the private layout of this layout revision.
      Specified by:
      getPrivateLayout in interface LayoutRevisionModel
      Returns:
      the private layout of this layout revision
    • getRegularURL

      public String getRegularURL(javax.servlet.http.HttpServletRequest httpServletRequest) throws PortalException
      Specified by:
      getRegularURL in interface LayoutRevision
      Throws:
      PortalException
    • getRobots

      public String getRobots()
      Returns the robots of this layout revision.
      Specified by:
      getRobots in interface LayoutRevisionModel
      Returns:
      the robots of this layout revision
    • getRobots

      public String getRobots(Locale locale)
      Returns the localized robots of this layout revision in the language. Uses the default language if no localization exists for the requested language.
      Specified by:
      getRobots in interface LayoutRevisionModel
      Parameters:
      locale - the locale of the language
      Returns:
      the localized robots of this layout revision
    • getRobots

      public String getRobots(Locale locale, boolean useDefault)
      Returns the localized robots of this layout revision in the language, optionally using the default language if no localization exists for the requested language.
      Specified by:
      getRobots in interface LayoutRevisionModel
      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 robots of this layout revision. If useDefault is false and no localization exists for the requested language, an empty string will be returned.
    • getRobots

      public String getRobots(String languageId)
      Returns the localized robots of this layout revision in the language. Uses the default language if no localization exists for the requested language.
      Specified by:
      getRobots in interface LayoutRevisionModel
      Parameters:
      languageId - the ID of the language
      Returns:
      the localized robots of this layout revision
    • getRobots

      public String getRobots(String languageId, boolean useDefault)
      Returns the localized robots of this layout revision in the language, optionally using the default language if no localization exists for the requested language.
      Specified by:
      getRobots in interface LayoutRevisionModel
      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 robots of this layout revision
    • getRobotsCurrentLanguageId

      public String getRobotsCurrentLanguageId()
      Specified by:
      getRobotsCurrentLanguageId in interface LayoutRevisionModel
    • getRobotsCurrentValue

      public String getRobotsCurrentValue()
      Specified by:
      getRobotsCurrentValue in interface LayoutRevisionModel
    • getRobotsMap

      public Map<Locale,String> getRobotsMap()
      Returns a map of the locales and localized robotses of this layout revision.
      Specified by:
      getRobotsMap in interface LayoutRevisionModel
      Returns:
      the locales and localized robotses of this layout revision
    • getStatus

      public int getStatus()
      Returns the status of this layout revision.
      Specified by:
      getStatus in interface LayoutRevisionModel
      Specified by:
      getStatus in interface WorkflowedModel
      Returns:
      the status of this layout revision
    • getStatusByUserId

      public long getStatusByUserId()
      Returns the status by user ID of this layout revision.
      Specified by:
      getStatusByUserId in interface LayoutRevisionModel
      Specified by:
      getStatusByUserId in interface WorkflowedModel
      Returns:
      the status by user ID of this layout revision
    • getStatusByUserName

      public String getStatusByUserName()
      Returns the status by user name of this layout revision.
      Specified by:
      getStatusByUserName in interface LayoutRevisionModel
      Specified by:
      getStatusByUserName in interface WorkflowedModel
      Returns:
      the status by user name of this layout revision
    • getStatusByUserUuid

      public String getStatusByUserUuid()
      Returns the status by user uuid of this layout revision.
      Specified by:
      getStatusByUserUuid in interface LayoutRevisionModel
      Specified by:
      getStatusByUserUuid in interface WorkflowedModel
      Returns:
      the status by user uuid of this layout revision
    • getStatusDate

      public Date getStatusDate()
      Returns the status date of this layout revision.
      Specified by:
      getStatusDate in interface LayoutRevisionModel
      Specified by:
      getStatusDate in interface WorkflowedModel
      Returns:
      the status date of this layout revision
    • getTarget

      public String getTarget()
      Specified by:
      getTarget in interface LayoutRevision
    • getTheme

      public Theme getTheme() throws PortalException
      Specified by:
      getTheme in interface LayoutRevision
      Throws:
      PortalException
    • getThemeId

      public String getThemeId()
      Returns the theme ID of this layout revision.
      Specified by:
      getThemeId in interface LayoutRevisionModel
      Returns:
      the theme ID of this layout revision
    • getThemeSetting

      public String getThemeSetting(String key, String device)
      Specified by:
      getThemeSetting in interface LayoutRevision
    • getTitle

      public String getTitle()
      Returns the title of this layout revision.
      Specified by:
      getTitle in interface LayoutRevisionModel
      Returns:
      the title of this layout revision
    • getTitle

      public String getTitle(Locale locale)
      Returns the localized title of this layout revision in the language. Uses the default language if no localization exists for the requested language.
      Specified by:
      getTitle in interface LayoutRevisionModel
      Parameters:
      locale - the locale of the language
      Returns:
      the localized title of this layout revision
    • getTitle

      public String getTitle(Locale locale, boolean useDefault)
      Returns the localized title of this layout revision in the language, optionally using the default language if no localization exists for the requested language.
      Specified by:
      getTitle in interface LayoutRevisionModel
      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 title of this layout revision. If useDefault is false and no localization exists for the requested language, an empty string will be returned.
    • getTitle

      public String getTitle(String languageId)
      Returns the localized title of this layout revision in the language. Uses the default language if no localization exists for the requested language.
      Specified by:
      getTitle in interface LayoutRevisionModel
      Parameters:
      languageId - the ID of the language
      Returns:
      the localized title of this layout revision
    • getTitle

      public String getTitle(String languageId, boolean useDefault)
      Returns the localized title of this layout revision in the language, optionally using the default language if no localization exists for the requested language.
      Specified by:
      getTitle in interface LayoutRevisionModel
      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 title of this layout revision
    • getTitleCurrentLanguageId

      public String getTitleCurrentLanguageId()
      Specified by:
      getTitleCurrentLanguageId in interface LayoutRevisionModel
    • getTitleCurrentValue

      public String getTitleCurrentValue()
      Specified by:
      getTitleCurrentValue in interface LayoutRevisionModel
    • getTitleMap

      public Map<Locale,String> getTitleMap()
      Returns a map of the locales and localized titles of this layout revision.
      Specified by:
      getTitleMap in interface LayoutRevisionModel
      Returns:
      the locales and localized titles of this layout revision
    • getTypeSettings

      public String getTypeSettings()
      Returns the type settings of this layout revision.
      Specified by:
      getTypeSettings in interface LayoutRevisionModel
      Returns:
      the type settings of this layout revision
    • getTypeSettingsProperties

      public UnicodeProperties getTypeSettingsProperties()
      Specified by:
      getTypeSettingsProperties in interface LayoutRevision
    • getTypeSettingsProperty

      public String getTypeSettingsProperty(String key)
      Specified by:
      getTypeSettingsProperty in interface LayoutRevision
    • getTypeSettingsProperty

      public String getTypeSettingsProperty(String key, String defaultValue)
      Specified by:
      getTypeSettingsProperty in interface LayoutRevision
    • getUserId

      public long getUserId()
      Returns the user ID of this layout revision.
      Specified by:
      getUserId in interface AuditedModel
      Specified by:
      getUserId in interface LayoutRevisionModel
      Returns:
      the user ID of this layout revision
    • getUserName

      public String getUserName()
      Returns the user name of this layout revision.
      Specified by:
      getUserName in interface AuditedModel
      Specified by:
      getUserName in interface LayoutRevisionModel
      Returns:
      the user name of this layout revision
    • getUserUuid

      public String getUserUuid()
      Returns the user uuid of this layout revision.
      Specified by:
      getUserUuid in interface AuditedModel
      Specified by:
      getUserUuid in interface LayoutRevisionModel
      Returns:
      the user uuid of this layout revision
    • hasChildren

      public boolean hasChildren()
      Specified by:
      hasChildren in interface LayoutRevision
    • isApproved

      public boolean isApproved()
      Returns true if this layout revision is approved.
      Specified by:
      isApproved in interface LayoutRevisionModel
      Specified by:
      isApproved in interface WorkflowedModel
      Returns:
      true if this layout revision is approved; false otherwise
    • isContentDisplayPage

      public boolean isContentDisplayPage()
      Specified by:
      isContentDisplayPage in interface LayoutRevision
    • isCustomizable

      public boolean isCustomizable() throws PortalException
      Specified by:
      isCustomizable in interface LayoutRevision
      Throws:
      PortalException
    • isDenied

      public boolean isDenied()
      Returns true if this layout revision is denied.
      Specified by:
      isDenied in interface LayoutRevisionModel
      Specified by:
      isDenied in interface WorkflowedModel
      Returns:
      true if this layout revision is denied; false otherwise
    • isDraft

      public boolean isDraft()
      Returns true if this layout revision is a draft.
      Specified by:
      isDraft in interface LayoutRevisionModel
      Specified by:
      isDraft in interface WorkflowedModel
      Returns:
      true if this layout revision is a draft; false otherwise
    • isExpired

      public boolean isExpired()
      Returns true if this layout revision is expired.
      Specified by:
      isExpired in interface LayoutRevisionModel
      Specified by:
      isExpired in interface WorkflowedModel
      Returns:
      true if this layout revision is expired; false otherwise
    • isHead

      public boolean isHead()
      Returns true if this layout revision is head.
      Specified by:
      isHead in interface LayoutRevisionModel
      Returns:
      true if this layout revision is head; false otherwise
    • isIconImage

      public boolean isIconImage()
      Specified by:
      isIconImage in interface LayoutRevision
    • isInactive

      public boolean isInactive()
      Returns true if this layout revision is inactive.
      Specified by:
      isInactive in interface LayoutRevisionModel
      Specified by:
      isInactive in interface WorkflowedModel
      Returns:
      true if this layout revision is inactive; false otherwise
    • isIncomplete

      public boolean isIncomplete()
      Returns true if this layout revision is incomplete.
      Specified by:
      isIncomplete in interface LayoutRevisionModel
      Specified by:
      isIncomplete in interface WorkflowedModel
      Returns:
      true if this layout revision is incomplete; false otherwise
    • isInheritLookAndFeel

      public boolean isInheritLookAndFeel()
      Specified by:
      isInheritLookAndFeel in interface LayoutRevision
    • isMajor

      public boolean isMajor()
      Returns true if this layout revision is major.
      Specified by:
      isMajor in interface LayoutRevisionModel
      Returns:
      true if this layout revision is major; false otherwise
    • isPending

      public boolean isPending()
      Returns true if this layout revision is pending.
      Specified by:
      isPending in interface LayoutRevisionModel
      Specified by:
      isPending in interface WorkflowedModel
      Returns:
      true if this layout revision is pending; false otherwise
    • isPrivateLayout

      public boolean isPrivateLayout()
      Returns true if this layout revision is private layout.
      Specified by:
      isPrivateLayout in interface LayoutRevisionModel
      Returns:
      true if this layout revision is private layout; false otherwise
    • isScheduled

      public boolean isScheduled()
      Returns true if this layout revision is scheduled.
      Specified by:
      isScheduled in interface LayoutRevisionModel
      Specified by:
      isScheduled in interface WorkflowedModel
      Returns:
      true if this layout revision is scheduled; false otherwise
    • persist

      public void persist()
      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
    • prepareLocalizedFieldsForImport

      public void prepareLocalizedFieldsForImport() throws LocaleException
      Specified by:
      prepareLocalizedFieldsForImport in interface LayoutRevisionModel
      Specified by:
      prepareLocalizedFieldsForImport in interface LocalizedModel
      Throws:
      LocaleException
    • prepareLocalizedFieldsForImport

      public void prepareLocalizedFieldsForImport(Locale defaultImportLocale) throws LocaleException
      Specified by:
      prepareLocalizedFieldsForImport in interface LayoutRevisionModel
      Specified by:
      prepareLocalizedFieldsForImport in interface LocalizedModel
      Throws:
      LocaleException
    • setColorSchemeId

      public void setColorSchemeId(String colorSchemeId)
      Sets the color scheme ID of this layout revision.
      Specified by:
      setColorSchemeId in interface LayoutRevisionModel
      Parameters:
      colorSchemeId - the color scheme ID of this layout revision
    • setCompanyId

      public void setCompanyId(long companyId)
      Sets the company ID of this layout revision.
      Specified by:
      setCompanyId in interface AuditedModel
      Specified by:
      setCompanyId in interface LayoutRevisionModel
      Specified by:
      setCompanyId in interface ShardedModel
      Parameters:
      companyId - the company ID of this layout revision
    • setCreateDate

      public void setCreateDate(Date createDate)
      Sets the create date of this layout revision.
      Specified by:
      setCreateDate in interface AuditedModel
      Specified by:
      setCreateDate in interface LayoutRevisionModel
      Parameters:
      createDate - the create date of this layout revision
    • setCss

      public void setCss(String css)
      Sets the css of this layout revision.
      Specified by:
      setCss in interface LayoutRevisionModel
      Parameters:
      css - the css of this layout revision
    • setDescription

      public void setDescription(String description)
      Sets the description of this layout revision.
      Specified by:
      setDescription in interface LayoutRevisionModel
      Parameters:
      description - the description of this layout revision
    • setDescription

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

      public void setDescription(String description, Locale locale, Locale defaultLocale)
      Sets the localized description of this layout revision in the language, and sets the default locale.
      Specified by:
      setDescription in interface LayoutRevisionModel
      Parameters:
      description - the localized description of this layout revision
      locale - the locale of the language
      defaultLocale - the default locale
    • setDescriptionCurrentLanguageId

      public void setDescriptionCurrentLanguageId(String languageId)
      Specified by:
      setDescriptionCurrentLanguageId in interface LayoutRevisionModel
    • setDescriptionMap

      public void setDescriptionMap(Map<Locale,String> descriptionMap)
      Sets the localized descriptions of this layout revision from the map of locales and localized descriptions.
      Specified by:
      setDescriptionMap in interface LayoutRevisionModel
      Parameters:
      descriptionMap - the locales and localized descriptions of this layout revision
    • setDescriptionMap

      public void setDescriptionMap(Map<Locale,String> descriptionMap, Locale defaultLocale)
      Sets the localized descriptions of this layout revision from the map of locales and localized descriptions, and sets the default locale.
      Specified by:
      setDescriptionMap in interface LayoutRevisionModel
      Parameters:
      descriptionMap - the locales and localized descriptions of this layout revision
      defaultLocale - the default locale
    • setGroupId

      public void setGroupId(long groupId)
      Sets the group ID of this layout revision.
      Specified by:
      setGroupId in interface GroupedModel
      Specified by:
      setGroupId in interface LayoutRevisionModel
      Parameters:
      groupId - the group ID of this layout revision
    • setHead

      public void setHead(boolean head)
      Sets whether this layout revision is head.
      Specified by:
      setHead in interface LayoutRevisionModel
      Parameters:
      head - the head of this layout revision
    • setIconImageId

      public void setIconImageId(long iconImageId)
      Sets the icon image ID of this layout revision.
      Specified by:
      setIconImageId in interface LayoutRevisionModel
      Parameters:
      iconImageId - the icon image ID of this layout revision
    • setKeywords

      public void setKeywords(String keywords)
      Sets the keywords of this layout revision.
      Specified by:
      setKeywords in interface LayoutRevisionModel
      Parameters:
      keywords - the keywords of this layout revision
    • setKeywords

      public void setKeywords(String keywords, Locale locale)
      Sets the localized keywords of this layout revision in the language.
      Specified by:
      setKeywords in interface LayoutRevisionModel
      Parameters:
      keywords - the localized keywords of this layout revision
      locale - the locale of the language
    • setKeywords

      public void setKeywords(String keywords, Locale locale, Locale defaultLocale)
      Sets the localized keywords of this layout revision in the language, and sets the default locale.
      Specified by:
      setKeywords in interface LayoutRevisionModel
      Parameters:
      keywords - the localized keywords of this layout revision
      locale - the locale of the language
      defaultLocale - the default locale
    • setKeywordsCurrentLanguageId

      public void setKeywordsCurrentLanguageId(String languageId)
      Specified by:
      setKeywordsCurrentLanguageId in interface LayoutRevisionModel
    • setKeywordsMap

      public void setKeywordsMap(Map<Locale,String> keywordsMap)
      Sets the localized keywordses of this layout revision from the map of locales and localized keywordses.
      Specified by:
      setKeywordsMap in interface LayoutRevisionModel
      Parameters:
      keywordsMap - the locales and localized keywordses of this layout revision
    • setKeywordsMap

      public void setKeywordsMap(Map<Locale,String> keywordsMap, Locale defaultLocale)
      Sets the localized keywordses of this layout revision from the map of locales and localized keywordses, and sets the default locale.
      Specified by:
      setKeywordsMap in interface LayoutRevisionModel
      Parameters:
      keywordsMap - the locales and localized keywordses of this layout revision
      defaultLocale - the default locale
    • setLayoutBranchId

      public void setLayoutBranchId(long layoutBranchId)
      Sets the layout branch ID of this layout revision.
      Specified by:
      setLayoutBranchId in interface LayoutRevisionModel
      Parameters:
      layoutBranchId - the layout branch ID of this layout revision
    • setLayoutRevisionId

      public void setLayoutRevisionId(long layoutRevisionId)
      Sets the layout revision ID of this layout revision.
      Specified by:
      setLayoutRevisionId in interface LayoutRevisionModel
      Parameters:
      layoutRevisionId - the layout revision ID of this layout revision
    • setLayoutSetBranchId

      public void setLayoutSetBranchId(long layoutSetBranchId)
      Sets the layout set branch ID of this layout revision.
      Specified by:
      setLayoutSetBranchId in interface LayoutRevisionModel
      Parameters:
      layoutSetBranchId - the layout set branch ID of this layout revision
    • setMajor

      public void setMajor(boolean major)
      Sets whether this layout revision is major.
      Specified by:
      setMajor in interface LayoutRevisionModel
      Parameters:
      major - the major of this layout revision
    • setModifiedDate

      public void setModifiedDate(Date modifiedDate)
      Sets the modified date of this layout revision.
      Specified by:
      setModifiedDate in interface AuditedModel
      Specified by:
      setModifiedDate in interface LayoutRevisionModel
      Parameters:
      modifiedDate - the modified date of this layout revision
    • setMvccVersion

      public void setMvccVersion(long mvccVersion)
      Sets the mvcc version of this layout revision.
      Specified by:
      setMvccVersion in interface LayoutRevisionModel
      Specified by:
      setMvccVersion in interface MVCCModel
      Parameters:
      mvccVersion - the mvcc version of this layout revision
    • setName

      public void setName(String name)
      Sets the name of this layout revision.
      Specified by:
      setName in interface LayoutRevisionModel
      Parameters:
      name - the name of this layout revision
    • setName

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

      public void setName(String name, Locale locale, Locale defaultLocale)
      Sets the localized name of this layout revision in the language, and sets the default locale.
      Specified by:
      setName in interface LayoutRevisionModel
      Parameters:
      name - the localized name of this layout revision
      locale - the locale of the language
      defaultLocale - the default locale
    • setNameCurrentLanguageId

      public void setNameCurrentLanguageId(String languageId)
      Specified by:
      setNameCurrentLanguageId in interface LayoutRevisionModel
    • setNameMap

      public void setNameMap(Map<Locale,String> nameMap)
      Sets the localized names of this layout revision from the map of locales and localized names.
      Specified by:
      setNameMap in interface LayoutRevisionModel
      Parameters:
      nameMap - the locales and localized names of this layout revision
    • setNameMap

      public void setNameMap(Map<Locale,String> nameMap, Locale defaultLocale)
      Sets the localized names of this layout revision from the map of locales and localized names, and sets the default locale.
      Specified by:
      setNameMap in interface LayoutRevisionModel
      Parameters:
      nameMap - the locales and localized names of this layout revision
      defaultLocale - the default locale
    • setParentLayoutRevisionId

      public void setParentLayoutRevisionId(long parentLayoutRevisionId)
      Sets the parent layout revision ID of this layout revision.
      Specified by:
      setParentLayoutRevisionId in interface LayoutRevisionModel
      Parameters:
      parentLayoutRevisionId - the parent layout revision ID of this layout revision
    • setPlid

      public void setPlid(long plid)
      Sets the plid of this layout revision.
      Specified by:
      setPlid in interface LayoutRevisionModel
      Parameters:
      plid - the plid of this layout revision
    • setPrimaryKey

      public void setPrimaryKey(long primaryKey)
      Sets the primary key of this layout revision.
      Specified by:
      setPrimaryKey in interface LayoutRevisionModel
      Parameters:
      primaryKey - the primary key of this layout revision
    • setPrivateLayout

      public void setPrivateLayout(boolean privateLayout)
      Sets whether this layout revision is private layout.
      Specified by:
      setPrivateLayout in interface LayoutRevisionModel
      Parameters:
      privateLayout - the private layout of this layout revision
    • setRobots

      public void setRobots(String robots)
      Sets the robots of this layout revision.
      Specified by:
      setRobots in interface LayoutRevisionModel
      Parameters:
      robots - the robots of this layout revision
    • setRobots

      public void setRobots(String robots, Locale locale)
      Sets the localized robots of this layout revision in the language.
      Specified by:
      setRobots in interface LayoutRevisionModel
      Parameters:
      robots - the localized robots of this layout revision
      locale - the locale of the language
    • setRobots

      public void setRobots(String robots, Locale locale, Locale defaultLocale)
      Sets the localized robots of this layout revision in the language, and sets the default locale.
      Specified by:
      setRobots in interface LayoutRevisionModel
      Parameters:
      robots - the localized robots of this layout revision
      locale - the locale of the language
      defaultLocale - the default locale
    • setRobotsCurrentLanguageId

      public void setRobotsCurrentLanguageId(String languageId)
      Specified by:
      setRobotsCurrentLanguageId in interface LayoutRevisionModel
    • setRobotsMap

      public void setRobotsMap(Map<Locale,String> robotsMap)
      Sets the localized robotses of this layout revision from the map of locales and localized robotses.
      Specified by:
      setRobotsMap in interface LayoutRevisionModel
      Parameters:
      robotsMap - the locales and localized robotses of this layout revision
    • setRobotsMap

      public void setRobotsMap(Map<Locale,String> robotsMap, Locale defaultLocale)
      Sets the localized robotses of this layout revision from the map of locales and localized robotses, and sets the default locale.
      Specified by:
      setRobotsMap in interface LayoutRevisionModel
      Parameters:
      robotsMap - the locales and localized robotses of this layout revision
      defaultLocale - the default locale
    • setStatus

      public void setStatus(int status)
      Sets the status of this layout revision.
      Specified by:
      setStatus in interface LayoutRevisionModel
      Specified by:
      setStatus in interface WorkflowedModel
      Parameters:
      status - the status of this layout revision
    • setStatusByUserId

      public void setStatusByUserId(long statusByUserId)
      Sets the status by user ID of this layout revision.
      Specified by:
      setStatusByUserId in interface LayoutRevisionModel
      Specified by:
      setStatusByUserId in interface WorkflowedModel
      Parameters:
      statusByUserId - the status by user ID of this layout revision
    • setStatusByUserName

      public void setStatusByUserName(String statusByUserName)
      Sets the status by user name of this layout revision.
      Specified by:
      setStatusByUserName in interface LayoutRevisionModel
      Specified by:
      setStatusByUserName in interface WorkflowedModel
      Parameters:
      statusByUserName - the status by user name of this layout revision
    • setStatusByUserUuid

      public void setStatusByUserUuid(String statusByUserUuid)
      Sets the status by user uuid of this layout revision.
      Specified by:
      setStatusByUserUuid in interface LayoutRevisionModel
      Specified by:
      setStatusByUserUuid in interface WorkflowedModel
      Parameters:
      statusByUserUuid - the status by user uuid of this layout revision
    • setStatusDate

      public void setStatusDate(Date statusDate)
      Sets the status date of this layout revision.
      Specified by:
      setStatusDate in interface LayoutRevisionModel
      Specified by:
      setStatusDate in interface WorkflowedModel
      Parameters:
      statusDate - the status date of this layout revision
    • setThemeId

      public void setThemeId(String themeId)
      Sets the theme ID of this layout revision.
      Specified by:
      setThemeId in interface LayoutRevisionModel
      Parameters:
      themeId - the theme ID of this layout revision
    • setTitle

      public void setTitle(String title)
      Sets the title of this layout revision.
      Specified by:
      setTitle in interface LayoutRevisionModel
      Parameters:
      title - the title of this layout revision
    • setTitle

      public void setTitle(String title, Locale locale)
      Sets the localized title of this layout revision in the language.
      Specified by:
      setTitle in interface LayoutRevisionModel
      Parameters:
      title - the localized title of this layout revision
      locale - the locale of the language
    • setTitle

      public void setTitle(String title, Locale locale, Locale defaultLocale)
      Sets the localized title of this layout revision in the language, and sets the default locale.
      Specified by:
      setTitle in interface LayoutRevisionModel
      Parameters:
      title - the localized title of this layout revision
      locale - the locale of the language
      defaultLocale - the default locale
    • setTitleCurrentLanguageId

      public void setTitleCurrentLanguageId(String languageId)
      Specified by:
      setTitleCurrentLanguageId in interface LayoutRevisionModel
    • setTitleMap

      public void setTitleMap(Map<Locale,String> titleMap)
      Sets the localized titles of this layout revision from the map of locales and localized titles.
      Specified by:
      setTitleMap in interface LayoutRevisionModel
      Parameters:
      titleMap - the locales and localized titles of this layout revision
    • setTitleMap

      public void setTitleMap(Map<Locale,String> titleMap, Locale defaultLocale)
      Sets the localized titles of this layout revision from the map of locales and localized titles, and sets the default locale.
      Specified by:
      setTitleMap in interface LayoutRevisionModel
      Parameters:
      titleMap - the locales and localized titles of this layout revision
      defaultLocale - the default locale
    • setTypeSettings

      public void setTypeSettings(String typeSettings)
      Sets the type settings of this layout revision.
      Specified by:
      setTypeSettings in interface LayoutRevisionModel
      Parameters:
      typeSettings - the type settings of this layout revision
    • setTypeSettingsProperties

      public void setTypeSettingsProperties(UnicodeProperties typeSettingsUnicodeProperties)
      Specified by:
      setTypeSettingsProperties in interface LayoutRevision
    • setUserId

      public void setUserId(long userId)
      Sets the user ID of this layout revision.
      Specified by:
      setUserId in interface AuditedModel
      Specified by:
      setUserId in interface LayoutRevisionModel
      Parameters:
      userId - the user ID of this layout revision
    • setUserName

      public void setUserName(String userName)
      Sets the user name of this layout revision.
      Specified by:
      setUserName in interface AuditedModel
      Specified by:
      setUserName in interface LayoutRevisionModel
      Parameters:
      userName - the user name of this layout revision
    • setUserUuid

      public void setUserUuid(String userUuid)
      Sets the user uuid of this layout revision.
      Specified by:
      setUserUuid in interface AuditedModel
      Specified by:
      setUserUuid in interface LayoutRevisionModel
      Parameters:
      userUuid - the user uuid of this layout revision
    • toXmlString

      public String toXmlString()
      Specified by:
      toXmlString in interface LayoutRevisionModel
    • wrap

      protected LayoutRevisionWrapper wrap(LayoutRevision layoutRevision)
      Specified by:
      wrap in class BaseModelWrapper<LayoutRevision>