Package org.dspace.app.rest.model
Class AccessConditionDTO
java.lang.Object
org.dspace.app.rest.model.AccessConditionDTO
The AccessConditionDTO is a partial representation of the DSpace
ResourcePolicyRest as used in the patch payload for the upload and itemAccessConditions
submission sections (see {@link UploadBitstreamRest, @link DataAccessCondition}.
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 the ResourcePolicyRest class
directly in the upload section- Author:
- Mykhaylo Boychuk (mykhaylo.boychuk at 4science.it)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetId()getName()voidsetDescription(String description) voidsetEndDate(LocalDate endDate) voidvoidvoidsetStartDate(LocalDate startDate)
-
Constructor Details
-
AccessConditionDTO
public AccessConditionDTO()
-
-
Method Details
-
getId
-
setId
-
getName
-
setName
-
getDescription
-
setDescription
-
getStartDate
-
setStartDate
-
getEndDate
-
setEndDate
-