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
public abstract class AbstractResourceService extends Object
Base class for services.- Author:
- Michael Spalti mspalti@willamette.edu, Andrea Bollini (andrea.bollini at 4science.it)
-
-
Field Summary
Fields Modifier and Type Field Description protected StringBITSTREAM_PATH_PREFIXprotected StringCLIENT_URLprotected intDEFAULT_CANVAS_HEIGHTprotected intDEFAULT_CANVAS_WIDTHprotected static IntegerdefaultCanvasHeightFallbackprotected static IntegerdefaultCanvasWidthFallbackprotected static StringDOCUMENT_VIEWING_HINTPossible values: "paged" or "individuals".protected StringIIIF_ENDPOINTThese values are defined in dspace configuration.protected StringIIIF_LOGO_IMAGEprotected static StringIMAGE_PATHprotected StringIMAGE_SERVICEprotected StringSEARCH_URLprotected static StringTHUMBNAIL_PATH
-
Constructor Summary
Constructors Constructor Description AbstractResourceService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected 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 voidsetDefaultCanvasDimensions()
-
-
-
Field Detail
-
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:
- Constant Field Values
-
IMAGE_PATH
protected static final String IMAGE_PATH
- See Also:
- Constant Field Values
-
defaultCanvasWidthFallback
protected static Integer defaultCanvasWidthFallback
-
defaultCanvasHeightFallback
protected static Integer defaultCanvasHeightFallback
-
-
Method Detail
-
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()
-
-