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
FieldsFields inherited from class io.goobi.viewer.model.iiif.presentation.v2.builder.AbstractBuilder
config, REQUIRED_SOLR_FIELDS, urls -
Constructor Summary
ConstructorsConstructorDescriptionManifestBuilder(AbstractApiUrlManager apiUrlManager) Constructor for ManifestBuilder. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAnchor.voidaddRenderings(de.intranda.api.iiif.presentation.v2.AbstractPresentationModelElement2 manifest, StructElement ele, Optional<PhysicalElement> page) voidaddSeeAlsos(de.intranda.api.iiif.presentation.v2.AbstractPresentationModelElement2 manifest, StructElement ele) voidaddVolumes(de.intranda.api.iiif.presentation.v2.Collection2 anchor, List<StructElement> volumes) addVolumes.de.intranda.api.iiif.presentation.v2.AbstractPresentationModelElement2generateManifest(StructElement ele, List<Integer> pagesToInclude) generateManifest.Getter for the fieldbuildMode.protected booleanisAltoAvailable(StructElement ele, Optional<PhysicalElement> page) protected booleanisHasPages(StructElement ele, Optional<PhysicalElement> page) protected booleanisPlaintextAvailable(StructElement ele, Optional<PhysicalElement> page) voidpopulate(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- aStructElementobject.pagesToInclude-- Returns:
- a
IPresentationModelElementobject. - 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- aStructElementobject.manifest- aAbstractPresentationModelElement2object.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
-
isPlaintextAvailable
-
isAltoAvailable
-
isHasPages
-
addVolumes
public void addVolumes(de.intranda.api.iiif.presentation.v2.Collection2 anchor, List<StructElement> volumes) addVolumes.
- Parameters:
anchor- aCollection2object.volumes- aListobject.
-
addAnchor
public void addAnchor(de.intranda.api.iiif.presentation.v2.Manifest2 manifest, String anchorPI) throws PresentationException, IndexUnreachableException, URISyntaxException, DAOException addAnchor.
- Parameters:
manifest- aManifest2object.anchorPI- aStringobject.- 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
ManifestBuilderobject.
-