Class CalendarItemDay

java.lang.Object
io.goobi.viewer.model.calendar.AbstractCalendarItem
io.goobi.viewer.model.calendar.CalendarItemDay
All Implemented Interfaces:
ICalendarItem, Serializable, Comparable<ICalendarItem>

public class CalendarItemDay extends AbstractCalendarItem implements Serializable
Calendar browsing item representing a single day.
See Also:
  • Constructor Details

    • CalendarItemDay

      public CalendarItemDay(String name, int value, int hits)
      Creates a new CalendarItemDay instance.
      Parameters:
      name - display label for the day
      value - numeric day value (1–31)
      hits - number of search hits for this day
  • Method Details

    • getQuery

      public String getQuery()
      Getter for the field query.
      Returns:
      the Solr query string used to retrieve hits for this calendar day
    • setQuery

      public void setQuery(String query)
      Setter for the field query.
      Parameters:
      query - the Solr query string used to retrieve hits for this calendar day
    • getSingleResultUrl

      public String getSingleResultUrl()
      Getter for the field singleResultUrl.
      Returns:
      the URL to navigate to when exactly one hit exists for this calendar day
    • setSingleResultUrl

      public void setSingleResultUrl(String singleResultUrl)
      Setter for the field singleResultUrl.
      Parameters:
      singleResultUrl - the URL to navigate to when exactly one hit exists for this day
    • getDayOfWeek

      public String getDayOfWeek()
      Getter for the field dayOfWeek.
      Returns:
      the localised name of the day of the week (e.g. "Monday")
    • setDayOfWeek

      public void setDayOfWeek(String dayOfWeek)
      Setter for the field dayOfWeek.
      Parameters:
      dayOfWeek - the localised name of the day of the week (e.g. "Monday")
    • toString

      public String toString()
      Overrides:
      toString in class Object