Package org.dspace.app.iiif.service
Class AbstractResourceService
java.lang.Object
org.dspace.app.iiif.service.AbstractResourceService
- Direct Known Subclasses:
AnnotationListService,CanvasLookupService,CanvasService,ImageContentService,ManifestService,RangeService,RelatedService,SearchService,SeeAlsoService,SequenceService
Base class for services.
- Author:
- Michael Spalti mspalti@willamette.edu, Andrea Bollini (andrea.bollini at 4science.it)
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprotected Stringprotected intprotected intprotected static Integerprotected static Integerprotected static StringPossible values: "paged" or "individuals".protected StringThese values are defined in dspace configuration.protected Stringprotected static final Stringprotected Stringprotected Stringprotected static final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringgetManifestId(UUID uuid) Creates the manifest id from the provided uuid.protected voidsetConfiguration(org.dspace.services.ConfigurationService configurationService) Set constants using DSpace configuration definitions.protected void
-
Field Details
-
IIIF_ENDPOINT
These values are defined in dspace configuration. -
IMAGE_SERVICE
-
SEARCH_URL
-
CLIENT_URL
-
IIIF_LOGO_IMAGE
-
BITSTREAM_PATH_PREFIX
-
DEFAULT_CANVAS_WIDTH
protected int DEFAULT_CANVAS_WIDTH -
DEFAULT_CANVAS_HEIGHT
protected int DEFAULT_CANVAS_HEIGHT -
DOCUMENT_VIEWING_HINT
Possible values: "paged" or "individuals". The property value is set in dspace configuration. -
THUMBNAIL_PATH
- See Also:
-
IMAGE_PATH
- See Also:
-
defaultCanvasWidthFallback
-
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
Creates the manifest id from the provided uuid.- Parameters:
uuid- the item id- Returns:
- the manifest identifier (url)
-