java.lang.Object
eu.dzhw.fdz.metadatamanagement.projectmanagement.domain.Release
All Implemented Interfaces:
Serializable

public class Release
extends Object
implements Serializable
The release object contains the version and a timestamp of the current release.
See Also:
Serialized Form
  • Field Summary

    Fields
    Modifier and Type Field Description
    private String doiPageLanguage
    A string indicating the language ("de" or "en") of the DOI landing page.
    private LocalDateTime firstDate
    The timestamp (in UTC) indicates when a publisher has released the DataAcquisitionProject with the current version for the first time.
    private @NotNull(message="data-acquisition-project-management.error.release.last-date.not-null") LocalDateTime lastDate
    The timestamp (in UTC) indicates when a publisher has released the DataAcquisitionProject with the current version the last time.
    private Boolean pinToStartPage
    Boolean which indicates whether the data package shall be displayed on the startpage or not.
    private static long serialVersionUID  
    private @NotEmpty(message="data-acquisition-project-management.error.release.version.not-empty") @Size(max=32,message="data-acquisition-project-management.error.release.version.size") @Pattern(regexp="^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)(-(0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*)(\\.(0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*))*)?(\\+[0-9a-zA-Z-]+(\\.[0-9a-zA-Z-]+)*)?$",message="data-acquisition-project-management.error.release.version.pattern") String version
    A valid semver version (major.minor.patch).
  • Constructor Summary

    Constructors
    Constructor Description
    Release()  
  • Method Summary

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      See Also:
      Constant Field Values
    • version

      @NotEmpty(message="data-acquisition-project-management.error.release.version.not-empty") @Size(max=32, message="data-acquisition-project-management.error.release.version.size") @Pattern(regexp="^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)(-(0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*)(\\.(0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*))*)?(\\+[0-9a-zA-Z-]+(\\.[0-9a-zA-Z-]+)*)?$", message="data-acquisition-project-management.error.release.version.pattern") private @NotEmpty(message="data-acquisition-project-management.error.release.version.not-empty") @Size(max=32,message="data-acquisition-project-management.error.release.version.size") @Pattern(regexp="^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)(-(0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*)(\\.(0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*))*)?(\\+[0-9a-zA-Z-]+(\\.[0-9a-zA-Z-]+)*)?$",message="data-acquisition-project-management.error.release.version.pattern") String version
      A valid semver version (major.minor.patch). Must not be empty and must not contain more than 32 characters. A version of a DataAcquisitionProject must not be decreased.
    • lastDate

      @NotNull(message="data-acquisition-project-management.error.release.last-date.not-null") private @NotNull(message="data-acquisition-project-management.error.release.last-date.not-null") LocalDateTime lastDate
      The timestamp (in UTC) indicates when a publisher has released the DataAcquisitionProject with the current version the last time. Must not be empty.
    • firstDate

      private LocalDateTime firstDate
      The timestamp (in UTC) indicates when a publisher has released the DataAcquisitionProject with the current version for the first time. Will be generated by the server and will not be empty.
    • pinToStartPage

      private Boolean pinToStartPage
      Boolean which indicates whether the data package shall be displayed on the startpage or not.
    • doiPageLanguage

      private String doiPageLanguage
      A string indicating the language ("de" or "en") of the DOI landing page.
  • Constructor Details

    • Release

      public Release()