Class PresentationServiceImpl
- java.lang.Object
-
- de.digitalcollections.iiif.hymir.presentation.business.PresentationServiceImpl
-
- All Implemented Interfaces:
PresentationService
@Service public class PresentationServiceImpl extends java.lang.Object implements PresentationService
-
-
Constructor Summary
Constructors Constructor Description PresentationServiceImpl(PresentationRepository presentationRepository, PresentationSecurityService presentationSecurityService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description de.digitalcollections.iiif.model.sharedcanvas.AnnotationListgetAnnotationList(java.lang.String identifier, java.lang.String name, java.lang.String canvasId)de.digitalcollections.iiif.model.sharedcanvas.CollectiongetCollection(java.lang.String name)java.time.InstantgetCollectionModificationDate(java.lang.String identifier)de.digitalcollections.iiif.model.sharedcanvas.ManifestgetManifest(java.lang.String identifier)java.time.InstantgetManifestModificationDate(java.lang.String identifier)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface de.digitalcollections.iiif.hymir.presentation.business.api.PresentationService
copyAttributionInfo, getCanvas, getCanvas, getRange, getRange, getSequence, getSequence
-
-
-
-
Constructor Detail
-
PresentationServiceImpl
@Autowired public PresentationServiceImpl(PresentationRepository presentationRepository, @Autowired(required=false) PresentationSecurityService presentationSecurityService)
-
-
Method Detail
-
getAnnotationList
public de.digitalcollections.iiif.model.sharedcanvas.AnnotationList getAnnotationList(java.lang.String identifier, java.lang.String name, java.lang.String canvasId) throws ResolvingException, de.digitalcollections.model.api.identifiable.resource.exceptions.ResourceNotFoundException, InvalidDataException- Specified by:
getAnnotationListin interfacePresentationServicename- 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
public de.digitalcollections.iiif.model.sharedcanvas.Collection getCollection(java.lang.String name) throws ResolvingException, de.digitalcollections.model.api.identifiable.resource.exceptions.ResourceNotFoundException, InvalidDataException- Specified by:
getCollectionin interfacePresentationService- 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
public de.digitalcollections.iiif.model.sharedcanvas.Manifest getManifest(java.lang.String identifier) throws ResolvingException, de.digitalcollections.model.api.identifiable.resource.exceptions.ResourceNotFoundException, InvalidDataException- Specified by:
getManifestin interfacePresentationService- 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
public java.time.Instant getManifestModificationDate(java.lang.String identifier) throws ResolvingException, de.digitalcollections.model.api.identifiable.resource.exceptions.ResourceNotFoundException- Specified by:
getManifestModificationDatein interfacePresentationService- Throws:
ResolvingExceptionde.digitalcollections.model.api.identifiable.resource.exceptions.ResourceNotFoundException
-
getCollectionModificationDate
public java.time.Instant getCollectionModificationDate(java.lang.String identifier) throws ResolvingException, de.digitalcollections.model.api.identifiable.resource.exceptions.ResourceNotFoundException- Specified by:
getCollectionModificationDatein interfacePresentationService- Throws:
ResolvingExceptionde.digitalcollections.model.api.identifiable.resource.exceptions.ResourceNotFoundException
-
-