Package io.goobi.viewer.model.cms
Class CMSSlider
java.lang.Object
io.goobi.viewer.model.cms.CMSSlider
- All Implemented Interfaces:
Serializable
Class to persist sliders ("slideshows") created in CMS backend.
- Author:
- Florian Alpers
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumEnumerates the data source types from which aCMSSlidercan retrieve its content, such as Solr-queried records, collections, CMS pages, or media items. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final int -
Constructor Summary
ConstructorsConstructorDescriptionPersistence constructor.Copies constructor.Default constructor. -
Method Summary
Modifier and TypeMethodDescriptiongetId()intgetName()static longgetStyle()booleanisEmpty()voidsetCategories(List<String> categories) voidsetCollections(List<String> collections) voidsetDescription(String description) voidvoidsetMaxEntries(int maxEntries) voidvoidsetSolrQuery(String solrQuery) voidsetSortField(String sortField) void
-
Field Details
-
MAX_ENTRIES_MIN
public static final int MAX_ENTRIES_MIN- See Also:
-
MAX_ENTRIES_MAX
public static final int MAX_ENTRIES_MAX- See Also:
-
MAX_ENTRIES_DEFAULT
public static final int MAX_ENTRIES_DEFAULT- See Also:
-
-
Constructor Details
-
CMSSlider
Copies constructor.- Parameters:
o- slider to copy
-
CMSSlider
public CMSSlider()Persistence constructor. -
CMSSlider
Default constructor. Provides the source type which should be treated as final- Parameters:
type- source type determining how slider entries are loaded
-
-
Method Details
-
getId
-
setId
-
getName
-
setName
-
getDescription
-
setDescription
-
getSolrQuery
-
setSolrQuery
-
getCategories
-
setCategories
-
getCollections
-
setCollections
-
getSerialversionuid
public static long getSerialversionuid() -
getStyle
-
setStyle
-
getSourceType
-
isEmpty
public boolean isEmpty()- Returns:
- true if either
solrQuery,collectionsorcategoriesis empty, depending on thesourceType
-
getSortField
-
setSortField
-
setMaxEntries
public void setMaxEntries(int maxEntries) -
getMaxEntries
public int getMaxEntries() -
getMaxEntriesOptions
-