Class SequenceService


  • @RequestScope
    @Component
    public class SequenceService
    extends AbstractResourceService
    This service provides methods for creating a Sequence. 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.
    Author:
    Michael Spalti mspalti@willamette.edu, Andrea Bollini (andrea.bollini at 4science.it)
    • Constructor Detail

      • SequenceService

        public SequenceService​(org.dspace.services.ConfigurationService configurationService)
    • Method Detail

      • getSequence

        public CanvasItemsGenerator getSequence​(Item item)
        Returns a sequence generator that has been configured with canvases. (@abollini will update.)
        Parameters:
        item - the DSpace item
        Returns:
        a sequence generator
      • addCanvas

        public CanvasGenerator addCanvas​(Context context,
                                         Item item,
                                         Bundle bnd,
                                         Bitstream bitstream)
        This method adds a canvas to the sequence for each item in the list of DSpace bitstreams. Bitstreams must be on image mime type. (@abollini will update.)
        Parameters:
        context - the DSpace context
        item - the DSpace Item
        bnd - a DSpace bundle
        bitstream - a DSpace bitstream