Interface RequestItemService
-
- All Known Implementing Classes:
RequestItemServiceImpl
public interface RequestItemServiceService 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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringcreateRequest(Context context, Bitstream bitstream, Item item, boolean allFiles, String reqEmail, String reqName, String reqMessage)Generate a request item representing the request and put it into the DBRequestItemfindByToken(Context context, String token)voidupdate(Context context, RequestItem requestItem)Save updates to the record.
-
-
-
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 bitstreamitem- The requested itemreqMessage- Request message textallFiles- true indicates that all bitstreams of this item are requestedreqEmail- email Requester emailreqName- Requester name- Returns:
- the token of the request item
- Throws:
SQLException- if database error
-
findByToken
RequestItem findByToken(Context context, String token)
-
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
-
-