Class CMSContentItemTemplate

java.lang.Object
io.goobi.viewer.model.cms.legacy.CMSContentItemTemplate
All Implemented Interfaces:
Comparable<CMSContentItemTemplate>

public class CMSContentItemTemplate extends Object implements Comparable<CMSContentItemTemplate>
A contentItem to be used in a CMSPage template. Stores a value for content item mode
Author:
Florian Alpers
  • Constructor Details

    • CMSContentItemTemplate

      public CMSContentItemTemplate(CMSContentItemType type)

      Constructor for CMSContentItemTemplate.

      Parameters:
      type - a CMSContentItemType object.
  • Method Details

    • getType

      public CMSContentItemType getType()
    • getItemId

      public String getItemId()
    • setItemId

      public void setItemId(String itemId)
    • setMode

      public void setMode(ContentItemMode mode)

      Setter for the field mode.

      Parameters:
      mode - the mode to set
    • getMode

      public ContentItemMode getMode()
    • isHasInlineHelp

      public boolean isHasInlineHelp()
    • getInlineHelp

      public String getInlineHelp()
      Message key to display when clicking the inline help button.
      Returns:
      the inlineHelp
    • setInlineHelp

      public void setInlineHelp(String inlineHelp)

      Setter for the field inlineHelp.

      Parameters:
      inlineHelp - the inlineHelp to set
    • getMediaFilter

      public String getMediaFilter()
    • setMediaFilter

      public void setMediaFilter(String mediaFilter)

      Setter for the field mediaFilter.

      Parameters:
      mediaFilter - the mediaFilter to set
    • isPreview

      public boolean isPreview()
    • setPreview

      public void setPreview(boolean preview)

      Setter for the field preview.

      Parameters:
      preview - the preview to set
    • setMandatory

      public void setMandatory(boolean mandatory)
      Parameters:
      mandatory - the mandatory to set
    • isMandatory

      public boolean isMandatory()
    • setOrder

      public void setOrder(int order)
      Parameters:
      order - the order to set
    • getOrder

      public int getOrder()
      Returns:
      the order
    • setItemLabel

      public void setItemLabel(String itemLabel)
    • getItemLabel

      public String getItemLabel()
    • isIgnoreCollectionHierarchy

      public boolean isIgnoreCollectionHierarchy()
      Returns:
      the ignoreCollectionHierarchy
    • setIgnoreCollectionHierarchy

      public void setIgnoreCollectionHierarchy(boolean ignoreCollectionHierarchy)
      Parameters:
      ignoreCollectionHierarchy - the ignoreCollectionHierarchy to set
    • isHitListOptions

      public boolean isHitListOptions()
      Returns:
      the hitListOptions
    • setHitListOptions

      public void setHitListOptions(boolean hitListOptions)
      Parameters:
      hitListOptions - the hitListOptions to set
    • setRandomizeItems

      public void setRandomizeItems(boolean radomizeItems)
      Parameters:
      radomizeItems - the radomizeItems to set
    • isRandomizeItems

      public boolean isRandomizeItems()
      Returns:
      the randomizeItems
    • compareTo

      public int compareTo(CMSContentItemTemplate o)
      Specified by:
      compareTo in interface Comparable<CMSContentItemTemplate>
    • createCMSContentItem

      public CMSContentItem createCMSContentItem(CMSComponent component)