Package io.goobi.viewer.model.metadata
Class ComplexMetadataContainer
java.lang.Object
io.goobi.viewer.model.metadata.ComplexMetadataContainer
- Direct Known Subclasses:
RelationshipMetadataContainer
-
Field Summary
-
Constructor Summary
ConstructorDescriptionComplexMetadataContainer
(List<org.apache.solr.common.SolrDocument> metadataDocs) ComplexMetadataContainer
(List<org.apache.solr.common.SolrDocument> metadataDocs, Predicate<String> fieldNameFilter) ComplexMetadataContainer
(Map<String, List<ComplexMetadata>> metadataMap) -
Method Summary
Modifier and TypeMethodDescriptiongetFirstMetadataValue
(String metadataField, String filterField, String filterValue, String valueField, Locale locale) getMetadata
(String field) getMetadata
(String field, String sortField, Locale sortLanguage, String filterField, String filterValue, long limit) getMetadataValue
(String metadataField, String valueField, Locale locale) getMetadataValues
(String metadataField, String filterField, String filterValue, String valueField, Locale locale) getMetadataValues
(String metadataField, String valueField, Locale locale) long
getNumEntries
(String field, String filterField, String filterMatcher) boolean
static ComplexMetadataContainer
loadMetadataDocuments
(String pi, SolrSearchIndex searchIndex) static ComplexMetadataContainer
loadMetadataDocuments
(String pi, SolrSearchIndex searchIndex, Predicate<String> fieldNameFilter) static ComplexMetadataContainer
loadMetadataDocuments
(String pi, SolrSearchIndex searchIndex, List<String> fieldList) void
setSorting
(String sorting) protected Stream<ComplexMetadata>
streamMetadata
(String field, String sortField, Locale sortLanguage, String filterField, String filterMatcher, long listSizeLimit)
-
Field Details
-
metadataMap
-
-
Constructor Details
-
ComplexMetadataContainer
-
ComplexMetadataContainer
-
ComplexMetadataContainer
-
-
Method Details
-
setSorting
-
getSorting
-
isDescendingOrder
public boolean isDescendingOrder() -
getMetadata
-
getNumEntries
-
streamMetadata
-
getMetadata
-
getFieldNames
-
getMetadataValues
-
getMetadataValue
-
getMetadataValues
-
getFirstMetadataValue
-
loadMetadataDocuments
public static ComplexMetadataContainer loadMetadataDocuments(String pi, SolrSearchIndex searchIndex) throws PresentationException, IndexUnreachableException -
loadMetadataDocuments
public static ComplexMetadataContainer loadMetadataDocuments(String pi, SolrSearchIndex searchIndex, Predicate<String> fieldNameFilter) throws PresentationException, IndexUnreachableException -
loadMetadataDocuments
public static ComplexMetadataContainer loadMetadataDocuments(String pi, SolrSearchIndex searchIndex, List<String> fieldList) throws PresentationException, IndexUnreachableException
-