|
|
|
@ -231,7 +231,9 @@ public class Dataset implements ElasticEntity<Dataset> {
|
|
|
|
|
if (this.group != null) {
|
|
|
|
|
builder.field("group", this.group.toString());
|
|
|
|
|
}
|
|
|
|
|
builder.field("grant", this.grant.toString());
|
|
|
|
|
if (this.grant != null) {
|
|
|
|
|
builder.field("grant", this.grant.toString());
|
|
|
|
|
}
|
|
|
|
|
if (collaborators != null) {
|
|
|
|
|
builder.startArray("collaborators");
|
|
|
|
|
this.collaborators.forEach(x -> {
|
|
|
|
@ -300,7 +302,9 @@ public class Dataset implements ElasticEntity<Dataset> {
|
|
|
|
|
this.status = Short.valueOf((String) fields.get("status"));
|
|
|
|
|
this.dmp = UUID.fromString((String) fields.get("dmp"));
|
|
|
|
|
this.group = UUID.fromString((String) fields.get("group"));
|
|
|
|
|
this.grant = UUID.fromString((String) fields.get("grant"));
|
|
|
|
|
if (fields.get("grant") != null) {
|
|
|
|
|
this.grant = UUID.fromString((String) fields.get("grant"));
|
|
|
|
|
}
|
|
|
|
|
if (fields.get("created") != null)
|
|
|
|
|
this.created = Date.from(Instant.parse((String) fields.get("created")));
|
|
|
|
|
if (fields.get("modified") != null)
|
|
|
|
|