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)
      Creates a new CMSContentItemTemplate instance.
      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 display mode to set for this content item
    • 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 message key to display when clicking the inline help button
    • getMediaFilter

      public String getMediaFilter()
    • setMediaFilter

      public void setMediaFilter(String mediaFilter)
      Setter for the field mediaFilter.
      Parameters:
      mediaFilter - the media type filter string; null is treated as empty string
    • isPreview

      public boolean isPreview()
    • setPreview

      public void setPreview(boolean preview)
      Setter for the field preview.
      Parameters:
      preview - true if this item should be rendered in preview mode
    • setMandatory

      public void setMandatory(boolean mandatory)
    • isMandatory

      public boolean isMandatory()
    • setOrder

      public void setOrder(int order)
    • getOrder

      public int getOrder()
    • setItemLabel

      public void setItemLabel(String itemLabel)
    • getItemLabel

      public String getItemLabel()
    • isIgnoreCollectionHierarchy

      public boolean isIgnoreCollectionHierarchy()
    • setIgnoreCollectionHierarchy

      public void setIgnoreCollectionHierarchy(boolean ignoreCollectionHierarchy)
    • isHitListOptions

      public boolean isHitListOptions()
    • setHitListOptions

      public void setHitListOptions(boolean hitListOptions)
    • setRandomizeItems

      public void setRandomizeItems(boolean radomizeItems)
    • isRandomizeItems

      public boolean isRandomizeItems()
    • compareTo

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

      public CMSContentItem createCMSContentItem(CMSComponent component)