Package org.dspace.app.rest.model
Class UploadBitstreamAccessConditionDTO
- java.lang.Object
-
- org.dspace.app.rest.model.UploadBitstreamAccessConditionDTO
-
public class UploadBitstreamAccessConditionDTO extends Object
The UploadAccessConditionDTO is a partial representation of the DSpaceResourcePolicyRestas used in the patch payload for the upload submission section (seeUploadBitstreamRest. The main reason for this class is to have a DTO to use serialize/deserialize the REST model, that include reference to the GroupRest and EPersonRest object, in the upload section data in a simpler way where such reference are just UUID. Indeed, due to the fact that the RestModel class are serialized according to the HAL format and the reference are only exposed in the _links section of the RestResource it was not possible to use theResourcePolicyRestclass directly in the upload section- Author:
- Mykhaylo Boychuk (mykhaylo.boychuk at 4science.it)
-
-
Constructor Summary
Constructors Constructor Description UploadBitstreamAccessConditionDTO()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetDescription()DategetEndDate()IntegergetId()StringgetName()DategetStartDate()voidsetDescription(String description)voidsetEndDate(Date endDate)voidsetId(Integer id)voidsetName(String name)voidsetStartDate(Date startDate)
-
-
-
Method Detail
-
getId
public Integer getId()
-
setId
public void setId(Integer id)
-
getName
public String getName()
-
setName
public void setName(String name)
-
getDescription
public String getDescription()
-
setDescription
public void setDescription(String description)
-
getStartDate
public Date getStartDate()
-
setStartDate
public void setStartDate(Date startDate)
-
getEndDate
public Date getEndDate()
-
setEndDate
public void setEndDate(Date endDate)
-
-