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
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final int -
Constructor Summary
ConstructorsConstructorDescriptionpersistence constructorCopy constructorDefault 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
Copy constructor- Parameters:
o-
-
CMSSlider
public CMSSlider()persistence constructor -
CMSSlider
Default constructor. Provides the source type which should be treated as final- Parameters:
type-
-
-
Method Details
-
getId
- Returns:
- the id
-
setId
- Parameters:
id- the id to set
-
getName
- Returns:
- the name
-
setName
- Parameters:
name- the name to set
-
getDescription
- Returns:
- the description
-
setDescription
- Parameters:
description- the description to set
-
getSolrQuery
- Returns:
- the solrQuery
-
setSolrQuery
- Parameters:
solrQuery- the solrQuery to set
-
getCategories
- Returns:
- the categories
-
setCategories
- Parameters:
categories- the categories to set
-
getCollections
- Returns:
- the collections
-
setCollections
- Parameters:
collections- the collections to set
-
getSerialversionuid
public static long getSerialversionuid()- Returns:
- the serialversionuid
-
getStyle
- Returns:
- the style
-
setStyle
- Parameters:
style- the style to set
-
getSourceType
- Returns:
- the sourceType
-
isEmpty
public boolean isEmpty()- Returns:
- true if either
solrQuery,collectionsorcategoriesis empty, depending on thesourceType
-
getSortField
- Returns:
- the sortField
-
setSortField
- 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
-