Package org.dspace.app.iiif.service
Class ManifestService
- java.lang.Object
-
- org.dspace.app.iiif.service.AbstractResourceService
-
- org.dspace.app.iiif.service.ManifestService
-
@RequestScope @Component public class ManifestService extends AbstractResourceService
This service creates the manifest. There should be a single instance of this service per request. The@RequestScopeprovides 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
Fields Modifier and Type Field Description protected ItemServiceitemServiceprotected String[]METADATA_FIELDS-
Fields 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
Constructors Constructor Description ManifestService(org.dspace.services.ConfigurationService configurationService)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetManifest(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 Detail
-
itemService
@Autowired protected ItemService itemService
-
METADATA_FIELDS
protected String[] METADATA_FIELDS
-
-