Class 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 Detail

      • AccessConditionDTO

        public AccessConditionDTO()
    • Method Detail

      • 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)