Interface PresentationService
-
- All Known Implementing Classes:
PresentationServiceImpl
public interface PresentationServiceService for IIIF Presentation API functionality.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default <T extends de.digitalcollections.iiif.model.sharedcanvas.Resource>
TcopyAttributionInfo(de.digitalcollections.iiif.model.sharedcanvas.Manifest manifest, T res)de.digitalcollections.iiif.model.sharedcanvas.AnnotationListgetAnnotationList(String identifier, String name, String canvasId)default de.digitalcollections.iiif.model.sharedcanvas.CanvasgetCanvas(String manifestId, String canvasUri)default de.digitalcollections.iiif.model.sharedcanvas.CanvasgetCanvas(String manifestId, URI canvasUri)de.digitalcollections.iiif.model.sharedcanvas.CollectiongetCollection(String name)default InstantgetCollectionModificationDate(String identifier)de.digitalcollections.iiif.model.sharedcanvas.ManifestgetManifest(String identifier)default InstantgetManifestModificationDate(String identifier)default de.digitalcollections.iiif.model.sharedcanvas.RangegetRange(String manifestId, String rangeUri)default de.digitalcollections.iiif.model.sharedcanvas.RangegetRange(String manifestId, URI rangeUri)default de.digitalcollections.iiif.model.sharedcanvas.SequencegetSequence(String manifestId, String sequenceUri)default de.digitalcollections.iiif.model.sharedcanvas.SequencegetSequence(String manifestId, URI sequenceUri)
-
-
-
Method Detail
-
getAnnotationList
de.digitalcollections.iiif.model.sharedcanvas.AnnotationList getAnnotationList(String identifier, String name, String canvasId) throws ResolvingException, de.digitalcollections.model.api.identifiable.resource.exceptions.ResourceNotFoundException, InvalidDataException
- Parameters:
name- unique name of annotation list- Returns:
- AnnotationList specified by name
- Throws:
ResolvingException- if no annotation list foundde.digitalcollections.model.api.identifiable.resource.exceptions.ResourceNotFoundException- if annotation list with given name can not be foundInvalidDataException- if data is corrupted
-
getCollection
de.digitalcollections.iiif.model.sharedcanvas.Collection getCollection(String name) throws ResolvingException, de.digitalcollections.model.api.identifiable.resource.exceptions.ResourceNotFoundException, InvalidDataException
- Parameters:
name- unique name of collection- Returns:
- Collection specified by name
- Throws:
ResolvingException- if no collection found or access disallowedde.digitalcollections.model.api.identifiable.resource.exceptions.ResourceNotFoundException- if collection with given name can not be foundInvalidDataException- if data is corrupted
-
getManifest
de.digitalcollections.iiif.model.sharedcanvas.Manifest getManifest(String identifier) throws ResolvingException, de.digitalcollections.model.api.identifiable.resource.exceptions.ResourceNotFoundException, InvalidDataException
- Parameters:
identifier- unique id for IIIF resource- Returns:
- Manifest specifying presentation for IIIF resource
- Throws:
ResolvingException- if no manifest found or access disallowedde.digitalcollections.model.api.identifiable.resource.exceptions.ResourceNotFoundException- if Manifest with given identifier can not be foundInvalidDataException- if data is corrupted
-
getManifestModificationDate
default Instant getManifestModificationDate(String identifier) throws ResolvingException, de.digitalcollections.model.api.identifiable.resource.exceptions.ResourceNotFoundException
- Throws:
ResolvingExceptionde.digitalcollections.model.api.identifiable.resource.exceptions.ResourceNotFoundException
-
getCollectionModificationDate
default Instant getCollectionModificationDate(String identifier) throws ResolvingException, de.digitalcollections.model.api.identifiable.resource.exceptions.ResourceNotFoundException
- Throws:
ResolvingExceptionde.digitalcollections.model.api.identifiable.resource.exceptions.ResourceNotFoundException
-
getCanvas
default de.digitalcollections.iiif.model.sharedcanvas.Canvas getCanvas(String manifestId, String canvasUri) throws ResolvingException, de.digitalcollections.model.api.identifiable.resource.exceptions.ResourceNotFoundException, InvalidDataException
- Throws:
ResolvingExceptionde.digitalcollections.model.api.identifiable.resource.exceptions.ResourceNotFoundExceptionInvalidDataException
-
getCanvas
default de.digitalcollections.iiif.model.sharedcanvas.Canvas getCanvas(String manifestId, URI canvasUri) throws ResolvingException, de.digitalcollections.model.api.identifiable.resource.exceptions.ResourceNotFoundException, InvalidDataException
- Throws:
ResolvingExceptionde.digitalcollections.model.api.identifiable.resource.exceptions.ResourceNotFoundExceptionInvalidDataException
-
getRange
default de.digitalcollections.iiif.model.sharedcanvas.Range getRange(String manifestId, String rangeUri) throws ResolvingException, de.digitalcollections.model.api.identifiable.resource.exceptions.ResourceNotFoundException, InvalidDataException
- Throws:
ResolvingExceptionde.digitalcollections.model.api.identifiable.resource.exceptions.ResourceNotFoundExceptionInvalidDataException
-
getRange
default de.digitalcollections.iiif.model.sharedcanvas.Range getRange(String manifestId, URI rangeUri) throws ResolvingException, de.digitalcollections.model.api.identifiable.resource.exceptions.ResourceNotFoundException, InvalidDataException
- Throws:
ResolvingExceptionde.digitalcollections.model.api.identifiable.resource.exceptions.ResourceNotFoundExceptionInvalidDataException
-
getSequence
default de.digitalcollections.iiif.model.sharedcanvas.Sequence getSequence(String manifestId, String sequenceUri) throws ResolvingException, de.digitalcollections.model.api.identifiable.resource.exceptions.ResourceNotFoundException, InvalidDataException
- Throws:
ResolvingExceptionde.digitalcollections.model.api.identifiable.resource.exceptions.ResourceNotFoundExceptionInvalidDataException
-
getSequence
default de.digitalcollections.iiif.model.sharedcanvas.Sequence getSequence(String manifestId, URI sequenceUri) throws ResolvingException, de.digitalcollections.model.api.identifiable.resource.exceptions.ResourceNotFoundException, InvalidDataException
- Throws:
ResolvingExceptionde.digitalcollections.model.api.identifiable.resource.exceptions.ResourceNotFoundExceptionInvalidDataException
-
copyAttributionInfo
default <T extends de.digitalcollections.iiif.model.sharedcanvas.Resource> T copyAttributionInfo(de.digitalcollections.iiif.model.sharedcanvas.Manifest manifest, T res)
-
-