Package io.goobi.viewer.model.viewer
Class EventElement
java.lang.Object
io.goobi.viewer.model.viewer.EventElement
- All Implemented Interfaces:
Serializable
,Comparable<EventElement>
Event.
- See Also:
-
Constructor Summary
ConstructorDescriptionEventElement
(org.apache.solr.common.SolrDocument doc, Locale locale, boolean forSearchHit) Constructor for EventElement. -
Method Summary
Modifier and TypeMethodDescriptionint
Getter for the fielddateEnd
.Getter for the fielddateStart
.Getter for the fielddisplayDate
.getLabel()
getLabel.Getter for the fieldmetadata
.getSearchHitListForLocale
(Locale locale) Getter for the fieldsidebarMetadata
.getType()
Getter for the fieldtype
.boolean
hasMetadata.boolean
hasSidebarMetadata.void
setDateEnd
(LocalDateTime dateEnd) Setter for the fielddateEnd
.void
setDateStart
(LocalDateTime dateStart) Setter for the fielddateStart
.void
Setter for the fieldtype
.
-
Constructor Details
-
EventElement
public EventElement(org.apache.solr.common.SolrDocument doc, Locale locale, boolean forSearchHit) throws IndexUnreachableException, PresentationException Constructor for EventElement.
- Parameters:
doc
- Event Solr documentlocale
- aLocale
object.forSearchHit
-- Throws:
IndexUnreachableException
- if any.PresentationException
- if any.
-
-
Method Details
-
compareTo
- Specified by:
compareTo
in interfaceComparable<EventElement>
-
getDisplayDate
Getter for the field
displayDate
.- Returns:
- a
String
object.
-
getLabel
getLabel.
- Returns:
- a
String
object.
-
getType
Getter for the field
type
.- Returns:
- the type
-
setType
Setter for the field
type
.- Parameters:
type
- the type to set
-
getDateStart
Getter for the field
dateStart
.- Returns:
- the dateStart
-
setDateStart
Setter for the field
dateStart
.- Parameters:
dateStart
- the dateStart to set
-
getDateEnd
Getter for the field
dateEnd
.- Returns:
- the dateEnd
-
setDateEnd
Setter for the field
dateEnd
.- Parameters:
dateEnd
- the dateEnd to set
-
getMetadata
Getter for the field
metadata
.- Returns:
- the metadata
-
isHasMetadata
public boolean isHasMetadata()hasMetadata.
- Returns:
- a boolean.
-
isHasSidebarMetadata
public boolean isHasSidebarMetadata()hasSidebarMetadata.
- Returns:
- a boolean.
-
getSidebarMetadata
Getter for the field
sidebarMetadata
.- Returns:
- the sidebarMetadata
-
getSearchHitMetadata
- Returns:
- the searchHitMetadata
-
getSearchHitListForLocale
- Parameters:
locale
-- Returns:
- searchHitMetadata minus any fields that don't match the given locale
-
getSearchHitMetadataForCurrentLocale
- Returns:
- searchHitMetadata minus any fields that don't match the current locale
-