Package io.goobi.viewer.model.rss
Class RssItem
java.lang.Object
io.goobi.viewer.model.rss.RssItem
- All Implemented Interfaces:
IAccessDeniedThumbnailOutput,Comparable<RssItem>
Represents a single object within an RSS feed.
- Author:
- Florian Alpers
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetAccessDeniedThumbnailUrl(Locale locale) Getter for the fieldcreator.Getter for the fielddescription.Getter for the fielddocType.getLink()Getter for the fieldlink.Getter for the fieldpubDate.getTitle()Getter for the fieldtitle.voidsetAccessPermissionThumbnail(AccessPermission accessPermissionThumbnail) voidsetCreator(String creator) Setter for the fieldcreator.voidsetDescription(Description description) Setter for the fielddescription.voidsetDocType(String docType) Setter for the fielddocType.voidSetter for the fieldlink.voidsetPubDate(Date pubDate) Setter for the fieldpubDate.voidSetter for the fieldtitle.
-
Constructor Details
-
RssItem
public RssItem()
-
-
Method Details
-
getAccessDeniedThumbnailUrl
- Specified by:
getAccessDeniedThumbnailUrlin interfaceIAccessDeniedThumbnailOutput- Parameters:
locale- locale for selecting the appropriate image- Returns:
- Configured image URI for the given language; null if none found
-
getTitle
Getter for the fieldtitle.- Returns:
- the title of this RSS item
-
setTitle
Setter for the fieldtitle.- Parameters:
title- the title of this RSS item
-
getLink
Getter for the fieldlink.- Returns:
- the URL of the record or resource represented by this RSS item
-
setLink
Setter for the fieldlink.- Parameters:
link- the URL of the record or resource represented by this RSS item
-
getDescription
Getter for the fielddescription.- Returns:
- the structured description object containing image and text for this RSS item
-
setDescription
Setter for the fielddescription.- Parameters:
description- the structured description object containing image and text for this RSS item
-
getPubDate
Getter for the fieldpubDate.- Returns:
- the publication date of this RSS item, used for sorting
-
setPubDate
Setter for the fieldpubDate.- Parameters:
pubDate- the publication date of this RSS item, used for sorting
-
getCreator
Getter for the fieldcreator.- Returns:
- the Dublin Core creator (author or responsible party) of this RSS item
-
setCreator
Setter for the fieldcreator.- Parameters:
creator- the Dublin Core creator (author or responsible party) of this RSS item
-
setDocType
Setter for the fielddocType.- Parameters:
docType- the Solr document type of the record represented by this RSS item (e.g. "monograph", "periodical")
-
getDocType
Getter for the fielddocType.- Returns:
- the Solr document type of the record represented by this RSS item (e.g. "monograph", "periodical")
-
setAccessPermissionThumbnail
-
compareTo
Sorts the items accoring to their publication date
- Specified by:
compareToin interfaceComparable<RssItem>
-