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.Format;
import org.fao.fenix.commons.annotations.Label;
import org.fao.fenix.commons.annotations.Order;
import org.fao.fenix.commons.msd.dto.JSONEntity;

import java.io.Serializable;
import java.util.Date;

public class SeMetadataMaintenance extends JSONEntity implements Serializable {

    @JsonProperty
    @Label(en="Metadata last certified")
    @Description(en= "Latest date of certification of the metadata.")
    @Order(1)
    @Format(Format.FORMAT.date)
    private Date metadataLastCertified;

    @JsonProperty
    @Label(en="Metadata last posted")
    @Description(en= "Latest date of publication of the metadata. It is usually automatically updated by the metadata production system.")
    @Order(2)
    @Format(Format.FORMAT.date)
    private Date metadataLastPosted;

    @JsonProperty
    @Label(en="Metadata last update")
    @Description(en= "Most recent date of update of the metadata.")
    @Order(3)
    @Format(Format.FORMAT.date)
    private Date metadataLastUpdate;


    public Date getMetadataLastCertified() {
        return metadataLastCertified;
    }

    public void setMetadataLastCertified(Date metadataLastCertified) {
        this.metadataLastCertified = metadataLastCertified;
    }

    public Date getMetadataLastPosted() {
        return metadataLastPosted;
    }

    public void setMetadataLastPosted(Date metadataLastPosted) {
        this.metadataLastPosted = metadataLastPosted;
    }

    public Date getMetadataLastUpdate() {
        return metadataLastUpdate;
    }

    public void setMetadataLastUpdate(Date metadataLastUpdate) {
        this.metadataLastUpdate = metadataLastUpdate;
    }
}

@@ -532,18 +532,88 @@
 rtified%22
+,fr=%22Dernier m%C3%A9tadonn%C3%A9es certifi%C3%A9es%22,es=%22Metadatos %C3%BAltima certificada%22
 )%0A
-
     @Des
@@ -815,16 +815,86 @@
  posted%22
+,fr=%22Dernier m%C3%A9tadonn%C3%A9es telecharg%C3%A9es%22,es=%22Metadatos %C3%BAltimo publicado%22
 )%0A    @D
@@ -1120,32 +1120,32 @@
   @JsonProperty%0A
-
     @Label(en=%22M
@@ -1164,16 +1164,90 @@
  update%22
+,fr=%22Dernier m%C3%A9tadonn%C3%A9es mises %C3%A0 jour%22,es=%22Metadatos %C3%BAltima actualizaci%C3%B3n%22
 )%0A    @D

Update SeMetadataMaintenance.java