Class CMSSidebarElement

java.lang.Object
io.goobi.viewer.model.cms.widgets.embed.CMSSidebarElement
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
CMSSidebarElementAutomatic, CMSSidebarElementCustom, CMSSidebarElementDefault

@Entity public class CMSSidebarElement extends Object implements Serializable

CMSSidebarElement class.

Wrapper to link sidebar widgets to cms-pages. Has a subclass for each type of sidebar widget
See Also:
  • Field Details

  • Constructor Details

    • CMSSidebarElement

      public CMSSidebarElement()
      Empty constructor for the DAO
    • CMSSidebarElement

      public CMSSidebarElement(WidgetContentType type)
      Default constructor for a certain type of widget
      Parameters:
      type -
    • CMSSidebarElement

      public CMSSidebarElement(WidgetContentType type, CMSPage owner)
      Default constructor for a certain type of widget
      Parameters:
      type -
      owner -
    • CMSSidebarElement

      public CMSSidebarElement(WidgetContentType type, CMSPageTemplate owner)
      Default constructor for a certain type of widget
      Parameters:
      type -
      owner -
    • CMSSidebarElement

      public CMSSidebarElement(CMSSidebarElement orig, CMSPage owner)
      Default constructor for a certain type of widget and owning CMSPage
      Parameters:
      orig -
      owner -
    • CMSSidebarElement

      public CMSSidebarElement(CMSSidebarElement orig, CMSPageTemplate owner)
      Default constructor for a certain type of widget and owning CMSPageTemplate
      Parameters:
      orig -
      owner -
  • Method Details

    • copy

      public static CMSSidebarElement copy(CMSSidebarElement orig, CMSPage owner)
      Clones the given sidebar element and assigns the given CMSPage as owner. Depends on cloning constructors of subclasses
      Parameters:
      orig -
      owner -
      Returns:
      CMSSidebarElement
    • copy

      public static CMSSidebarElement copy(CMSSidebarElement orig, CMSPageTemplate owner)
      Clones the given sidebar element and assigns the given CMSPage as owner. Depends on cloning constructors of subclasses
      Parameters:
      orig -
      owner -
      Returns:
      CMSSidebarElement
    • getId

      public Long getId()
      the database id
      Returns:
      the id
    • setId

      public void setId(Long id)
      Parameters:
      id - the id to set
    • getOwnerPage

      public CMSPage getOwnerPage()
      the CMSPage containing the element
      Returns:
      the ownerPage
    • setOwnerPage

      public void setOwnerPage(CMSPage ownerPage)
      Parameters:
      ownerPage - the ownerPage to set
    • getOwnerTemplate

      public CMSPageTemplate getOwnerTemplate()
    • setOwnerTemplate

      public void setOwnerTemplate(CMSPageTemplate ownerTemplate)
    • getOrder

      public int getOrder()
      The order in which the element is shown. Low numbers are displayed on top of the sidebar, high numbers at the bottom
      Returns:
      the order
    • setOrder

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

      public WidgetGenerationType getGenerationType()
      the WidgetGenerationType of the underlying widget
      Returns:
      the generationType
    • setGenerationType

      public void setGenerationType(WidgetGenerationType generationType)
      Parameters:
      generationType - the generationType to set
    • getContentType

      public WidgetContentType getContentType()
      the WidgetContentType of the underlying widget
      Returns:
      the contentType
    • setContentType

      public void setContentType(WidgetContentType contentType)
      Parameters:
      contentType - the contentType to set
    • getTitle

      public TranslatedText getTitle()
      The title displayed for this element when editing the owning CMSPage
      Returns:
      TranslatedText