Class 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 @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 Detail

      • itemService

        @Autowired
        protected ItemService itemService
      • METADATA_FIELDS

        protected String[] METADATA_FIELDS
    • Constructor Detail

      • ManifestService

        public ManifestService​(org.dspace.services.ConfigurationService configurationService)
        Constructor.
        Parameters:
        configurationService - the DSpace configuration service.
    • Method Detail

      • getManifest

        public String getManifest​(Item item,
                                  Context context)
        Returns JSON manifest response for a DSpace item.
        Parameters:
        item - the DSpace Item
        context - the DSpace context
        Returns:
        manifest as JSON