Class ExternalSourceEntryWorkspaceItemUriListHandler

  • All Implemented Interfaces:
    UriListHandler<org.dspace.content.WorkspaceItem>

    @Component
    public class ExternalSourceEntryWorkspaceItemUriListHandler
    extends ExternalSourceEntryItemUriListHandler<org.dspace.content.WorkspaceItem>
    This class extends the ExternalSourceEntryItemUriListHandler abstract class and implements it specifically for the WorkspaceItem objects. It'll add extra checks and validations based on a WorkspaceItem and call the super functions.
    • Constructor Detail

      • ExternalSourceEntryWorkspaceItemUriListHandler

        public ExternalSourceEntryWorkspaceItemUriListHandler()
    • Method Detail

      • supports

        public boolean supports​(List<String> uriList,
                                String method,
                                Class clazz)
        Description copied from interface: UriListHandler
        This method will take the UriList and method as input and verify whether the implementing UriListHandler can handle this input or not
        Specified by:
        supports in interface UriListHandler<org.dspace.content.WorkspaceItem>
        Overrides:
        supports in class ExternalSourceEntryItemUriListHandler<org.dspace.content.WorkspaceItem>
        Parameters:
        uriList - The list of UriList Strings to be checked if they're supported
        method - The request method to be checked if it's supported
        clazz - The class to be returned by the handle method
        Returns:
        A boolean indicating whether the implementing UriListHandler can handle this input
      • validate

        public boolean validate​(org.dspace.core.Context context,
                                javax.servlet.http.HttpServletRequest request,
                                List<String> uriList)
                         throws org.dspace.authorize.AuthorizeException
        Description copied from interface: UriListHandler
        This method will take all the required input and validate them to see if there are any issues before calling the handle method
        Specified by:
        validate in interface UriListHandler<org.dspace.content.WorkspaceItem>
        Overrides:
        validate in class ExternalSourceEntryItemUriListHandler<org.dspace.content.WorkspaceItem>
        Parameters:
        context - The relevant DSpace context
        request - The current request
        uriList - The list of UriList Strings
        Returns:
        A boolean indicating whether all this input is valid for the implementing UriListHandler
        Throws:
        org.dspace.authorize.AuthorizeException
      • handle

        public org.dspace.content.WorkspaceItem handle​(org.dspace.core.Context context,
                                                       javax.servlet.http.HttpServletRequest request,
                                                       List<String> uriList)
                                                throws SQLException,
                                                       org.dspace.authorize.AuthorizeException
        Description copied from interface: UriListHandler
        This method will perform the actual handle logic
        Parameters:
        context - The relevant DSpace context
        request - The current request
        uriList - The list of UriList Strings
        Returns:
        The object of class T that was handled
        Throws:
        SQLException
        org.dspace.authorize.AuthorizeException