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 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)
  • 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 uuid
      mimetype - bitstream mimetype
      profile - the service profile
      path - the path component of the identifier
      Returns:
    • getImageContent

      protected ImageContentGenerator getImageContent(String identifier)