Interface RequestItemService

  • All Known Implementing Classes:
    RequestItemServiceImpl

    public interface RequestItemService
    Service interface class for the RequestItem object. The implementation of this class is responsible for all business logic calls for the RequestItem object and is autowired by spring
    Author:
    kevinvandevelde at atmire.com
    • Method Detail

      • createRequest

        String createRequest​(Context context,
                             Bitstream bitstream,
                             Item item,
                             boolean allFiles,
                             String reqEmail,
                             String reqName,
                             String reqMessage)
                      throws SQLException
        Generate a request item representing the request and put it into the DB
        Parameters:
        context - The relevant DSpace Context.
        bitstream - The requested bitstream
        item - The requested item
        reqMessage - Request message text
        allFiles - true indicates that all bitstreams of this item are requested
        reqEmail - email Requester email
        reqName - Requester name
        Returns:
        the token of the request item
        Throws:
        SQLException - if database error
      • update

        void update​(Context context,
                    RequestItem requestItem)
        Save updates to the record. Only accept_request, and decision_date are set-able.
        Parameters:
        context - The relevant DSpace Context.
        requestItem - requested item