Interface SupervisionOrderService

    • Method Detail

      • create

        SupervisionOrder create​(Context context,
                                Item item,
                                Group group)
                         throws SQLException
        Creates a new SupervisionOrder
        Parameters:
        context - The DSpace context
        item - the item
        group - the group
        Returns:
        the created Supervision Order on item and group
        Throws:
        SQLException - If something goes wrong in the database
      • findAll

        List<SupervisionOrder> findAll​(Context context)
                                throws SQLException
        Find all supervision orders currently stored
        Parameters:
        context - The DSpace context
        Returns:
        all Supervision Orders
        Throws:
        SQLException - If something goes wrong in the database
      • findByItem

        List<SupervisionOrder> findByItem​(Context context,
                                          Item item)
                                   throws SQLException
        Find all supervision orders for a given Item
        Parameters:
        context - The DSpace context
        item - the item
        Returns:
        all Supervision Orders related to the item
        Throws:
        SQLException - If something goes wrong in the database
      • findByItemAndGroup

        SupervisionOrder findByItemAndGroup​(Context context,
                                            Item item,
                                            Group group)
                                     throws SQLException
        Find a supervision order depending on given Item and Group
        Parameters:
        context - The DSpace context
        item - the item
        group - the group
        Returns:
        the Supervision Order of the item and group
        Throws:
        SQLException - If something goes wrong in the database
      • isSupervisor

        boolean isSupervisor​(Context context,
                             EPerson ePerson,
                             Item item)
                      throws SQLException
        Checks if an EPerson is supervisor of an Item
        Parameters:
        context - The DSpace context
        ePerson - the ePerson to be checked
        item - the item
        Returns:
        true if the ePerson is a supervisor of the item
        Throws:
        SQLException - If something goes wrong in the database