Package io.goobi.viewer.model.metadata
Class RelationshipMetadataContainer
java.lang.Object
io.goobi.viewer.model.metadata.ComplexMetadataContainer
io.goobi.viewer.model.metadata.RelationshipMetadataContainer
-
Field Summary
Fields inherited from class io.goobi.viewer.model.metadata.ComplexMetadataContainer
metadataMap
-
Constructor Summary
ConstructorDescriptionRelationshipMetadataContainer
(List<org.apache.solr.common.SolrDocument> metadataDocs, Predicate<String> fieldNameFilter, Map<String, MetadataContainer> relatedDocumentMap) RelationshipMetadataContainer
(List<org.apache.solr.common.SolrDocument> metadataDocs, Map<String, MetadataContainer> relatedDocumentMap) RelationshipMetadataContainer
(Map<String, List<ComplexMetadata>> metadataMap, Map<String, MetadataContainer> relatedDocumentMap) -
Method Summary
Modifier and TypeMethodDescriptiongetMetadata
(String field, String sortField, Locale sortLanguage, String filterField, String filterMatcher, boolean hideUnlinkedRecords, long limit) getMetadata
(String field, String sortField, Locale sortLanguage, String filterField, String filterMatcher, long limit) getMetadataValues
(String metadataField, String filterField, String filterValue, String valueField, Locale locale) long
getNumEntries
(String field, String filterField, String filterValue) long
getNumEntries
(String field, String filterField, String filterMatcher, boolean hideUninkedEntries) getRelatedRecord
(ComplexMetadata relationship) static ComplexMetadataContainer
loadRelationshipMetadata
(String pi, SolrSearchIndex searchIndex) loadRelationshipMetadata
(String pi, SolrSearchIndex searchIndex, List<String> recordFields) loadRelationships
(ComplexMetadataContainer container) loadRelationships
(ComplexMetadataContainer container, SolrSearchIndex searchIndex) loadRelationships
(SolrSearchIndex searchIndex, List<String> recordFields, ComplexMetadataContainer container) Methods inherited from class io.goobi.viewer.model.metadata.ComplexMetadataContainer
getFieldNames, getFirstMetadataValue, getMetadata, getMetadataValue, getMetadataValues, getSorting, isDescendingOrder, loadMetadataDocuments, loadMetadataDocuments, loadMetadataDocuments, setSorting, streamMetadata
-
Field Details
-
FIELD_IN_RELATED_DOCUMENT_PREFIX
- See Also:
-
DOCUMENT_IDENTIFIER
- See Also:
-
RELATIONSHIP_ID_REFERENCE
- See Also:
-
-
Constructor Details
-
RelationshipMetadataContainer
-
RelationshipMetadataContainer
public RelationshipMetadataContainer(List<org.apache.solr.common.SolrDocument> metadataDocs, Map<String, MetadataContainer> relatedDocumentMap) -
RelationshipMetadataContainer
public RelationshipMetadataContainer(Map<String, List<ComplexMetadata>> metadataMap, Map<String, MetadataContainer> relatedDocumentMap)
-
-
Method Details
-
getRelatedRecord
-
loadRelationshipMetadata
public static RelationshipMetadataContainer loadRelationshipMetadata(String pi, SolrSearchIndex searchIndex, List<String> recordFields) throws PresentationException, IndexUnreachableException -
loadRelationships
public static RelationshipMetadataContainer loadRelationships(ComplexMetadataContainer container) throws PresentationException, IndexUnreachableException -
loadRelationships
public static RelationshipMetadataContainer loadRelationships(ComplexMetadataContainer container, SolrSearchIndex searchIndex) throws PresentationException, IndexUnreachableException -
loadRelationships
public static RelationshipMetadataContainer loadRelationships(SolrSearchIndex searchIndex, List<String> recordFields, ComplexMetadataContainer container) throws PresentationException, IndexUnreachableException -
loadRelationshipMetadata
public static ComplexMetadataContainer loadRelationshipMetadata(String pi, SolrSearchIndex searchIndex) throws PresentationException, IndexUnreachableException -
getNumEntries
- Overrides:
getNumEntries
in classComplexMetadataContainer
-
getNumEntries
-
getMetadata
public List<ComplexMetadata> getMetadata(String field, String sortField, Locale sortLanguage, String filterField, String filterMatcher, long limit) - Overrides:
getMetadata
in classComplexMetadataContainer
-
getMetadata
-
getMetadataValues
public List<String> getMetadataValues(String metadataField, String filterField, String filterValue, String valueField, Locale locale) - Overrides:
getMetadataValues
in classComplexMetadataContainer
-