Class CMSPageTemplate

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

public class CMSPageTemplate extends Object implements Serializable
Page templates are read from XML configuration files and are not stored in the DB.
See Also:
  • Constructor Details Link icon

    • CMSPageTemplate Link icon

      public CMSPageTemplate()
  • Method Details Link icon

    • loadFromXML Link icon

      public static CMSPageTemplate loadFromXML(Path file)
      Loads a page template from the given template file and returns the template object.
      Parameters:
      file - a Path object.
      Returns:
      a CMSPageTemplate object.
      Throws:
      IllegalArgumentException - if file is null
    • validate Link icon

      public void validate()

      validate.

    • createCMSComponent Link icon

      public CMSComponent createCMSComponent()
    • getId Link icon

      public String getId()

      Getter for the field id.

      Returns:
      the id
    • setId Link icon

      public void setId(String id)

      Setter for the field id.

      Parameters:
      id - the id to set
    • getName Link icon

      public String getName()

      Getter for the field name.

      Returns:
      the name
    • setName Link icon

      public void setName(String name)

      Setter for the field name.

      Parameters:
      name - the name to set
    • getVersion Link icon

      public String getVersion()

      Getter for the field version.

      Returns:
      the version
    • setVersion Link icon

      public void setVersion(String version)

      Setter for the field version.

      Parameters:
      version - the version to set
    • getDescription Link icon

      public String getDescription()

      Getter for the field description.

      Returns:
      the description
    • setDescription Link icon

      public void setDescription(String description)

      Setter for the field description.

      Parameters:
      description - the description to set
    • getHtmlFileName Link icon

      public String getHtmlFileName()

      Getter for the field htmlFileName.

      Returns:
      the htmlFileName
    • setHtmlFileName Link icon

      public void setHtmlFileName(String htmlFileName)

      Setter for the field htmlFileName.

      Parameters:
      htmlFileName - the htmlFileName to set
    • getTemplateFileName Link icon

      public String getTemplateFileName()

      Getter for the field templateFileName.

      Returns:
      the templateFileName
    • setTemplateFileName Link icon

      public void setTemplateFileName(String templateFileName)

      Setter for the field templateFileName.

      Parameters:
      templateFileName - the templateFileName to set
    • getIconFileName Link icon

      public String getIconFileName()

      Getter for the field iconFileName.

      Returns:
      the iconFileName
    • setIconFileName Link icon

      public void setIconFileName(String iconFileName)

      Setter for the field iconFileName.

      Parameters:
      iconFileName - the iconFileName to set
    • getContentItems Link icon

      public List<CMSContentItemTemplate> getContentItems()

      Getter for the field contentItems.

      Returns:
      the contentItems
    • getContentItem Link icon

      public CMSContentItemTemplate getContentItem(String itemId)

      getContentItem.

      Parameters:
      itemId - a String object.
      Returns:
      a CMSContentItemTemplate object.
    • setContentItems Link icon

      public void setContentItems(List<CMSContentItemTemplate> contentItems)

      Setter for the field contentItems.

      Parameters:
      contentItems - the contentItems to set
    • isDisplaySortingField Link icon

      public boolean isDisplaySortingField()

      isDisplaySortingField.

      Returns:
      a boolean.
    • setDisplaySortingField Link icon

      public void setDisplaySortingField(boolean displaySortingField)

      Setter for the field displaySortingField.

      Parameters:
      displaySortingField - a boolean.
    • isThemeTemplate Link icon

      public boolean isThemeTemplate()

      isThemeTemplate.

      Returns:
      the themeTemplate
    • setThemeTemplate Link icon

      public void setThemeTemplate(boolean themeTemplate)

      Setter for the field themeTemplate.

      Parameters:
      themeTemplate - the themeTemplate to set
    • setAppliesToExpandedUrl Link icon

      public void setAppliesToExpandedUrl(boolean appliesToExpandedUrl)

      Setter for the field appliesToExpandedUrl.

      Parameters:
      appliesToExpandedUrl - the appliesToExpandedUrl to set
    • isAppliesToExpandedUrl Link icon

      public boolean isAppliesToExpandedUrl()

      isAppliesToExpandedUrl.

      Returns:
      the appliesToExpandedUrl
    • setMayHaveTopBarSlider Link icon

      public void setMayHaveTopBarSlider(boolean mayHaveTopBarSlider)
      Parameters:
      mayHaveTopBarSlider - the mayHaveTopBarSlider to set
    • isMayHaveTopBarSlider Link icon

      public boolean isMayHaveTopBarSlider()
      Returns:
      the mayHaveTopBarSlider
    • parseBoolean Link icon

      public static boolean parseBoolean(String text, boolean defaultValue)

      parseBoolean.

      Parameters:
      text - a String object.
      defaultValue - a boolean.
      Returns:
      a boolean.
    • parseBoolean Link icon

      public static boolean parseBoolean(String text)

      parseBoolean.

      Parameters:
      text - a String object.
      Returns:
      a boolean.
    • getAttributes Link icon

      public Map<String,CMSComponentAttribute> getAttributes()