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 Alpers
- See Also:
-
Field Summary
Fields inherited from class io.goobi.viewer.model.cms.widgets.CustomSidebarWidget
id -
Constructor Summary
ConstructorsConstructorDescriptionEmpty default constructor.Cloning constructor. -
Method Summary
Modifier and TypeMethodDescriptionIf this query is not empty only records matching this SOLR query are listed.intThe number of entries to display.A SOLR field to select and sort the listed entries by.getType()Return the type of this custom sidebar widget.booleanReturns whether records are sorted in descending order.voidsetDescendingSorting(boolean descendingSorting) Set thedescending sorting.voidsetFilterQuery(String filterQuery) Set thefilter query.voidsetNumEntries(int numEntries) Sets the number of entries to display.voidsetSortField(String sortField) Set thesort field.Methods inherited from class io.goobi.viewer.model.cms.widgets.CustomSidebarWidget
clone, getAdminBackendUrl, getDescription, getId, getSelectedLocale, getShortDescription, getStyleClass, getTitle, isCollapsed, isComplete, isEmpty, isHasShortDescription, isValid, setCollapsed, setId, setSelectedLocale, setStyleClass, setTitleMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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- widget instance to clone
-
-
Method Details
-
getFilterQuery
If this query is not empty only records matching this SOLR query are listed.- Returns:
- the Solr filter query restricting which RSS feed entries are shown, or an empty string if no filter is set
-
setFilterQuery
Set thefilter query.- Parameters:
filterQuery- the Solr filter query to restrict which RSS feed entries are shown
-
getSortField
A SOLR field to select and sort the listed entries by.- Returns:
- the Solr field name used for sorting RSS feed entries
-
setSortField
Set thesort field.- Parameters:
sortField- the Solr field name to sort the RSS feed entries by
-
isDescendingSorting
public boolean isDescendingSorting()Returns whether records are sorted in descending order.- Returns:
- true if entries are sorted in descending order, false otherwise
-
setDescendingSorting
public void setDescendingSorting(boolean descendingSorting) Set thedescending sorting.- Parameters:
descendingSorting- true to sort entries in descending order, false for ascending
-
getNumEntries
public int getNumEntries()The number of entries to display.- Returns:
- The number of entries to display
-
setNumEntries
public void setNumEntries(int numEntries) Sets the number of entries to display.- Parameters:
numEntries- the maximum number of RSS feed entries to show in the widget
-
getType
Description copied from class:CustomSidebarWidgetReturn the type of this custom sidebar widget. Must be implemented by subclasses ofCustomSidebarWidget- Overrides:
getTypein classCustomSidebarWidget- Returns:
CustomWidgetType
-