Class RequestItemDAOImpl
java.lang.Object
org.dspace.core.AbstractHibernateDAO<RequestItem>
org.dspace.app.requestitem.dao.impl.RequestItemDAOImpl
- All Implemented Interfaces:
RequestItemDAO,GenericDAO<RequestItem>
Hibernate implementation of the Database Access Object interface class for the RequestItem object.
This class is responsible for all database calls for the RequestItem object and is autowired by Spring.
This class should never be accessed directly.
- Author:
- kevinvandevelde at atmire.com
-
Constructor Summary
Constructors -
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).Methods inherited from class org.dspace.core.AbstractHibernateDAO
count, count, countLong, create, createQuery, createQuery, delete, executeCriteriaQuery, findAll, findAll, findByID, findByID, findByID, findByX, findMany, findMany, findUnique, getCriteriaBuilder, getCriteriaQuery, getHibernateSession, iterate, list, list, list, list, save, singleResult, singleResult, uniqueResult, uniqueResult
-
Constructor Details
-
RequestItemDAOImpl
protected RequestItemDAOImpl()
-
-
Method Details
-
findByToken
Description copied from interface:RequestItemDAOFetch a request named by its unique approval token (passed in emails).- Specified by:
findByTokenin interfaceRequestItemDAO- Parameters:
context- the current DSpace context.token- uniquely identifies the request.- Returns:
- the found request (or
null?) - Throws:
SQLException- passed through.
-
findByAccessToken
Description copied from interface:RequestItemDAOFetch 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.- Specified by:
findByAccessTokenin interfaceRequestItemDAO- Parameters:
context- the current DSpace context.accessToken- uniquely identifies the request- Returns:
- the found request or
null - Throws:
SQLException- passed through.
-
findByItem
- Specified by:
findByItemin interfaceRequestItemDAO- Throws:
SQLException
-