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 Stringstatic final Stringprotected Dateprotected Dateprotected Stringstatic final Stringstatic final Stringprotected Stringprotected Stringprotected Stringprotected Dateprotected 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()booleanbooleanvoidsetAcceptRequest(boolean accepted) voidsetAllfiles(boolean allfiles) voidsetBitstreamId(String bitstream_id) voidsetDecisionDate(Date decided) voidsetExpires(Date expires) voidvoidsetRequestDate(Date 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
-
-
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.
-
getCategory
- Specified by:
getCategoryin classRestAddressableModel
-
getController
- Specified by:
getControllerin classRestAddressableModel
-
getType
-
getTypePlural
-