@Repository public class PresentationRepositoryImpl extends Object implements PresentationRepository
| Constructor and Description |
|---|
PresentationRepositoryImpl() |
| Modifier and Type | Method and Description |
|---|---|
de.digitalcollections.iiif.model.sharedcanvas.AnnotationList |
getAnnotationList(String identifier,
String name,
String canvasId) |
de.digitalcollections.iiif.model.sharedcanvas.Collection |
getCollection(String name) |
Instant |
getCollectionModificationDate(String identifier) |
de.digitalcollections.iiif.model.sharedcanvas.Manifest |
getManifest(String identifier) |
Instant |
getManifestModificationDate(String identifier) |
protected String |
getResourceJson(URI resourceUri) |
public de.digitalcollections.iiif.model.sharedcanvas.AnnotationList getAnnotationList(String identifier, String name, String canvasId) throws ResolvingException, de.digitalcollections.model.api.identifiable.resource.exceptions.ResourceNotFoundException, InvalidDataException
getAnnotationList in interface PresentationRepositoryidentifier - unique identifier of the corresponding manifestname - unique name of annotation listcanvasId - name of the corresponding canvasResolvingException - 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 corruptedpublic de.digitalcollections.iiif.model.sharedcanvas.Collection getCollection(String name) throws ResolvingException, de.digitalcollections.model.api.identifiable.resource.exceptions.ResourceNotFoundException, InvalidDataException
getCollection in interface PresentationRepositoryname - unique name of collectionResolvingException - in case Collection does not exist or can not be deliveredde.digitalcollections.model.api.identifiable.resource.exceptions.ResourceNotFoundException - if Collection with given name can not be foundInvalidDataException - if collection contains invalid datapublic de.digitalcollections.iiif.model.sharedcanvas.Manifest getManifest(String identifier) throws ResolvingException, de.digitalcollections.model.api.identifiable.resource.exceptions.ResourceNotFoundException, InvalidDataException
getManifest in interface PresentationRepositoryidentifier - unique id for IIIF resourceResolvingException - in case Manifest does not exist or can not be deliveredde.digitalcollections.model.api.identifiable.resource.exceptions.ResourceNotFoundException - if Manifest with given identifier can not be foundInvalidDataException - if manifest contains invalid datapublic Instant getManifestModificationDate(String identifier) throws ResolvingException, de.digitalcollections.model.api.identifiable.resource.exceptions.ResourceNotFoundException
getManifestModificationDate in interface PresentationRepositoryResolvingExceptionde.digitalcollections.model.api.identifiable.resource.exceptions.ResourceNotFoundExceptionpublic Instant getCollectionModificationDate(String identifier) throws ResolvingException, de.digitalcollections.model.api.identifiable.resource.exceptions.ResourceNotFoundException
getCollectionModificationDate in interface PresentationRepositoryResolvingExceptionde.digitalcollections.model.api.identifiable.resource.exceptions.ResourceNotFoundExceptionprotected String getResourceJson(URI resourceUri) throws ResolvingException, de.digitalcollections.model.api.identifiable.resource.exceptions.ResourceNotFoundException
ResolvingExceptionde.digitalcollections.model.api.identifiable.resource.exceptions.ResourceNotFoundExceptionCopyright © 2019. All rights reserved.