Class UriListHandlerService


  • @Component
    public class UriListHandlerService
    extends Object
    This class is a wrapper Service class for the UriListHandler objects. It will find the right one and try to execute it for the given arguments
    • Constructor Detail

      • UriListHandlerService

        public UriListHandlerService()
    • Method Detail

      • handle

        public <T> T handle​(org.dspace.core.Context context,
                            javax.servlet.http.HttpServletRequest request,
                            List<String> uriList,
                            Class<T> clazz)
                     throws SQLException,
                            org.dspace.authorize.AuthorizeException
        This method will take the UriList, the request, relevant DSpace context and the class of the object to be handled It'll then loop over all the UriListHandlers defined within the codebase and first check if it supports the given method and the urilist. If the handler supports this, it'll then validate the input and only if it's valid, it'll execute the handle method and perform the logic
        Type Parameters:
        T - The class to be returned, same as the class parameter above
        Parameters:
        context - The relevant DSpace context
        request - The current active Request
        uriList - The list of Strings representing the UriList to be handled
        clazz - The class to be hadled
        Returns:
        The object that was handled through this method
        Throws:
        SQLException
        org.dspace.authorize.AuthorizeException