Package org.dspace.app.iiif.service
Class ManifestService
java.lang.Object
org.dspace.app.iiif.service.AbstractResourceService
org.dspace.app.iiif.service.ManifestService
This service creates the manifest. 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. This is needed because some configurations are cached in the
instance. Moreover, many injected dependencies are also request scoped or
prototype (that will turn in a request scope when injected in a request scope
bean). The generators for top-level domain objects need to be request scoped as they act as a builder
storing the object state during each incremental building step until the final object is returned (IIIF Resource).- Author:
- Michael Spalti mspalti@willamette.edu, Andrea Bollini (andrea.bollini at 4science.it)
-
Field Summary
FieldsFields 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
ConstructorsConstructorDescriptionManifestService(org.dspace.services.ConfigurationService configurationService) Constructor. -
Method Summary
Modifier and TypeMethodDescriptiongetManifest(Item item, Context context) Returns JSON manifest response for a DSpace item.Methods inherited from class org.dspace.app.iiif.service.AbstractResourceService
getManifestId, setConfiguration, setDefaultCanvasDimensions
-
Field Details
-
itemService
-
METADATA_FIELDS
-
-
Constructor Details
-
ManifestService
public ManifestService(org.dspace.services.ConfigurationService configurationService) Constructor.- Parameters:
configurationService- the DSpace configuration service.
-
-
Method Details
-
getManifest
Returns JSON manifest response for a DSpace item.- Parameters:
item- the DSpace Itemcontext- the DSpace context- Returns:
- manifest as JSON
-