Class AccessConditionDTO

java.lang.Object
org.dspace.app.rest.model.AccessConditionDTO

public class AccessConditionDTO extends Object
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 Details

    • AccessConditionDTO

      public AccessConditionDTO()
  • Method Details

    • 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 LocalDate getStartDate()
    • setStartDate

      public void setStartDate(LocalDate startDate)
    • getEndDate

      public LocalDate getEndDate()
    • setEndDate

      public void setEndDate(LocalDate endDate)