Class BrowseDcElement
java.lang.Object
io.goobi.viewer.model.viewer.collections.BrowseDcElement
- All Implemented Interfaces:
Serializable
,Comparable<BrowseDcElement>
- Direct Known Subclasses:
HierarchicalBrowseDcElement
Collection tree element.
- See Also:
-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionBrowseDcElement
(BrowseDcElement blueprint) Constructor for BrowseDcElement.BrowseDcElement
(String name, long number, String field, String sortField, String splittingChar, int displayNumberOfVolumesLevel) Constructor for BrowseDcElement. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addToNumber
(long inNumber) addToNumber.int
boolean
Returns the message key for the collection description.getDescription
(String language) Returns the message key for the collection description for the given language.getField()
getIcon()
getIcon.getInfo()
Getter for the fieldinfo
.getLabel()
getLabel.int
getLevel()
getLevel.getLuceneName.getName()
Getter for the fieldname
.long
getNumberOfVolumes.getParentName.Returns the message key for the collection representative image urlReturns the RSS feed URL for this collection using the JSF context.Getter for the fieldsortField
.boolean
hasCMSDescription.int
hashCode()
boolean
hasIcon()
hasIcon.boolean
isDisplayNumberOfVolumes.boolean
isHasSubelements.boolean
isShowDescription.boolean
isShowSubElements.void
setFacetValues
(Collection<String> facetValues) void
setHasSubelements
(boolean hasSubelements) Setter for the fieldhasSubelements
.void
setInfo
(BrowseElementInfo info) Setter for the fieldinfo
.void
setShowDescription
(boolean showDescription) Setter for the fieldshowDescription
.void
setShowSubElements
(boolean showSubElements) Setter for the fieldshowSubElements
.void
setSingleRecordUrl
(String singleRecordUrl) void
setSortField
(String sortField) Setter for the fieldsortField
.toString()
-
Constructor Details
-
BrowseDcElement
public BrowseDcElement(String name, long number, String field, String sortField, String splittingChar, int displayNumberOfVolumesLevel) Constructor for BrowseDcElement.
-
BrowseDcElement
Constructor for BrowseDcElement.
- Parameters:
blueprint
- aBrowseDcElement
object.
-
-
Method Details
-
compareTo
- Specified by:
compareTo
in interfaceComparable<BrowseDcElement>
-
hashCode
public int hashCode() -
equals
-
getName
Getter for the field
name
. If theCMSCollection
translation is desired, usegetLabel()
instead.- Returns:
- the name
-
getField
-
getLabel
getLabel.
- Returns:
CMSCollection
translation, if ava ilable; name otherwise
-
getDescription
Returns the message key for the collection description.- Returns:
- a
String
object.
-
getDescription
Returns the message key for the collection description for the given language.- Parameters:
language
- Requested language (ISO 639-1)- Returns:
String
-
getRepresentant
Returns the message key for the collection representative image url- Returns:
- a
String
object.
-
getLuceneName
getLuceneName.
- Returns:
- the name
-
addToNumber
public void addToNumber(long inNumber) addToNumber.
- Parameters:
inNumber
- a long.
-
setHasSubelements
public void setHasSubelements(boolean hasSubelements) Setter for the field
hasSubelements
.- Parameters:
hasSubelements
- a boolean.
-
isHasSubelements
public boolean isHasSubelements()isHasSubelements.
- Returns:
- a boolean.
-
isDisplayNumberOfVolumes
public boolean isDisplayNumberOfVolumes()isDisplayNumberOfVolumes.
- Returns:
- a boolean.
-
getNumberOfVolumes
public long getNumberOfVolumes()getNumberOfVolumes.
- Returns:
- number of elements
-
getSingleRecordUrl
- Returns:
- the singleRecordUrl
-
setSingleRecordUrl
- Parameters:
singleRecordUrl
- the singleRecordUrl to set
-
getLevel
public int getLevel()getLevel.
- Returns:
- a int.
-
getParentName
getParentName.
- Returns:
- a
String
object.
-
getSortField
Getter for the field
sortField
.- Returns:
- the sortField
-
setSortField
Setter for the field
sortField
.- Parameters:
sortField
- the sortField to set
-
isShowSubElements
public boolean isShowSubElements()isShowSubElements.
- Returns:
- a boolean.
-
setShowSubElements
public void setShowSubElements(boolean showSubElements) Setter for the field
showSubElements
.- Parameters:
showSubElements
- a boolean.
-
isShowDescription
public boolean isShowDescription()isShowDescription.
- Returns:
- the showDescription
-
setShowDescription
public void setShowDescription(boolean showDescription) Setter for the field
showDescription
.- Parameters:
showDescription
- the showDescription to set
-
getRssUrl
Returns the RSS feed URL for this collection using the JSF context.- Returns:
- RSS feed URL for this collection
- Throws:
ViewerConfigurationException
- if any.
-
getSolrFilterQuery
- Returns:
- +({field}:{name} {field}:{name}.*) +(ISWORK:* ISANCHOR:*)
-
toString
-
setInfo
Setter for the field
info
.- Parameters:
info
- the info to set
-
getInfo
Getter for the field
info
.- Returns:
- the info
-
hasCMSDescription
public boolean hasCMSDescription()hasCMSDescription.
- Returns:
- a boolean.
-
hasIcon
public boolean hasIcon()hasIcon.
- Returns:
- a boolean.
-
getIcon
getIcon.
- Returns:
- a
URI
object.
-
getFacetValues
- Returns:
- the facetValues
-
setFacetValues
- Parameters:
facetValues
- the facetValues to set
-