Class ManifestBuilder
java.lang.Object
io.goobi.viewer.model.iiif.presentation.v2.builder.AbstractBuilder
io.goobi.viewer.model.iiif.presentation.v2.builder.ManifestBuilder
ManifestBuilder class.
- Author:
- Florian Alpers
-
Field Summary
Fields inherited from class io.goobi.viewer.model.iiif.presentation.v2.builder.AbstractBuilder
config, REQUIRED_SOLR_FIELDS, urls
-
Constructor Summary
ConstructorDescriptionManifestBuilder
(AbstractApiUrlManager apiUrlManager) Constructor for ManifestBuilder. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addAnchor.void
addRenderings
(de.intranda.api.iiif.presentation.v2.AbstractPresentationModelElement2 manifest, StructElement ele, Optional<PhysicalElement> page) void
addSeeAlsos
(de.intranda.api.iiif.presentation.v2.AbstractPresentationModelElement2 manifest, StructElement ele) void
addVolumes
(de.intranda.api.iiif.presentation.v2.Collection2 anchor, List<StructElement> volumes) addVolumes.de.intranda.api.iiif.presentation.v2.AbstractPresentationModelElement2
generateManifest
(StructElement ele, List<Integer> pagesToInclude) generateManifest.Getter for the fieldbuildMode
.void
populate
(StructElement ele, de.intranda.api.iiif.presentation.v2.AbstractPresentationModelElement2 manifest, List<PhysicalElement> pages) populate.setBuildMode
(BuildMode buildMode) Setter for the fieldbuildMode
.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
-
-
Constructor Details
-
ManifestBuilder
Constructor for ManifestBuilder.
- Parameters:
apiUrlManager
-
-
-
Method Details
-
generateManifest
public de.intranda.api.iiif.presentation.v2.AbstractPresentationModelElement2 generateManifest(StructElement ele, List<Integer> pagesToInclude) throws URISyntaxException, PresentationException, IndexUnreachableException, ViewerConfigurationException, DAOException generateManifest.
- Parameters:
ele
- aStructElement
object.pagesToInclude
-- Returns:
- a
IPresentationModelElement
object. - Throws:
URISyntaxException
- if any.PresentationException
- if any.IndexUnreachableException
- if any.ViewerConfigurationException
- if any.DAOException
- if any.
-
populate
public void populate(StructElement ele, de.intranda.api.iiif.presentation.v2.AbstractPresentationModelElement2 manifest, List<PhysicalElement> pages) throws ViewerConfigurationException, IndexUnreachableException, DAOException, PresentationException populate.
- Parameters:
ele
- aStructElement
object.manifest
- aAbstractPresentationModelElement2
object.pages
-- Throws:
ViewerConfigurationException
- if any.IndexUnreachableException
- if any.DAOException
- if any.PresentationException
- if any.
-
addSeeAlsos
public void addSeeAlsos(de.intranda.api.iiif.presentation.v2.AbstractPresentationModelElement2 manifest, StructElement ele) -
addRenderings
public void addRenderings(de.intranda.api.iiif.presentation.v2.AbstractPresentationModelElement2 manifest, StructElement ele, Optional<PhysicalElement> page) - Parameters:
manifest
-ele
-page
-- Throws:
URISyntaxException
-
addVolumes
public void addVolumes(de.intranda.api.iiif.presentation.v2.Collection2 anchor, List<StructElement> volumes) addVolumes.
- Parameters:
anchor
- aCollection2
object.volumes
- aList
object.
-
addAnchor
public void addAnchor(de.intranda.api.iiif.presentation.v2.Manifest2 manifest, String anchorPI) throws PresentationException, IndexUnreachableException, URISyntaxException, DAOException addAnchor.
- Parameters:
manifest
- aManifest2
object.anchorPI
- aString
object.- Throws:
PresentationException
- if any.IndexUnreachableException
- if any.URISyntaxException
- if any.DAOException
- if any.
-
getBuildMode
Getter for the field
buildMode
.- Returns:
- the buildMode
-
setBuildMode
Setter for the field
buildMode
.- Parameters:
buildMode
- the buildMode to set- Returns:
- a
ManifestBuilder
object.
-