Class AbstractResourceService

java.lang.Object
org.dspace.app.iiif.service.AbstractResourceService
Direct Known Subclasses:
AnnotationListService, CanvasLookupService, CanvasService, ImageContentService, ManifestService, RangeService, RelatedService, SearchService, SeeAlsoService, SequenceService

public abstract class AbstractResourceService extends Object
Base class for services.
Author:
Michael Spalti mspalti@willamette.edu, Andrea Bollini (andrea.bollini at 4science.it)
  • Field Details

    • IIIF_ENDPOINT

      protected String IIIF_ENDPOINT
      These values are defined in dspace configuration.
    • IMAGE_SERVICE

      protected String IMAGE_SERVICE
    • SEARCH_URL

      protected String SEARCH_URL
    • CLIENT_URL

      protected String CLIENT_URL
    • IIIF_LOGO_IMAGE

      protected String IIIF_LOGO_IMAGE
    • BITSTREAM_PATH_PREFIX

      protected String BITSTREAM_PATH_PREFIX
    • DEFAULT_CANVAS_WIDTH

      protected int DEFAULT_CANVAS_WIDTH
    • DEFAULT_CANVAS_HEIGHT

      protected int DEFAULT_CANVAS_HEIGHT
    • DOCUMENT_VIEWING_HINT

      protected static String DOCUMENT_VIEWING_HINT
      Possible values: "paged" or "individuals". The property value is set in dspace configuration.
    • THUMBNAIL_PATH

      protected static final String THUMBNAIL_PATH
      See Also:
    • IMAGE_PATH

      protected static final String IMAGE_PATH
      See Also:
    • defaultCanvasWidthFallback

      protected static Integer defaultCanvasWidthFallback
    • defaultCanvasHeightFallback

      protected static Integer defaultCanvasHeightFallback
  • Constructor Details

    • AbstractResourceService

      public AbstractResourceService()
  • Method Details

    • setConfiguration

      protected void setConfiguration(org.dspace.services.ConfigurationService configurationService)
      Set constants using DSpace configuration definitions.
      Parameters:
      configurationService - the DSpace configuration service
    • setDefaultCanvasDimensions

      protected void setDefaultCanvasDimensions()
    • getManifestId

      protected String getManifestId(UUID uuid)
      Creates the manifest id from the provided uuid.
      Parameters:
      uuid - the item id
      Returns:
      the manifest identifier (url)