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
ConstructorsConstructorDescriptionEmpty default constructorCloning constructor -
Method Summary
Modifier and TypeMethodDescriptionIf this query is not empty only records matching this SOLR query are listedintThe number of entries to displayA SOLR field to select and sort the listed entries by.getType()Return the type of this custom sidebar widget.booleanWhether the records are selected and sorted ins descending ordervoidsetDescendingSorting(boolean descendingSorting) Set thedescending sortingvoidsetFilterQuery(String filterQuery) Set thefilter queryvoidsetNumEntries(int numEntries) Set the number of entries to displayvoidsetSortField(String sortField) Set thesort fieldMethods 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-
-
-
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:CustomSidebarWidgetReturn the type of this custom sidebar widget. Must be implemented by subclasses ofCustomSidebarWidget- Overrides:
getTypein classCustomSidebarWidget- Returns:
CustomWidgetType
-