Class RssItem

java.lang.Object
io.goobi.viewer.model.rss.RssItem
All Implemented Interfaces:
IAccessDeniedThumbnailOutput, Comparable<RssItem>

public class RssItem extends Object implements Comparable<RssItem>, IAccessDeniedThumbnailOutput
Represents a single object within an RSS feed.
Author:
Florian Alpers
  • Constructor Details

    • RssItem

      public RssItem()
  • Method Details

    • getAccessDeniedThumbnailUrl

      public String getAccessDeniedThumbnailUrl(Locale locale)
      Specified by:
      getAccessDeniedThumbnailUrl in interface IAccessDeniedThumbnailOutput
      Parameters:
      locale - locale for selecting the appropriate image
      Returns:
      Configured image URI for the given language; null if none found
    • getTitle

      public String getTitle()
      Getter for the field title.
      Returns:
      the title of this RSS item
    • setTitle

      public void setTitle(String title)
      Setter for the field title.
      Parameters:
      title - the title of this RSS item
    • getLink

      public String getLink()
      Getter for the field link.
      Returns:
      the URL of the record or resource represented by this RSS item
    • setLink

      public void setLink(String link)
      Setter for the field link.
      Parameters:
      link - the URL of the record or resource represented by this RSS item
    • getDescription

      public Description getDescription()
      Getter for the field description.
      Returns:
      the structured description object containing image and text for this RSS item
    • setDescription

      public void setDescription(Description description)
      Setter for the field description.
      Parameters:
      description - the structured description object containing image and text for this RSS item
    • getPubDate

      public Date getPubDate()
      Getter for the field pubDate.
      Returns:
      the publication date of this RSS item, used for sorting
    • setPubDate

      public void setPubDate(Date pubDate)
      Setter for the field pubDate.
      Parameters:
      pubDate - the publication date of this RSS item, used for sorting
    • getCreator

      public String getCreator()
      Getter for the field creator.
      Returns:
      the Dublin Core creator (author or responsible party) of this RSS item
    • setCreator

      public void setCreator(String creator)
      Setter for the field creator.
      Parameters:
      creator - the Dublin Core creator (author or responsible party) of this RSS item
    • setDocType

      public void setDocType(String docType)
      Setter for the field docType.
      Parameters:
      docType - the Solr document type of the record represented by this RSS item (e.g. "monograph", "periodical")
    • getDocType

      public String getDocType()
      Getter for the field docType.
      Returns:
      the Solr document type of the record represented by this RSS item (e.g. "monograph", "periodical")
    • setAccessPermissionThumbnail

      public void setAccessPermissionThumbnail(AccessPermission accessPermissionThumbnail)
    • compareTo

      public int compareTo(RssItem other)

      Sorts the items accoring to their publication date

      Specified by:
      compareTo in interface Comparable<RssItem>