Class CMSContentItem

java.lang.Object
io.goobi.viewer.model.cms.pages.content.CMSContentItem

public class CMSContentItem extends Object
Wraps a CMSContent within a CMSPage
Author:
florian
  • Constructor Details

    • CMSContentItem

      public CMSContentItem(CMSContentItem orig)
    • CMSContentItem

      public CMSContentItem(String itemId, CMSContent content, String label, String description, String htmlGroup, JsfComponent jsfComponent, CMSComponent owningComponent, boolean required)
      Parameters:
      itemId -
      content -
      label -
      description -
      htmlGroup -
      jsfComponent -
      owningComponent -
      required -
  • Method Details

    • isRequired

      public boolean isRequired()
    • getItemId

      public String getItemId()
    • getContent

      public CMSContent getContent()
    • getLabel

      public String getLabel()
    • getItemLabel

      public String getItemLabel()
    • getDescription

      public String getDescription()
    • getJsfComponent

      public JsfComponent getJsfComponent()
    • hashCode

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

      public boolean isMandatory()
    • equals

      public boolean equals(Object obj)
      Two CMSContentItems are equal if their itemIds are equal
      Overrides:
      equals in class Object
    • getUiComponent

      public javax.faces.component.UIComponent getUiComponent() throws PresentationException
      Throws:
      PresentationException
    • setUiComponent

      public void setUiComponent(javax.faces.component.UIComponent uiComponent)
    • isEmpty

      public boolean isEmpty()
      Check if the content attribute exists (i.e. database data is present). If so, and it is textual or media content, also check if text is empty or the media item exists
      Returns:
      true if no database entry exists or if it doesn't contain data which can be presented
    • isShortText

      public boolean isShortText()
    • isHtmlText

      public boolean isHtmlText()
    • isMedia

      public boolean isMedia()
    • getHtmlGroup

      public String getHtmlGroup()
    • getOwningComponent

      public CMSComponent getOwningComponent()
    • toString

      public String toString()
      Overrides:
      toString in class Object