Package org.dspace.app.rest.model
Class RequestItemRest
- All Implemented Interfaces:
Serializable,RestModel
@LinkRest(name="bitstream",method="getUuid") @LinkRest(name="item",method="getUuid")
public class RequestItemRest
extends BaseObjectRest<Integer>
Represent a user's request for a copy of an Item.
- Author:
- Mark H. Wood <mwood@iupui.edu>
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanprotected booleanprotected Instantprotected Stringprotected booleanprotected Stringstatic final Stringprotected Instantprotected Instantprotected Stringstatic final Stringstatic final Stringprotected Stringprotected Stringprotected Stringprotected Instantprotected StringFields inherited from class org.dspace.app.rest.model.BaseObjectRest
idFields inherited from interface org.dspace.app.rest.model.RestModel
AUTHENTICATION, AUTHORIZATION, CONFIGURATION, CONTENT_REPORT, CORE, DISCOVER, DUPLICATES, EPERSON, INTEGRATION, LDN, PID, ROOT, STATISTICS, SUBMISSION, SYSTEM, TOOLS, VERSIONING, WORKFLOW -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetToken()getType()booleanbooleanbooleanvoidsetAcceptRequest(boolean accepted) voidsetAccessExpired(boolean accessExpired) voidsetAccessExpiry(Instant accessExpiry) voidsetAccessToken(String accessToken) voidsetAllfiles(boolean allfiles) voidsetBitstreamId(String bitstream_id) voidsetDecisionDate(Instant decided) voidsetExpires(Instant expires) voidvoidsetRequestDate(Instant requested) voidsetRequestEmail(String email) voidsetRequestMessage(String message) voidsetRequestName(String name) voidMethods inherited from class org.dspace.app.rest.model.BaseObjectRest
getErrors, getId, setErrors, setIdMethods inherited from class org.dspace.app.rest.model.RestAddressableModel
getEmbedLevel, getProjection, getUniqueType, setEmbedLevel, setProjection
-
Field Details
-
NAME
- See Also:
-
PLURAL_NAME
- See Also:
-
CATEGORY
- See Also:
-
bitstream_id
-
decisionDate
-
expires
-
item_id
-
reqEmail
-
reqMessage
-
reqName
-
requestDate
-
token
-
acceptRequest
protected boolean acceptRequest -
allfiles
protected boolean allfiles -
accessToken
-
accessExpiry
-
accessExpired
protected boolean accessExpired
-
-
Constructor Details
-
RequestItemRest
public RequestItemRest()
-
-
Method Details
-
getBitstreamId
- Returns:
- the bitstream requested.
-
setBitstreamId
- Parameters:
bitstream_id- the bitstream requested.
-
getDecisionDate
- Returns:
- the decisionDate
-
setDecisionDate
- Parameters:
decided- the decisionDate to set
-
getExpires
- Returns:
- the expires
-
setExpires
- Parameters:
expires- the expires to set
-
getItemId
- Returns:
- the item requested.
-
setItemId
- Parameters:
item_id- the item requested.
-
getRequestEmail
- Returns:
- the email address of the requester.
-
setRequestEmail
- Parameters:
email- the email address of the requester.
-
getRequestMessage
- Returns:
- the requester's message.
-
setRequestMessage
- Parameters:
message- the requester's message.
-
getRequestName
- Returns:
- the requester's name.
-
setRequestName
- Parameters:
name- the requester's name.
-
getRequestDate
- Returns:
- the requestDate
-
setRequestDate
- Parameters:
requested- the requestDate to set
-
getToken
- Returns:
- the token which identifies this request.
-
setToken
- Parameters:
token- the token which identifies this request.
-
isAcceptRequest
public boolean isAcceptRequest()- Returns:
- true if the request has been accepted.
-
setAcceptRequest
public void setAcceptRequest(boolean accepted) - Parameters:
accepted- true if the request has been accepted.
-
isAllfiles
public boolean isAllfiles()- Returns:
- true if the request is for all files in the item.
-
setAllfiles
public void setAllfiles(boolean allfiles) - Parameters:
allfiles- true requesting all of the item's files.
-
getAccessToken
- Returns:
- the unique access token to be used by the requester. This is separate to the approval token ('token')
-
setAccessToken
- Parameters:
accessToken- the access token to be used by the requester (not settable through JSON update)
-
getAccessExpiry
- Returns:
- the date the access token expires.
-
setAccessExpiry
- Parameters:
accessExpiry- the date the access token expires.
-
isAccessExpired
public boolean isAccessExpired() -
setAccessExpired
public void setAccessExpired(boolean accessExpired) -
getCategory
- Specified by:
getCategoryin classRestAddressableModel
-
getController
- Specified by:
getControllerin classRestAddressableModel
-
getType
-
getTypePlural
-