Interface CollectionRoleDAO
-
- All Superinterfaces:
GenericDAO<CollectionRole>
- All Known Implementing Classes:
CollectionRoleDAOImpl
public interface CollectionRoleDAO extends GenericDAO<CollectionRole>
Database Access Object interface class for the CollectionRole object. The implementation of this class is responsible for all database calls for the CollectionRole object and is autowired by spring This class should only be accessed from a single service and should never be exposed outside of the API- Author:
- kevinvandevelde at atmire.com
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voiddeleteByCollection(Context context, Collection collection)List<CollectionRole>findByCollection(Context context, Collection collection)CollectionRolefindByCollectionAndRole(Context context, Collection collection, String role)List<CollectionRole>findByGroup(Context context, Group group)-
Methods inherited from interface org.dspace.core.GenericDAO
create, delete, findAll, findAll, findByID, findByID, findMany, findUnique, save
-
-
-
-
Method Detail
-
findByCollection
List<CollectionRole> findByCollection(Context context, Collection collection) throws SQLException
- Throws:
SQLException
-
findByGroup
List<CollectionRole> findByGroup(Context context, Group group) throws SQLException
- Parameters:
context- DSpace contextgroup- EPerson Group- Returns:
- the list of CollectionRole assigned to the specified group
- Throws:
SQLException
-
findByCollectionAndRole
CollectionRole findByCollectionAndRole(Context context, Collection collection, String role) throws SQLException
- Throws:
SQLException
-
deleteByCollection
void deleteByCollection(Context context, Collection collection) throws SQLException
- Throws:
SQLException
-
-