Class RssFeedSidebarWidget
java.lang.Object
io.goobi.viewer.model.cms.widgets.CustomSidebarWidget
io.goobi.viewer.model.cms.widgets.RssFeedSidebarWidget
- All Implemented Interfaces:
IPolyglott
,Serializable
A subtype of
CustomSidebarWidget
to display a RSS feed of selected records. The default settings show a list of the five last imported
records- Author:
- florian
- See Also:
-
Field Summary
Fields inherited from class io.goobi.viewer.model.cms.widgets.CustomSidebarWidget
id
-
Constructor Summary
ConstructorDescriptionEmpty default constructorCloning constructor -
Method Summary
Modifier and TypeMethodDescriptionIf this query is not empty only records matching this SOLR query are listedint
The number of entries to displayA SOLR field to select and sort the listed entries by.getType()
Return the type of this custom sidebar widget.boolean
Whether the records are selected and sorted ins descending ordervoid
setDescendingSorting
(boolean descendingSorting) Set thedescending sorting
void
setFilterQuery
(String filterQuery) Set thefilter query
void
setNumEntries
(int numEntries) Set the number of entries to displayvoid
setSortField
(String sortField) Set thesort field
Methods inherited from class io.goobi.viewer.model.cms.widgets.CustomSidebarWidget
clone, getDescription, getId, getSelectedLocale, getStyleClass, getTitle, isCollapsed, isComplete, isEmpty, isValid, setCollapsed, setId, setSelectedLocale, setStyleClass, setTitle
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.goobi.viewer.model.translations.IPolyglott
getLocales, isDefaultLocaleSelected, isSelected, setSelectedLocale
-
Constructor Details
-
RssFeedSidebarWidget
public RssFeedSidebarWidget()Empty default constructor -
RssFeedSidebarWidget
Cloning constructor- Parameters:
o
-
-
-
Method Details
-
getFilterQuery
If this query is not empty only records matching this SOLR query are listed- Returns:
- the filterQuery
-
setFilterQuery
Set thefilter query
- Parameters:
filterQuery
- the filterQuery to set
-
getSortField
A SOLR field to select and sort the listed entries by.- Returns:
- the sortField
-
setSortField
Set thesort field
- Parameters:
sortField
- the sortField to set
-
isDescendingSorting
public boolean isDescendingSorting()Whether the records are selected and sorted ins descending order- Returns:
- the descendingSorting
-
setDescendingSorting
public void setDescendingSorting(boolean descendingSorting) Set thedescending sorting
- Parameters:
descendingSorting
- the descendingSorting to set
-
getNumEntries
public int getNumEntries()The number of entries to display- Returns:
- The number of entries to display
-
setNumEntries
public void setNumEntries(int numEntries) Set the number of entries to display- Parameters:
numEntries
- the numEntries to set
-
getType
Description copied from class:CustomSidebarWidget
Return the type of this custom sidebar widget. Must be implemented by subclasses ofCustomSidebarWidget
- Overrides:
getType
in classCustomSidebarWidget
- Returns:
CustomWidgetType
-