package org.fao.fenix.commons.msd.dto.full;

import com.fasterxml.jackson.annotation.JsonProperty;
import org.fao.fenix.commons.annotations.Description;
import org.fao.fenix.commons.annotations.Label;
import org.fao.fenix.commons.msd.dto.JSONEntity;

import javax.persistence.Embedded;
import java.io.Serializable;
import java.util.Date;
import java.util.Map;

public class SeReleasePolicy extends JSONEntity implements Serializable {

    @JsonProperty
    @Label(en="")
    @Description(en= "")
    private Map<String, String> releaseCalendar;

    @JsonProperty
    @Label(en="")
    @Description(en= "")
    private String releaseCalendarAccess;

    @JsonProperty
    @Label(en="")
    @Description(en= "")
    private OjCodeList disseminationPeriodicity;

    @JsonProperty
    @Label(en="")
    @Description(en= "")
    private OjPeriod embargoTime;


    public Map<String, String> getReleaseCalendar() {
        return releaseCalendar;
    }

    public void setReleaseCalendar(Map<String, String> releaseCalendar) {
        this.releaseCalendar = releaseCalendar;
    }

    public String getReleaseCalendarAccess() {
        return releaseCalendarAccess;
    }

    public void setReleaseCalendarAccess(String releaseCalendarAccess) {
        this.releaseCalendarAccess = releaseCalendarAccess;
    }

    public OjCodeList getDisseminationPeriodicity() {
        return disseminationPeriodicity;
    }
    @Embedded
    public void setDisseminationPeriodicity(OjCodeList disseminationPeriodicity) {
        this.disseminationPeriodicity = disseminationPeriodicity;
    }

    public OjPeriod getEmbargoTime() {
        return embargoTime;
    }
    @Embedded
    public void setEmbargoTime(OjPeriod embargoTime) {
        this.embargoTime = embargoTime;
    }
}

@@ -454,32 +454,48 @@
 %0A    @Label(en=%22
+Release calendar
 %22)%0A    @Descript
@@ -507,223 +507,559 @@
 n= %22
-%22)%0A    private Map%3CString, String%3E releaseCalendar;%0A%0A    @JsonProperty%0A    @Label(en=%22%22)%0A    @Description(en= %22%22)%0A    private String releaseCalendarAccess;%0A%0A    @JsonProperty%0A    @Label(en=%22%22)%0A    @Description(en= %22
+Policy regarding the release of the resource in accordance with the pre-announced schedule. It also provides information on the availability of the release calendar.%22)%0A    private Map%3CString, String%3E releaseCalendar;%0A%0A    @JsonProperty%0A    @Label(en=%22Access to the release calendar%22)%0A    @Description(en= %22Link or references to the release calendar.%22)%0A    private String releaseCalendarAccess;%0A%0A    @JsonProperty%0A    @Label(en=%22Dissemination periodicity%22)%0A    @Description(en= %22Frequency of data dissemination (e.g. daily, monthly, quarterly, yearly).
 %22)%0A 
@@ -1140,16 +1140,28 @@
 bel(en=%22
+Embargo time
 %22)%0A    @
@@ -1177,16 +1177,117 @@
 on(en= %22
+Time span between the completion of the production process of statistical data and their publication.
 %22)%0A    p

Update SeReleasePolicy.java