Package org.dspace.app.iiif.service
Class ImageContentService
java.lang.Object
org.dspace.app.iiif.service.AbstractResourceService
org.dspace.app.iiif.service.ImageContentService
This service provides methods for creating a
Image Resource annotation. There should be a single instance of
this service per request. The @RequestScope provides a single instance created and available during
complete lifecycle of the HTTP request.- Author:
- Michael Spalti mspalti@willamette.edu, Andrea Bollini (andrea.bollini at 4science.it)
-
Field Summary
Fields inherited from class org.dspace.app.iiif.service.AbstractResourceService
BITSTREAM_PATH_PREFIX, CLIENT_URL, DEFAULT_CANVAS_HEIGHT, DEFAULT_CANVAS_WIDTH, defaultCanvasHeightFallback, defaultCanvasWidthFallback, DOCUMENT_VIEWING_HINT, IIIF_ENDPOINT, IIIF_LOGO_IMAGE, IMAGE_PATH, IMAGE_SERVICE, SEARCH_URL, THUMBNAIL_PATH -
Constructor Summary
ConstructorsConstructorDescriptionImageContentService(org.dspace.services.ConfigurationService configurationService) -
Method Summary
Modifier and TypeMethodDescriptionprotected ImageContentGeneratorgetImageContent(String identifier) protected ImageContentGeneratorgetImageContent(UUID uuid, String mimetype, ProfileGenerator profile, String path) Association of images with their respective canvases is done via annotations.Methods inherited from class org.dspace.app.iiif.service.AbstractResourceService
getManifestId, setConfiguration, setDefaultCanvasDimensions
-
Constructor Details
-
ImageContentService
public ImageContentService(org.dspace.services.ConfigurationService configurationService)
-
-
Method Details
-
getImageContent
protected ImageContentGenerator getImageContent(UUID uuid, String mimetype, ProfileGenerator profile, String path) Association of images with their respective canvases is done via annotations. The Open Annotation model allows any resource to be associated with any other resource, or parts thereof, and it is reused for both commentary and painting resources on the canvas.- Parameters:
uuid- bitstream uuidmimetype- bitstream mimetypeprofile- the service profilepath- the path component of the identifier- Returns:
-
getImageContent
-