Class ManifestBuilder
java.lang.Object
io.goobi.viewer.model.iiif.presentation.v3.builder.AbstractBuilder
io.goobi.viewer.model.iiif.presentation.v3.builder.ManifestBuilder
Builds IIIF Presentation API v3 Manifest resources from Solr index data and content files.
- Author:
- Florian Alpers
-
Field Summary
Fields inherited from class io.goobi.viewer.model.iiif.presentation.v3.builder.AbstractBuilder
config, dataRetriever, request, thumbHeight, thumbWidth, urls, v1Builder -
Constructor Summary
ConstructorsConstructorDescriptionManifestBuilder(AbstractApiUrlManager apiUrlManager, HttpServletRequest request) Creates a new ManifestBuilder instance. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddPage(de.intranda.api.iiif.presentation.v3.Manifest3 manifest, PhysicalElement page) voidaddPage(de.intranda.api.iiif.presentation.v3.Manifest3 manifest, StructElement ele, int pageNo) de.intranda.api.iiif.presentation.v3.IPresentationModelElement3de.intranda.api.iiif.presentation.IPresentationModelElementMethods inherited from class io.goobi.viewer.model.iiif.presentation.v3.builder.AbstractBuilder
absolutize, absolutize, addMetadata, contained, createAnchorLink, createLabel, createRecordLink, escapeURI, getAnnotationListURI, getAnnotationListURI, getAnnotationURI, getAnnotationURI, getAttributions, getAutoCompleteServiceURI, getAutoSuggestURI, getCanvasURI, getCollectionURI, getCommentAnnotationURI, getDescription, getExternalManifestURI, getFilename, getImageAnnotationURI, getLabel, getLabel, getLabelIfExists, getLidoResolverUrl, getLocale, getManifestURI, getMetsResolverUrl, getPageOrderFromCanvasURI, getPIFromCanvasURI, getProvider, getRangeURI, getRequiredStatement, getRightsStatement, getSearchServiceURI, getSearchURI, getSolrFieldValue, getThumbnail, getThumbnail, getThumbnail, getThumbnail, getViewUrl, isAccessGranted, isAccessGranted
-
Constructor Details
-
ManifestBuilder
Creates a new ManifestBuilder instance.- Parameters:
apiUrlManager- URL manager providing API endpoint pathsrequest- current HTTP servlet request
-
-
Method Details
-
build
public de.intranda.api.iiif.presentation.v3.IPresentationModelElement3 build(String pi) throws PresentationException, IndexUnreachableException, de.unigoettingen.sub.commons.contentlib.exceptions.ContentLibException, URISyntaxException, DAOException - Parameters:
pi- persistent identifier of the record to build- Returns:
IPresentationModelElement3- Throws:
PresentationExceptionIndexUnreachableExceptionde.unigoettingen.sub.commons.contentlib.exceptions.ContentLibExceptionURISyntaxExceptionDAOExceptionViewerConfigurationException
-
build
public de.intranda.api.iiif.presentation.IPresentationModelElement build(String pi, Integer pageNo) throws PresentationException, IndexUnreachableException, de.unigoettingen.sub.commons.contentlib.exceptions.ContentLibException, URISyntaxException, DAOException - Throws:
PresentationExceptionIndexUnreachableExceptionde.unigoettingen.sub.commons.contentlib.exceptions.ContentLibExceptionURISyntaxExceptionDAOException
-
addPage
public void addPage(de.intranda.api.iiif.presentation.v3.Manifest3 manifest, StructElement ele, int pageNo) throws IndexUnreachableException, de.unigoettingen.sub.commons.contentlib.exceptions.ContentLibException, URISyntaxException, PresentationException, DAOException - Throws:
IndexUnreachableExceptionde.unigoettingen.sub.commons.contentlib.exceptions.ContentLibExceptionURISyntaxExceptionPresentationExceptionDAOException
-
addPage
public void addPage(de.intranda.api.iiif.presentation.v3.Manifest3 manifest, PhysicalElement page) throws IndexUnreachableException, de.unigoettingen.sub.commons.contentlib.exceptions.ContentLibException, URISyntaxException, PresentationException, DAOException - Throws:
IndexUnreachableExceptionde.unigoettingen.sub.commons.contentlib.exceptions.ContentLibExceptionURISyntaxExceptionPresentationExceptionDAOException
-