Interface XmlWorkflowItemService

    • Method Detail

      • findAll

        List<XmlWorkflowItem> findAll​(Context context,
                                      Integer page,
                                      Integer pagesize)
                               throws SQLException
        return all workflowitems for a certain page
        Parameters:
        context - The relevant DSpace Context.
        page - paging: page number
        pagesize - paging: items per page
        Returns:
        WorkflowItem list of all the workflow items in system
        Throws:
        SQLException - An exception that provides information on a database access error or other errors.
      • findAllInCollection

        List<XmlWorkflowItem> findAllInCollection​(Context context,
                                                  Integer page,
                                                  Integer pagesize,
                                                  Collection collection)
                                           throws SQLException
        return all workflowitems for a certain page with a certain collection
        Parameters:
        context - The relevant DSpace Context.
        page - paging: page number
        pagesize - paging: items per page
        collection - restrict to this collection
        Returns:
        WorkflowItem list of all the workflow items in system
        Throws:
        SQLException - An exception that provides information on a database access error or other errors.
      • countAll

        int countAll​(Context context)
              throws SQLException
        return how many workflow items appear in the database
        Parameters:
        context - The relevant DSpace Context.
        Returns:
        the number of workflow items
        Throws:
        SQLException - An exception that provides information on a database access error or other errors.
      • countAllInCollection

        int countAllInCollection​(Context context,
                                 Collection collection)
                          throws SQLException
        return how many workflow items that appear in the collection
        Parameters:
        context - The relevant DSpace Context.
        collection - restrict to this collection
        Returns:
        the number of workflow items
        Throws:
        SQLException - An exception that provides information on a database access error or other errors.
      • findBySubmitter

        List<XmlWorkflowItem> findBySubmitter​(Context context,
                                              EPerson ep,
                                              Integer pageNumber,
                                              Integer pageSize)
                                       throws SQLException
        Return all the workflow items from a specific submitter respecting the pagination parameters
        Parameters:
        context - The relevant DSpace Context.
        ep - the eperson that has submitted the item
        pageNumber - paging: page number
        pageSize - paging: items per page
        Returns:
        Throws:
        SQLException
      • countBySubmitter

        int countBySubmitter​(Context context,
                             EPerson ep)
                      throws SQLException
        Count the number of workflow items from a specific submitter
        Parameters:
        context - The relevant DSpace Context.
        ep - the eperson that has submitted the item
        Returns:
        Throws:
        SQLException