Package org.dspace.supervision.service
Interface SupervisionOrderService
- All Superinterfaces:
DSpaceCRUDService<SupervisionOrder>
- All Known Implementing Classes:
SupervisionOrderServiceImpl
Service interface class for the SupervisionOrder object.
- Author:
- Mohamed Eskander (mohamed.eskander at 4science dot it)
-
Method Summary
Modifier and TypeMethodDescriptionCreates a new SupervisionOrderFind all supervision orders currently storedfindByItem(Context context, Item item) Find all supervision orders for a given ItemfindByItemAndGroup(Context context, Item item, Group group) Find a supervision order depending on given Item and GroupbooleanisSupervisor(Context context, EPerson ePerson, Item item) Checks if an EPerson is supervisor of an Item
-
Method Details
-
create
Creates a new SupervisionOrder- Parameters:
context- The DSpace contextitem- the itemgroup- the group- Returns:
- the created Supervision Order on item and group
- Throws:
SQLException- If something goes wrong in the database
-
findAll
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
Find all supervision orders for a given Item- Parameters:
context- The DSpace contextitem- the item- Returns:
- all Supervision Orders related to the item
- Throws:
SQLException- If something goes wrong in the database
-
findByItemAndGroup
Find a supervision order depending on given Item and Group- Parameters:
context- The DSpace contextitem- the itemgroup- the group- Returns:
- the Supervision Order of the item and group
- Throws:
SQLException- If something goes wrong in the database
-
isSupervisor
Checks if an EPerson is supervisor of an Item- Parameters:
context- The DSpace contextePerson- the ePerson to be checkeditem- the item- Returns:
- true if the ePerson is a supervisor of the item
- Throws:
SQLException- If something goes wrong in the database
-