Interface CollectionRoleDAO
- All Superinterfaces:
GenericDAO<CollectionRole>
- All Known Implementing Classes:
CollectionRoleDAOImpl
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
Modifier and TypeMethodDescriptionvoiddeleteByCollection(Context context, Collection collection) findByCollection(Context context, Collection collection) findByCollectionAndRole(Context context, Collection collection, String role) findByGroup(Context context, Group group)
-
Method Details
-
findByCollection
- Throws:
SQLException
-
findByGroup
- 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
- Throws:
SQLException
-