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
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final int
static final int
-
Constructor Summary
ConstructorDescriptionpersistence constructorCopy constructorDefault constructor. -
Method Summary
Modifier and TypeMethodDescriptiongetId()
int
getName()
static long
getStyle()
boolean
isEmpty()
void
setCategories
(List<String> categories) void
setCollections
(List<String> collections) void
setDescription
(String description) void
void
setMaxEntries
(int maxEntries) void
void
setSolrQuery
(String solrQuery) void
setSortField
(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
,collections
orcategories
is 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
-