Package org.dspace.supervision.service
Interface SupervisionOrderService
-
- All Superinterfaces:
DSpaceCRUDService<SupervisionOrder>
- All Known Implementing Classes:
SupervisionOrderServiceImpl
public interface SupervisionOrderService extends DSpaceCRUDService<SupervisionOrder>
Service interface class for the SupervisionOrder object.- Author:
- Mohamed Eskander (mohamed.eskander at 4science dot it)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SupervisionOrdercreate(Context context, Item item, Group group)Creates a new SupervisionOrderList<SupervisionOrder>findAll(Context context)Find all supervision orders currently storedList<SupervisionOrder>findByItem(Context context, Item item)Find all supervision orders for a given ItemSupervisionOrderfindByItemAndGroup(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 Detail
-
create
SupervisionOrder create(Context context, Item item, Group group) throws SQLException
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
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 contextitem- 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 contextitem- the itemgroup- 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 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
-
-