Class PresentationRepositoryImpl
- java.lang.Object
-
- de.digitalcollections.iiif.hymir.presentation.backend.PresentationRepositoryImpl
-
- All Implemented Interfaces:
PresentationRepository
@Repository @Deprecated(forRemoval=true) public class PresentationRepositoryImpl extends Object implements PresentationRepository
Deprecated, for removal: This API element is subject to removal in a future version.Default implementation trying to get manifest.json from an resolved URI as String and returning Manifest instance.
-
-
Constructor Summary
Constructors Constructor Description PresentationRepositoryImpl()Deprecated, for removal: This API element is subject to removal in a future version.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description de.digitalcollections.iiif.model.sharedcanvas.AnnotationListgetAnnotationList(String identifier, String name, String canvasId)Deprecated, for removal: This API element is subject to removal in a future version.de.digitalcollections.iiif.model.sharedcanvas.CollectiongetCollection(String name)Deprecated, for removal: This API element is subject to removal in a future version.InstantgetCollectionModificationDate(String identifier)Deprecated, for removal: This API element is subject to removal in a future version.de.digitalcollections.iiif.model.sharedcanvas.ManifestgetManifest(String identifier)Deprecated, for removal: This API element is subject to removal in a future version.InstantgetManifestModificationDate(String identifier)Deprecated, for removal: This API element is subject to removal in a future version.protected StringgetResourceJson(de.digitalcollections.model.identifiable.resource.FileResource resource)Deprecated, for removal: This API element is subject to removal in a future version.
-
-
-
Method Detail
-
getAnnotationList
public de.digitalcollections.iiif.model.sharedcanvas.AnnotationList getAnnotationList(String identifier, String name, String canvasId) throws ResolvingException, de.digitalcollections.model.exception.ResourceNotFoundException, InvalidDataException
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getAnnotationListin interfacePresentationRepository- Parameters:
identifier- unique identifier of the corresponding manifestname- unique name of annotation listcanvasId- name of the corresponding canvas- Returns:
- AnnotationList specified by name
- Throws:
ResolvingException- if no annotation list foundde.digitalcollections.model.exception.ResourceNotFoundException- if annotation list with given name can not be foundInvalidDataException- if data is corrupted
-
getCollection
public de.digitalcollections.iiif.model.sharedcanvas.Collection getCollection(String name) throws ResolvingException, de.digitalcollections.model.exception.ResourceNotFoundException, InvalidDataException
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getCollectionin interfacePresentationRepository- Parameters:
name- unique name of collection- Returns:
- Collection specified by name
- Throws:
ResolvingException- in case Collection does not exist or can not be deliveredde.digitalcollections.model.exception.ResourceNotFoundException- if Collection with given name can not be foundInvalidDataException- if collection contains invalid data
-
getManifest
public de.digitalcollections.iiif.model.sharedcanvas.Manifest getManifest(String identifier) throws ResolvingException, de.digitalcollections.model.exception.ResourceNotFoundException, InvalidDataException
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getManifestin interfacePresentationRepository- Parameters:
identifier- unique id for IIIF resource- Returns:
- Manifest specifying presentation for IIIF resource
- Throws:
ResolvingException- in case Manifest does not exist or can not be deliveredde.digitalcollections.model.exception.ResourceNotFoundException- if Manifest with given identifier can not be foundInvalidDataException- if manifest contains invalid data
-
getManifestModificationDate
public Instant getManifestModificationDate(String identifier) throws ResolvingException, de.digitalcollections.model.exception.ResourceNotFoundException
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getManifestModificationDatein interfacePresentationRepository- Throws:
ResolvingExceptionde.digitalcollections.model.exception.ResourceNotFoundException
-
getCollectionModificationDate
public Instant getCollectionModificationDate(String identifier) throws ResolvingException, de.digitalcollections.model.exception.ResourceNotFoundException
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getCollectionModificationDatein interfacePresentationRepository- Throws:
ResolvingExceptionde.digitalcollections.model.exception.ResourceNotFoundException
-
getResourceJson
protected String getResourceJson(de.digitalcollections.model.identifiable.resource.FileResource resource) throws de.digitalcollections.model.exception.ResourceIOException, de.digitalcollections.model.exception.ResourceNotFoundException
Deprecated, for removal: This API element is subject to removal in a future version.- Throws:
de.digitalcollections.model.exception.ResourceIOExceptionde.digitalcollections.model.exception.ResourceNotFoundException
-
-