Package io.goobi.viewer.model.rss
Class RSSFeed
java.lang.Object
io.goobi.viewer.model.rss.RSSFeed
RSSFeed class.
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
createLink
(String rootPath, String pi, int pageNo, PageType pageType) createLink.static com.rometools.rome.feed.synd.SyndFeed
createRss.static com.rometools.rome.feed.synd.SyndFeed
createRss
(String rootPath, String query, List<String> filterQueries, String language, int maxItems, String sortField, boolean sortDescending) createRss.static String
createRssFeed
(String language, Integer maxHits, String subtheme, String query, String facets, javax.servlet.http.HttpServletRequest servletRequest, String sortField, boolean sortDescending) static Channel
createRssFeed
(String rootPath, String query, int rssFeedItems) createRssFeed.static Channel
createRssFeed
(String rootPath, String query, List<String> filterQueries, int rssFeedItems, String language, String sortField, boolean sortDescending) createRssFeed.static Channel
createRssResponse
(String language, Integer maxHits, String subtheme, String query, String facets, javax.servlet.http.HttpServletRequest servletRequest, String sortField, boolean sortDescending) getFieldsWithTranslation
(Locale locale) getFieldsWithTranslation.
-
Method Details
-
createRss
public static com.rometools.rome.feed.synd.SyndFeed createRss(String rootPath, String query, int maxItems) throws PresentationException, IndexUnreachableException, ViewerConfigurationException createRss.
- Parameters:
rootPath
- aString
object.query
- aString
object.maxItems
-- Returns:
- a
SyndFeed
object. - Throws:
PresentationException
- if any.IndexUnreachableException
- if any.ViewerConfigurationException
- if any.
-
getFieldsWithTranslation
getFieldsWithTranslation.
-
createRss
public static com.rometools.rome.feed.synd.SyndFeed createRss(String rootPath, String query, List<String> filterQueries, String language, int maxItems, String sortField, boolean sortDescending) throws PresentationException, IndexUnreachableException, ViewerConfigurationException createRss.
- Parameters:
rootPath
- aString
object.query
- aString
object.filterQueries
- aList
object.language
- aString
object.maxItems
-sortField
-sortDescending
-- Returns:
- a
SyndFeed
object. - Throws:
PresentationException
- if any.IndexUnreachableException
- if any.ViewerConfigurationException
- if any.
-
createRssFeed
public static Channel createRssFeed(String rootPath, String query, int rssFeedItems) throws PresentationException, IndexUnreachableException, ViewerConfigurationException createRssFeed.
- Parameters:
rootPath
- aString
object.query
- aString
object.rssFeedItems
- a int.- Returns:
- a
Channel
object. - Throws:
PresentationException
- if any.IndexUnreachableException
- if any.ViewerConfigurationException
- if any.
-
createRssFeed
public static Channel createRssFeed(String rootPath, String query, List<String> filterQueries, int rssFeedItems, String language, String sortField, boolean sortDescending) throws PresentationException, IndexUnreachableException, ViewerConfigurationException createRssFeed.
- Parameters:
rootPath
- aString
object.query
- aString
object.filterQueries
- aList
object.rssFeedItems
- a int.language
- aString
object.sortField
-sortDescending
-- Returns:
- a
Channel
object. - Throws:
PresentationException
- if any.IndexUnreachableException
- if any.ViewerConfigurationException
- if any.
-
createLink
createLink.
-
createRssResponse
public static Channel createRssResponse(String language, Integer maxHits, String subtheme, String query, String facets, javax.servlet.http.HttpServletRequest servletRequest, String sortField, boolean sortDescending) throws de.unigoettingen.sub.commons.contentlib.exceptions.ContentLibException - Parameters:
language
-maxHits
-subtheme
-query
-facets
-servletRequest
-sortField
-sortDescending
-- Returns:
Channel
- Throws:
de.unigoettingen.sub.commons.contentlib.exceptions.ContentLibException
-
createRssFeed
public static String createRssFeed(String language, Integer maxHits, String subtheme, String query, String facets, javax.servlet.http.HttpServletRequest servletRequest, String sortField, boolean sortDescending) throws de.unigoettingen.sub.commons.contentlib.exceptions.ContentLibException - Parameters:
language
-maxHits
-subtheme
-query
-facets
-servletRequest
-sortField
-sortDescending
-- Returns:
- RSS feed as
String
- Throws:
de.unigoettingen.sub.commons.contentlib.exceptions.ContentLibException
-