diff --git a/dmp-backend/pom.xml b/dmp-backend/pom.xml
index b9a7f248a..3e400ccc2 100644
--- a/dmp-backend/pom.xml
+++ b/dmp-backend/pom.xml
@@ -7,6 +7,7 @@
0.0.1-SNAPSHOT
war
+
1.19.0
1.19.0
@@ -35,7 +36,6 @@
-
@@ -250,11 +250,17 @@
-
+
com.google.apis
google-api-services-oauth2
v2-rev75-1.19.0
-
+
+
+ com.google.guava
+ guava-jdk5
+
+
+
com.google.http-client
google-http-client-jackson2
@@ -294,6 +300,26 @@
23.0
+
+
+
+ io.springfox
+ springfox-swagger2
+ 2.7.0
+
+
+
+
+
+
+
+
+
+ io.springfox
+ springfox-swagger-ui
+ 2.7.0
+
+
@@ -335,7 +361,7 @@
-
+
${project.artifactId}
diff --git a/dmp-backend/src/main/java/models/admin/components/datasetprofile/Field.java b/dmp-backend/src/main/java/models/admin/components/datasetprofile/Field.java
index fe54311c2..faf7d97b3 100644
--- a/dmp-backend/src/main/java/models/admin/components/datasetprofile/Field.java
+++ b/dmp-backend/src/main/java/models/admin/components/datasetprofile/Field.java
@@ -1,5 +1,7 @@
package models.admin.components.datasetprofile;
+import org.apache.commons.lang3.RandomStringUtils;
+
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty;
@@ -13,9 +15,9 @@ import utilities.ModelDefinition;
import utilities.ViewStyleDefinition;
import utilities.builders.ModelBuilder;
-public class Field implements ModelDefinition,ViewStyleDefinition{
+public class Field implements ModelDefinition,ViewStyleDefinition,Comparable{
private String id;
- private int ordinal;
+ private Integer ordinal;
private String title;
private String value;
private String description;
@@ -122,6 +124,8 @@ public class Field implements ModelDefinition,ViewStyleDefinition{
+public class FieldSet implements Comparable,ModelDefinition,ViewStyleDefinition{
private String id;
- private int ordinal;
+ private Integer ordinal;
private Multiplicity multiplicity;
private List fields;
@@ -50,6 +52,8 @@ public class FieldSet implements ModelDefinition modelfields = new ModelBuilder().toModelDefinition(this.fields, entities.xmlmodels.modeldefinition.Field.class);
@@ -66,7 +70,9 @@ public class FieldSet implements ModelDefinition viewStylefields = new ModelBuilder().toViewStyleDefinition(this.fields, entities.xmlmodels.viewstyledefinition.Field.class);
item.setFields(viewStylefields);
item.setId(this.id);
@@ -80,6 +86,11 @@ public class FieldSet implements ModelDefinition{
+public class Section implements Comparable,ViewStyleDefinition{
private List sections;
private List fieldGroups;
private Boolean defaultVisibility;
private int page;
- private int ordinal;
+ private Integer ordinal;
private String id;
private String title;
private String description;
@@ -66,6 +68,7 @@ public class Section implements ViewStyleDefinition fieldValues){
+ public void toMap(Map fieldValues){
+ fieldValues.put(this.id, this.value);
+ }
+ @Override
+ public void toMap(Map fieldValues, int index) {
fieldValues.put(this.id, this.value);
}
diff --git a/dmp-backend/src/main/java/models/properties/FieldSet.java b/dmp-backend/src/main/java/models/properties/FieldSet.java
index 58b78230c..9f63ee77e 100644
--- a/dmp-backend/src/main/java/models/properties/FieldSet.java
+++ b/dmp-backend/src/main/java/models/properties/FieldSet.java
@@ -1,5 +1,6 @@
package models.properties;
+import java.util.HashMap;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
@@ -13,6 +14,15 @@ import utilities.builders.ModelBuilder;
public class FieldSet implements PropertiesGenerator{
private List fields;
+ private List