Class StructureBuilder
java.lang.Object
io.goobi.viewer.model.iiif.presentation.v2.builder.AbstractBuilder
io.goobi.viewer.model.iiif.presentation.v2.builder.StructureBuilder
StructureBuilder class.
- Author:
- Florian Alpers
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringConstantBASE_RANGE_LABEL="CONTENT".protected ImageDeliveryBeanFields inherited from class io.goobi.viewer.model.iiif.presentation.v2.builder.AbstractBuilder
config, REQUIRED_SOLR_FIELDS, urls -
Constructor Summary
ConstructorsConstructorDescriptionStructureBuilder(AbstractApiUrlManager apiUrlManager) Constructor for StructureBuilder. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddRenderings(de.intranda.api.iiif.presentation.v2.AbstractPresentationModelElement2 range, StructElement ele) List<de.intranda.api.iiif.presentation.v2.Range2> generateStructure(List<StructElement> elements, String pi, boolean useMembers) Generates the topmost range from the given elements.List<de.intranda.api.iiif.presentation.v2.Range2> getDescendents(de.intranda.api.iiif.presentation.v2.Range2 range) getDescendents.voidpopulate(StructElement ele, String pi, de.intranda.api.iiif.presentation.v2.Range2 range) Adds Metadata and links to external services to a range.voidpopulatePages(StructElement doc, String pi, de.intranda.api.iiif.presentation.v2.Range2 range) populatePages.Methods inherited from class io.goobi.viewer.model.iiif.presentation.v2.builder.AbstractBuilder
absolutize, 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
-
imageDelivery
-
BASE_RANGE_LABEL
ConstantBASE_RANGE_LABEL="CONTENT".- See Also:
-
-
Constructor Details
-
StructureBuilder
Constructor for StructureBuilder.
- Parameters:
apiUrlManager-
-
-
Method Details
-
generateStructure
public List<de.intranda.api.iiif.presentation.v2.Range2> generateStructure(List<StructElement> elements, String pi, boolean useMembers) throws ViewerConfigurationException, IndexUnreachableException, DAOException, PresentationException, URISyntaxException Generates the topmost range from the given elements. This is an abstract "CONTENT" range if baseElement is a work, or the range representing the given baseElement otherwise.- Parameters:
elements- All elements to include in the listpi- aStringobject.useMembers- a boolean.- Returns:
- a
Listobject. - Throws:
ViewerConfigurationException- if any.IndexUnreachableException- if any.DAOException- if any.PresentationException- if any.URISyntaxException- if any.
-
populate
public void populate(StructElement ele, String pi, de.intranda.api.iiif.presentation.v2.Range2 range) throws ViewerConfigurationException, IndexUnreachableException, DAOException, PresentationException Adds Metadata and links to external services to a range.- Parameters:
ele- aStructElementobject.pi- aStringobject.range- aRange2object.- Throws:
ViewerConfigurationException- if any.IndexUnreachableException- if any.DAOException- if any.PresentationException- if any.
-
addRenderings
public void addRenderings(de.intranda.api.iiif.presentation.v2.AbstractPresentationModelElement2 range, StructElement ele) - Parameters:
range-ele-
-
populatePages
public void populatePages(StructElement doc, String pi, de.intranda.api.iiif.presentation.v2.Range2 range) throws URISyntaxException, IndexUnreachableException populatePages.
- Parameters:
doc- aStructElementobject.pi- aStringobject.range- aRange2object.- Throws:
URISyntaxException- if any.IndexUnreachableException- if any.
-
getDescendents
public List<de.intranda.api.iiif.presentation.v2.Range2> getDescendents(de.intranda.api.iiif.presentation.v2.Range2 range) getDescendents.
- Parameters:
range- aRange2object.- Returns:
- a
Listobject.
-