Class LayerBuilder
java.lang.Object
io.goobi.viewer.model.iiif.presentation.v2.builder.AbstractBuilder
io.goobi.viewer.model.iiif.presentation.v2.builder.LayerBuilder
LayerBuilder 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
ConstructorDescriptionLayerBuilder
(AbstractApiUrlManager apiUrlManager) Constructor for LayerBuilder. -
Method Summary
Modifier and TypeMethodDescriptionde.intranda.api.annotation.oa.OpenAnnotation
createAnnotation
(URI annotationId, URI linkURI, de.intranda.api.iiif.presentation.enums.Format format, de.intranda.api.iiif.presentation.enums.DcType dcType, de.intranda.api.iiif.presentation.enums.AnnotationType annoType, String motivation) createAnnotation.de.intranda.api.iiif.presentation.v2.Layer
createAnnotationLayer
(String pi, de.intranda.api.iiif.presentation.enums.AnnotationType type, String motivation, BiFunction<String, String, List<Path>> fileGetter, BiFunction<String, String, URI> linkGetter) createAnnotationLayer.de.intranda.api.iiif.presentation.v2.AnnotationList
createAnnotationList
(List<de.intranda.api.annotation.IAnnotation> annotations, URI id, de.intranda.api.iiif.presentation.enums.AnnotationType type) createAnnotationList.de.intranda.api.iiif.presentation.v2.Layer
generateLayer
(String pi, Map<de.intranda.api.iiif.presentation.enums.AnnotationType, List<de.intranda.api.iiif.presentation.v2.AnnotationList>> annoLists, de.intranda.api.iiif.presentation.enums.AnnotationType annoType) generateLayer.Map<de.intranda.api.iiif.presentation.enums.AnnotationType,
de.intranda.api.iiif.presentation.v2.AnnotationList> mergeAnnotationLists
(String pi, Map<de.intranda.api.iiif.presentation.enums.AnnotationType, List<de.intranda.api.iiif.presentation.v2.AnnotationList>> annoLists) mergeAnnotationLists.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
-
Constructor Details
-
LayerBuilder
Constructor for LayerBuilder.
- Parameters:
apiUrlManager
-
-
-
Method Details
-
createAnnotationLayer
public de.intranda.api.iiif.presentation.v2.Layer createAnnotationLayer(String pi, de.intranda.api.iiif.presentation.enums.AnnotationType type, String motivation, BiFunction<String, String, throws PresentationException, IndexUnreachableException, IOException, URISyntaxExceptionList<Path>> fileGetter, BiFunction<String, String, URI> linkGetter) createAnnotationLayer.
- Parameters:
pi
- aString
object.type
- aAnnotationType
object.motivation
- aString
object.fileGetter
- aBiFunction
object.linkGetter
- aBiFunction
object.- Returns:
- a
Layer
object. - Throws:
PresentationException
- if any.IndexUnreachableException
- if any.IOException
- if any.URISyntaxException
- if any.
-
createAnnotation
public de.intranda.api.annotation.oa.OpenAnnotation createAnnotation(URI annotationId, URI linkURI, de.intranda.api.iiif.presentation.enums.Format format, de.intranda.api.iiif.presentation.enums.DcType dcType, de.intranda.api.iiif.presentation.enums.AnnotationType annoType, String motivation) createAnnotation.
-
createAnnotationList
public de.intranda.api.iiif.presentation.v2.AnnotationList createAnnotationList(List<de.intranda.api.annotation.IAnnotation> annotations, URI id, de.intranda.api.iiif.presentation.enums.AnnotationType type) createAnnotationList.
-
generateLayer
public de.intranda.api.iiif.presentation.v2.Layer generateLayer(String pi, Map<de.intranda.api.iiif.presentation.enums.AnnotationType, List<de.intranda.api.iiif.presentation.v2.AnnotationList>> annoLists, de.intranda.api.iiif.presentation.enums.AnnotationType annoType) throws URISyntaxExceptiongenerateLayer.
- Parameters:
pi
- aString
object.annoLists
- aMap
object.annoType
- aAnnotationType
object.- Returns:
- a
Layer
object. - Throws:
URISyntaxException
- if any.
-
mergeAnnotationLists
public Map<de.intranda.api.iiif.presentation.enums.AnnotationType,de.intranda.api.iiif.presentation.v2.AnnotationList> mergeAnnotationLists(String pi, Map<de.intranda.api.iiif.presentation.enums.AnnotationType, List<de.intranda.api.iiif.presentation.v2.AnnotationList>> annoLists) throws URISyntaxExceptionmergeAnnotationLists.
- Parameters:
pi
- aString
object.annoLists
- aMap
object.- Returns:
- a
Map
object. - Throws:
URISyntaxException
- if any.
-