Class CMSStaticPage

java.lang.Object
io.goobi.viewer.model.cms.CMSStaticPage
All Implemented Interfaces:
Serializable

@Entity public class CMSStaticPage extends Object implements Serializable

CMSStaticPage class.

See Also:
  • Constructor Details

    • CMSStaticPage

      public CMSStaticPage()

      Constructor for CMSStaticPage.

    • CMSStaticPage

      public CMSStaticPage(String name)

      Constructor for CMSStaticPage.

      Parameters:
      name - a String object.
      Throws:
      NullPointerException - if the given name is null
  • Method Details

    • getCmsPageOptional

      public Optional<CMSPage> getCmsPageOptional()

      getCmsPageOptional.

      Returns:
      the cmsPage
    • getCmsPage

      public CMSPage getCmsPage()

      Getter for the field cmsPage.

      Returns:
      a CMSPage object.
    • setCmsPage

      public void setCmsPage(CMSPage cmsPage)

      Setter for the field cmsPage.

      Parameters:
      cmsPage - the cmsPage to set
    • getId

      public Long getId()

      Getter for the field id.

      Returns:
      the id
    • getPageName

      public String getPageName()

      Getter for the field pageName.

      Returns:
      the pageName
    • isLanguageComplete

      public boolean isLanguageComplete(Locale locale)

      isLanguageComplete.

      Parameters:
      locale - a Locale object.
      Returns:
      a boolean.
    • isHasCmsPage

      public boolean isHasCmsPage()

      isHasCmsPage.

      Returns:
      true only if isUseCmsPage == true and cmsPage != null
    • getCmsPageId

      public Optional<Long> getCmsPageId()

      Getter for the field cmsPageId.

      Returns:
      the cmsPageId
    • setCmsPageId

      public void setCmsPageId(Long cmsPageId)

      Setter for the field cmsPageId.

      Parameters:
      cmsPageId - the cmsPageId to set
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

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

      public PageType getPageType()