Package org.dspace.app.rest.model
Class RequestItemRest
- java.lang.Object
-
- org.dspace.app.rest.model.RestAddressableModel
-
- org.dspace.app.rest.model.BaseObjectRest<Integer>
-
- org.dspace.app.rest.model.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
- See Also:
org.dspace.app.requestitem, Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected booleanacceptRequestprotected booleanallfilesprotected Stringbitstream_idstatic StringCATEGORYprotected DatedecisionDateprotected Dateexpiresprotected Stringitem_idstatic StringNAMEstatic StringPLURAL_NAMEprotected StringreqEmailprotected StringreqMessageprotected StringreqNameprotected DaterequestDateprotected Stringtoken-
Fields inherited from class org.dspace.app.rest.model.BaseObjectRest
id
-
Fields inherited from interface org.dspace.app.rest.model.RestModel
AUTHENTICATION, AUTHORIZATION, CONFIGURATION, CORE, DISCOVER, EPERSON, INTEGRATION, ROOT, STATISTICS, SUBMISSION, SYSTEM, TOOLS, VERSIONING, WORKFLOW
-
-
Constructor Summary
Constructors Constructor Description RequestItemRest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetBitstreamId()StringgetCategory()ClassgetController()DategetDecisionDate()DategetExpires()StringgetItemId()DategetRequestDate()StringgetRequestEmail()StringgetRequestMessage()StringgetRequestName()StringgetToken()StringgetType()StringgetTypePlural()booleanisAcceptRequest()booleanisAllfiles()voidsetAcceptRequest(boolean accepted)voidsetAllfiles(boolean allfiles)voidsetBitstreamId(String bitstream_id)voidsetDecisionDate(Date decided)voidsetExpires(Date expires)voidsetItemId(String item_id)voidsetRequestDate(Date requested)voidsetRequestEmail(String email)voidsetRequestMessage(String message)voidsetRequestName(String name)voidsetToken(String token)-
Methods inherited from class org.dspace.app.rest.model.BaseObjectRest
getErrors, getId, setErrors, setId
-
Methods inherited from class org.dspace.app.rest.model.RestAddressableModel
getEmbedLevel, getProjection, getUniqueType, setEmbedLevel, setProjection
-
-
-
-
Field Detail
-
NAME
public static final String NAME
- See Also:
- Constant Field Values
-
PLURAL_NAME
public static final String PLURAL_NAME
- See Also:
- Constant Field Values
-
CATEGORY
public static final String CATEGORY
- See Also:
- Constant Field Values
-
bitstream_id
protected String bitstream_id
-
decisionDate
protected Date decisionDate
-
expires
protected Date expires
-
item_id
protected String item_id
-
reqEmail
protected String reqEmail
-
reqMessage
protected String reqMessage
-
reqName
protected String reqName
-
requestDate
protected Date requestDate
-
token
protected String token
-
acceptRequest
protected boolean acceptRequest
-
allfiles
protected boolean allfiles
-
-
Method Detail
-
getBitstreamId
public String getBitstreamId()
- Returns:
- the bitstream requested.
-
setBitstreamId
public void setBitstreamId(String bitstream_id)
- Parameters:
bitstream_id- the bitstream requested.
-
getDecisionDate
public Date getDecisionDate()
- Returns:
- the decisionDate
-
setDecisionDate
public void setDecisionDate(Date decided)
- Parameters:
decided- the decisionDate to set
-
getExpires
public Date getExpires()
- Returns:
- the expires
-
setExpires
public void setExpires(Date expires)
- Parameters:
expires- the expires to set
-
getItemId
public String getItemId()
- Returns:
- the item requested.
-
setItemId
public void setItemId(String item_id)
- Parameters:
item_id- the item requested.
-
getRequestEmail
public String getRequestEmail()
- Returns:
- the email address of the requester.
-
setRequestEmail
public void setRequestEmail(String email)
- Parameters:
email- the email address of the requester.
-
getRequestMessage
public String getRequestMessage()
- Returns:
- the requester's message.
-
setRequestMessage
public void setRequestMessage(String message)
- Parameters:
message- the requester's message.
-
getRequestName
public String getRequestName()
- Returns:
- the requester's name.
-
setRequestName
public void setRequestName(String name)
- Parameters:
name- the requester's name.
-
getRequestDate
public Date getRequestDate()
- Returns:
- the requestDate
-
setRequestDate
public void setRequestDate(Date requested)
- Parameters:
requested- the requestDate to set
-
getToken
public String getToken()
- Returns:
- the token which identifies this request.
-
setToken
public void setToken(String token)
- 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
public String getCategory()
- Specified by:
getCategoryin classRestAddressableModel
-
getController
public Class getController()
- Specified by:
getControllerin classRestAddressableModel
-
getType
public String getType()
-
getTypePlural
public String getTypePlural()
-
-