Package org.dspace.app.iiif.service
Class ImageContentService
- java.lang.Object
-
- org.dspace.app.iiif.service.AbstractResourceService
-
- org.dspace.app.iiif.service.ImageContentService
-
@RequestScope @Component public class ImageContentService extends AbstractResourceService
This service provides methods for creating aImage Resourceannotation. There should be a single instance of this service per request. The@RequestScopeprovides 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
Constructors Constructor Description ImageContentService(org.dspace.services.ConfigurationService configurationService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected 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
-
-
-
-
Method Detail
-
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
protected ImageContentGenerator getImageContent(String identifier)
-
-