Class CollectionBuilder
java.lang.Object
io.goobi.viewer.model.iiif.presentation.v2.builder.AbstractBuilder
io.goobi.viewer.model.iiif.presentation.v2.builder.CollectionBuilder
CollectionBuilder class.
- Author:
- Florian Alpers
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final String[]Required field to create manifest stubs for works in collectionstatic final StringConstantRSS_FEED_FORMAT="Rss feed"static final StringConstantRSS_FEED_LABEL="Rss feed"Fields inherited from class io.goobi.viewer.model.iiif.presentation.v2.builder.AbstractBuilderconfig, REQUIRED_SOLR_FIELDS, urls
- 
Constructor SummaryConstructorsConstructorDescriptionCollectionBuilder(AbstractApiUrlManager apiUrlManager) Constructor for CollectionBuilder.
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddContainedWorks(String collectionField, String topElement, de.intranda.api.iiif.presentation.v2.Collection2 collection) addContainedWorks.voidaddTagListService(de.intranda.api.iiif.presentation.v2.Collection2 collection, String collectionField, String facetField, String label) Add a taglist service to the collection and all subcollections.de.intranda.api.iiif.presentation.v2.Collection2createCollection(CollectionView collectionView, HierarchicalBrowseDcElement baseElement, URI uri) createCollection.createCollectionQuery(String collectionField, String topElement) createCollectionQuery.createCollectionView(String collectionField, String facetField, String splittingChar) de.intranda.api.iiif.presentation.v2.Collection2generateCollection(String collectionField, String topElement, String facetField, String splittingChar, List<String> ignoreCollections) generateCollection.getCollectionView(String collectionField, String groupingField, String splittingChar) getCollectionView.getFacetField(String collectionField) getFacetField.Methods inherited from class io.goobi.viewer.model.iiif.presentation.v2.builder.AbstractBuilderabsolutize, absolutize, addCrowdourcingAnnotations, addEventMetadataToWorkElement, addLanguageFields, addMetadata, addRendering, addSeeAlso, contained, getAnnotationListURI, getAnnotationListURI, getAnnotationURI, getAnnotationURI, getAttributions, getAutoCompleteServiceURI, getAutoSuggestURI, getCanvasURI, getCollectionURI, getCommentAnnotationURI, getDescription, getDocument, getDocumentWithChildren, getEventFields, getExternalManifestURI, getImageAnnotationURI, getLabel, getLabel, getLabelIfExists, getLayerURI, getLidoResolverUrl, getLocale, getManifestURI, getManifestURI, getMetsResolverUrl, getPageManifestURI, getPageOrderFromCanvasURI, getPIFromCanvasURI, getRangeURI, getRenderings, getSearchServiceURI, getSearchURI, getSeeAlsos, getSequenceURI, getSolrFieldList, getViewUrl
- 
Field Details- 
CONTAINED_WORKS_QUERY_FIELDSRequired field to create manifest stubs for works in collection
- 
RSS_FEED_LABELConstantRSS_FEED_LABEL="Rss feed"- See Also:
 
- 
RSS_FEED_FORMATConstantRSS_FEED_FORMAT="Rss feed"- See Also:
 
 
- 
- 
Constructor Details- 
CollectionBuilderConstructor for CollectionBuilder. - Parameters:
- apiUrlManager-
- Throws:
- URISyntaxException- if any.
 
 
- 
- 
Method Details- 
generateCollectionpublic de.intranda.api.iiif.presentation.v2.Collection2 generateCollection(String collectionField, String topElement, String facetField, String splittingChar, List<String> ignoreCollections) throws IndexUnreachableException, URISyntaxException, PresentationException, ViewerConfigurationException, de.unigoettingen.sub.commons.contentlib.exceptions.IllegalRequestException generateCollection. - Parameters:
- collectionField- a- Stringobject.
- topElement- a- Stringobject.
- facetField- A SOLR field which values are requested for all records within the collection and stored within the collection for later use
- splittingChar- a- Stringobject.
- ignoreCollections-
- Returns:
- a Collection2object.
- Throws:
- IndexUnreachableException- if any.
- URISyntaxException- if any.
- PresentationException- if any.
- ViewerConfigurationException- if any.
- de.unigoettingen.sub.commons.contentlib.exceptions.IllegalRequestException- if the top element is not empty and is not a collection
 
- 
addContainedWorkspublic void addContainedWorks(String collectionField, String topElement, de.intranda.api.iiif.presentation.v2.Collection2 collection) throws PresentationException, IndexUnreachableException, URISyntaxException addContainedWorks. - Parameters:
- collectionField- a- Stringobject.
- topElement- a- Stringobject.
- collection- a- Collection2object.
- Throws:
- PresentationException- if any.
- IndexUnreachableException- if any.
- URISyntaxException- if any.
 
- 
createCollectionQuerycreateCollectionQuery. 
- 
createCollectionpublic de.intranda.api.iiif.presentation.v2.Collection2 createCollection(CollectionView collectionView, HierarchicalBrowseDcElement baseElement, URI uri) throws URISyntaxException, ViewerConfigurationException createCollection. - Parameters:
- collectionView- a- CollectionViewobject.
- baseElement- a- HierarchicalBrowseDcElementobject.
- uri- a- URIobject.
- Returns:
- a Collection2object.
- Throws:
- URISyntaxException- if any.
- ViewerConfigurationException- if any.
 
- 
addTagListServicepublic void addTagListService(de.intranda.api.iiif.presentation.v2.Collection2 collection, String collectionField, String facetField, String label) throws IndexUnreachableException, de.unigoettingen.sub.commons.contentlib.exceptions.IllegalRequestException Add a taglist service to the collection and all subcollections. The taglist service provides a list of- Parameters:
- collection-
- collectionField-
- facetField-
- label-
- Throws:
- IndexUnreachableException
- de.unigoettingen.sub.commons.contentlib.exceptions.IllegalRequestException
 
- 
getCollectionViewpublic CollectionView getCollectionView(String collectionField, String groupingField, String splittingChar) throws IndexUnreachableException, de.unigoettingen.sub.commons.contentlib.exceptions.IllegalRequestException getCollectionView. - Parameters:
- collectionField- a- Stringobject.
- groupingField- a- Stringobject.
- splittingChar- a- Stringobject.
- Returns:
- a CollectionViewobject.
- Throws:
- IndexUnreachableException- if any.
- de.unigoettingen.sub.commons.contentlib.exceptions.IllegalRequestException
 
- 
createCollectionViewpublic CollectionView createCollectionView(String collectionField, String facetField, String splittingChar) throws IndexUnreachableException, de.unigoettingen.sub.commons.contentlib.exceptions.IllegalRequestException - Parameters:
- collectionField-
- facetField- A SOLR field which values are queried and kept in the collectionView for later use
- splittingChar-
- Returns:
- CollectionView
- Throws:
- IndexUnreachableException
- de.unigoettingen.sub.commons.contentlib.exceptions.IllegalRequestException
 
- 
getFacetFieldgetFacetField. 
 
-