sync with new models

This commit is contained in:
Efstratios Giannopoulos 2023-12-12 16:56:36 +02:00
parent 685a30b2cd
commit 967d0e5f91
4 changed files with 13 additions and 23 deletions

View File

@ -5,7 +5,7 @@ import java.util.List;
public class DescriptionDepositModel {
private String label;
private String description;
private List<DatasetFieldsDepositModel> fields;
private List<DescriptionFieldDepositModel> fields;
public String getLabel() {
return label;
@ -23,11 +23,11 @@ public class DescriptionDepositModel {
this.description = description;
}
public List<DatasetFieldsDepositModel> getFields() {
public List<DescriptionFieldDepositModel> getFields() {
return fields;
}
public void setFields(List<DatasetFieldsDepositModel> fields) {
public void setFields(List<DescriptionFieldDepositModel> fields) {
this.fields = fields;
}
}

View File

@ -4,11 +4,10 @@ import eu.eudat.depositinterface.enums.FieldType;
import java.util.List;
public class DatasetFieldsDepositModel {
public class DescriptionFieldDepositModel {
private FieldType fieldType;
private List<String> schematics;
private Object value;
private boolean multiple;
private List<Object> values;
public FieldType getFieldType() {
return fieldType;
@ -26,19 +25,11 @@ public class DatasetFieldsDepositModel {
this.schematics = schematics;
}
public Object getValue() {
return value;
public List<Object> getValues() {
return values;
}
public void setValue(Object value) {
this.value = value;
}
public boolean isMultiple() {
return multiple;
}
public void setMultiple(boolean multiple) {
this.multiple = multiple;
public void setValues(List<Object> values) {
this.values = values;
}
}

View File

@ -3,7 +3,6 @@ package eu.eudat.depositinterface.models;
import eu.eudat.depositinterface.enums.DmpAccessType;
import java.time.Instant;
import java.util.Set;
import java.util.UUID;
import java.util.List;
@ -14,7 +13,7 @@ public class DmpDepositModel {
private String description;
private DmpAccessType accessType;
private List<DescriptionDepositModel> descriptions;
private Set<UserDmpDepositModel> users;
private List<DmpUserDepositModel> users;
private List<ReferenceDepositModel> references;
private FileEnvelope pdfFile;
private FileEnvelope rdaJsonFile;
@ -62,11 +61,11 @@ public class DmpDepositModel {
this.accessType = accessType;
}
public Set<UserDmpDepositModel> getUsers() {
public List<DmpUserDepositModel> getUsers() {
return users;
}
public void setUsers(Set<UserDmpDepositModel> users) {
public void setUsers(List<DmpUserDepositModel> users) {
this.users = users;
}

View File

@ -2,7 +2,7 @@ package eu.eudat.depositinterface.models;
import eu.eudat.depositinterface.enums.DmpUserRole;
public class UserDmpDepositModel {
public class DmpUserDepositModel {
private UserDepositModel user;
private DmpUserRole role;