Interface RequestItemDAO

All Superinterfaces:
GenericDAO<RequestItem>
All Known Implementing Classes:
RequestItemDAOImpl

public interface RequestItemDAO extends GenericDAO<RequestItem>
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 Details

    • findByToken

      RequestItem findByToken(Context context, String token) throws SQLException
      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

      RequestItem findByAccessToken(Context context, String accessToken) throws SQLException
      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

      Iterator<RequestItem> findByItem(Context context, Item item) throws SQLException
      Throws:
      SQLException