Package org.dspace.app.requestitem.dao
Interface RequestItemDAO
- All Superinterfaces:
GenericDAO<RequestItem>
- All Known Implementing Classes:
RequestItemDAOImpl
Database Access Object interface class for the RequestItem object.
The implementation of this class is responsible for all database calls for
the RequestItem 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 TypeMethodDescriptionfindByAccessToken(Context context, String accessToken) Fetch a request named by its unique access token (passed in emails).findByItem(Context context, Item item) findByToken(Context context, String token) Fetch a request named by its unique approval token (passed in emails).
-
Method Details
-
findByToken
Fetch a request named by its unique approval token (passed in emails).- Parameters:
context- the current DSpace context.token- uniquely identifies the request.- Returns:
- the found request (or
null?) - Throws:
SQLException- passed through.
-
findByAccessToken
Fetch a request named by its unique access token (passed in emails). Note this is the token used by the requester to access an approved resource, not the token used by the item submitter or helpdesk to grant the access.- Parameters:
context- the current DSpace context.accessToken- uniquely identifies the request- Returns:
- the found request or
null - Throws:
SQLException- passed through.
-
findByItem
- Throws:
SQLException
-