Package org.dspace.app.requestitem
Class RequestItem
java.lang.Object
org.dspace.app.requestitem.RequestItem
- All Implemented Interfaces:
ReloadableEntity<Integer>
Object representing an Item Request.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedProtected constructor, create object using:RequestItemService.createRequest(Context, Bitstream, Item, boolean, String, String, String) -
Method Summary
Modifier and TypeMethodDescriptiongetID()The unique identifier of this entity instance.getItem()getToken()booleanbooleanvoidSanitize personal information and the approval token, to be used when returning a RequestItem to Angular, especially for users clicking on the secure linkvoidsetAccept_request(boolean accept_request) voidsetAccess_expiry(Instant access_expiry) voidsetAccess_token(String access_token) voidsetAllfiles(boolean allfiles) voidsetDecision_date(Instant decision_date)
-
Constructor Details
-
RequestItem
protected RequestItem()Protected constructor, create object using:RequestItemService.createRequest(Context, Bitstream, Item, boolean, String, String, String)
-
-
Method Details
-
getID
Description copied from interface:ReloadableEntityThe unique identifier of this entity instance.- Specified by:
getIDin interfaceReloadableEntity<Integer>- Returns:
- the value of the primary key for this instance.
-
setAllfiles
public void setAllfiles(boolean allfiles) -
isAllfiles
public boolean isAllfiles()- Returns:
trueif all of the Item's files are requested.
-
getReqMessage
- Returns:
- a message from the requester.
-
getReqName
- Returns:
- Human-readable name of the user requesting access.
-
getReqEmail
- Returns:
- address of the user requesting access.
-
getToken
- Returns:
- a unique request identifier which can be emailed to the *approver* of the request. This is not the same as the access token, which is used by the requester to access the item after approval.
-
getItem
-
getBitstream
-
getDecision_date
-
setDecision_date
-
isAccept_request
public boolean isAccept_request() -
setAccept_request
public void setAccept_request(boolean accept_request) -
getExpires
-
getRequest_date
-
getAccess_token
- Returns:
- A unique token to be used by the requester when granted access to the resource, which can be emailed upon approval
-
setAccess_token
-
getAccess_expiry
- Returns:
- The date and time when the access token expires.
-
setAccess_expiry
-
sanitizePersonalData
public void sanitizePersonalData()Sanitize personal information and the approval token, to be used when returning a RequestItem to Angular, especially for users clicking on the secure link
-