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.Map;

public class SeRelevance extends JSONEntity implements Serializable {

    @JsonProperty
    @Label(en="User needs")
    @Description(en= "Classification of users with some indication of their importance, an indication of the uses for which they want the statistical outputs and as well users and uses given special considerations. Unmet user needs and the reasons for not meeting them should be included as well.")
    @Order(1)
    @Format(Format.FORMAT.textarea)
    private Map<String, String> userNeeds;

    @JsonProperty
    @Label(en="User satisfaction")
    @Description(en= "How the views and opinions of the users are collected. In addition the main results regarding the user satisfaction should be shown (in the form of a user satisfaction index if available) and the date of most recent user satisfaction survey.")
    @Order(2)
    @Format(Format.FORMAT.textarea)
    private Map<String, String> userSatisfaction;

    @JsonProperty
    @Label(en="Completeness")
    @Description(en= "State of completeness of the resource.")
    @Order(3)
    @Format(Format.FORMAT.textarea)
    private Map<String, String> completeness;

    @JsonProperty
    @Label(en="Percentage of completeness")
    @Description(en= "Percentage of the state of completeness of the resource.")
    @Order(4)
    @Format(Format.FORMAT.string)
    private Double completenessPercentage;


    public Map<String, String> getUserNeeds() {
        return userNeeds;
    }

    public void setUserNeeds(Map<String, String> userNeeds) {
        this.userNeeds = userNeeds;
    }

    public Map<String, String> getUserSatisfaction() {
        return userSatisfaction;
    }

    public void setUserSatisfaction(Map<String, String> userSatisfaction) {
        this.userSatisfaction = userSatisfaction;
    }

    public Map<String, String> getCompleteness() {
        return completeness;
    }

    public void setCompleteness(Map<String, String> completeness) {
        this.completeness = completeness;
    }

    public Double getCompletenessPercentage() {
        return completenessPercentage;
    }

    public void setCompletenessPercentage(Double completenessPercentage) {
        this.completenessPercentage = completenessPercentage;
    }
}

@@ -508,18 +508,81 @@
 r needs%22
+,fr=%22Besoins des utilisateurs%22,es=%22Necesidades de los usuarios%22
 )%0A
-
     @Des
@@ -1017,16 +1017,84 @@
 faction%22
+,fr=%22Satisfaction des utilisateurs%22,es=%22La satisfacci%C3%B3n del usuario%22
 )%0A    @D
@@ -1492,32 +1492,69 @@
 n=%22Completeness%22
+,fr=%22Exhaustivit%C3%A9%22,es=%22Exhaustividad%22
 )%0A    @Descripti
@@ -1709,32 +1709,32 @@
   @JsonProperty%0A
-
     @Label(en=%22P
@@ -1759,16 +1759,78 @@
 eteness%22
+,fr=%22Pourcentage d'exhaustivit%C3%A9%22,es=%22Porcentaje de integridad%22
 )%0A    @D

Update SeRelevance.java