Class CMSSlider

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

@Entity public class CMSSlider extends Object implements Serializable
Class to persist sliders ("slideshows") created in CMS backend
Author:
florian
See Also:
  • Field Details

  • Constructor Details

    • CMSSlider

      public CMSSlider(CMSSlider o)
      Copy constructor
      Parameters:
      o -
    • CMSSlider

      public CMSSlider()
      persistence constructor
    • CMSSlider

      public CMSSlider(CMSSlider.SourceType type)
      Default constructor. Provides the source type which should be treated as final
      Parameters:
      type -
  • Method Details

    • getId

      public Long getId()
      Returns:
      the id
    • setId

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

      public String getName()
      Returns:
      the name
    • setName

      public void setName(String name)
      Parameters:
      name - the name to set
    • getDescription

      public String getDescription()
      Returns:
      the description
    • setDescription

      public void setDescription(String description)
      Parameters:
      description - the description to set
    • getSolrQuery

      public String getSolrQuery()
      Returns:
      the solrQuery
    • setSolrQuery

      public void setSolrQuery(String solrQuery)
      Parameters:
      solrQuery - the solrQuery to set
    • getCategories

      public List<String> getCategories()
      Returns:
      the categories
    • setCategories

      public void setCategories(List<String> categories)
      Parameters:
      categories - the categories to set
    • getCollections

      public List<String> getCollections()
      Returns:
      the collections
    • setCollections

      public void setCollections(List<String> collections)
      Parameters:
      collections - the collections to set
    • getSerialversionuid

      public static long getSerialversionuid()
      Returns:
      the serialversionuid
    • getStyle

      public String getStyle()
      Returns:
      the style
    • setStyle

      public void setStyle(String style)
      Parameters:
      style - the style to set
    • getSourceType

      public CMSSlider.SourceType getSourceType()
      Returns:
      the sourceType
    • isEmpty

      public boolean isEmpty()
      Returns:
      true if either solrQuery, collections or categories is empty, depending on the sourceType
    • getSortField

      public String getSortField()
      Returns:
      the sortField
    • setSortField

      public void setSortField(String sortField)
      Parameters:
      sortField - the sortField to set
    • setMaxEntries

      public void setMaxEntries(int maxEntries)
      Parameters:
      maxEntries - the maxEntries to set
    • getMaxEntries

      public int getMaxEntries()
      Returns:
      the maxEntries
    • getMaxEntriesOptions

      public List<Integer> getMaxEntriesOptions()