Added file transformer models
This commit is contained in:
parent
626a7e12e9
commit
d27d71c06f
|
@ -0,0 +1,30 @@
|
||||||
|
package eu.eudat.commonmodels.enums;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonValue;
|
||||||
|
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
public enum DescriptionStatus implements EnumValueProvider<Short> {
|
||||||
|
|
||||||
|
Draft((short) 0),
|
||||||
|
Finalized((short) 1),
|
||||||
|
Canceled((short) 2);
|
||||||
|
|
||||||
|
private final Short value;
|
||||||
|
|
||||||
|
DescriptionStatus(Short value) {
|
||||||
|
this.value = value;
|
||||||
|
}
|
||||||
|
|
||||||
|
@JsonValue
|
||||||
|
public Short getValue() {
|
||||||
|
return value;
|
||||||
|
}
|
||||||
|
|
||||||
|
private static final Map<Short, DescriptionStatus> map = EnumUtils.getEnumValueMap(DescriptionStatus.class);
|
||||||
|
|
||||||
|
public static DescriptionStatus of(Short i) {
|
||||||
|
return map.get(i);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -27,3 +27,4 @@ public enum DmpAccessType implements EnumValueProvider<Short> {
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,32 @@
|
||||||
|
package eu.eudat.commonmodels.enums;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonValue;
|
||||||
|
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
public enum DmpBlueprintExtraFieldDataType implements EnumValueProvider<Short> {
|
||||||
|
|
||||||
|
Text((short) 0),
|
||||||
|
RichTex((short) 1),
|
||||||
|
Date((short) 2),
|
||||||
|
Number((short) 3),
|
||||||
|
;
|
||||||
|
|
||||||
|
private final Short value;
|
||||||
|
|
||||||
|
DmpBlueprintExtraFieldDataType(Short value) {
|
||||||
|
this.value = value;
|
||||||
|
}
|
||||||
|
|
||||||
|
@JsonValue
|
||||||
|
public Short getValue() {
|
||||||
|
return value;
|
||||||
|
}
|
||||||
|
|
||||||
|
private static final Map<Short, DmpBlueprintExtraFieldDataType> map = EnumUtils.getEnumValueMap(DmpBlueprintExtraFieldDataType.class);
|
||||||
|
|
||||||
|
public static DmpBlueprintExtraFieldDataType of(Short i) {
|
||||||
|
return map.get(i);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,35 @@
|
||||||
|
package eu.eudat.commonmodels.enums;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonValue;
|
||||||
|
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
public enum DmpBlueprintFieldCategory implements EnumValueProvider<Short> {
|
||||||
|
System((short) 0),
|
||||||
|
Extra((short) 1),
|
||||||
|
ReferenceType((short) 2);
|
||||||
|
|
||||||
|
public static class Names {
|
||||||
|
public static final String System = "system";
|
||||||
|
public static final String Extra = "extra";
|
||||||
|
public static final String ReferenceType = "referenceType";
|
||||||
|
}
|
||||||
|
|
||||||
|
private final Short value;
|
||||||
|
|
||||||
|
DmpBlueprintFieldCategory(Short value) {
|
||||||
|
this.value = value;
|
||||||
|
}
|
||||||
|
|
||||||
|
@JsonValue
|
||||||
|
public Short getValue() {
|
||||||
|
return value;
|
||||||
|
}
|
||||||
|
|
||||||
|
private static final Map<Short, DmpBlueprintFieldCategory> map = EnumUtils.getEnumValueMap(DmpBlueprintFieldCategory.class);
|
||||||
|
|
||||||
|
public static DmpBlueprintFieldCategory of(Short i) {
|
||||||
|
return map.get(i);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
@ -0,0 +1,29 @@
|
||||||
|
package eu.eudat.commonmodels.enums;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonValue;
|
||||||
|
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
public enum DmpBlueprintStatus implements EnumValueProvider<Short> {
|
||||||
|
|
||||||
|
Draft((short) 0),
|
||||||
|
Finalized((short) 1);
|
||||||
|
|
||||||
|
private final Short value;
|
||||||
|
|
||||||
|
DmpBlueprintStatus(Short value) {
|
||||||
|
this.value = value;
|
||||||
|
}
|
||||||
|
|
||||||
|
@JsonValue
|
||||||
|
public Short getValue() {
|
||||||
|
return value;
|
||||||
|
}
|
||||||
|
|
||||||
|
private static final Map<Short, DmpBlueprintStatus> map = EnumUtils.getEnumValueMap(DmpBlueprintStatus.class);
|
||||||
|
|
||||||
|
public static DmpBlueprintStatus of(Short i) {
|
||||||
|
return map.get(i);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,31 @@
|
||||||
|
package eu.eudat.commonmodels.enums;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonValue;
|
||||||
|
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
public enum DmpBlueprintSystemFieldType implements EnumValueProvider<Short> {
|
||||||
|
|
||||||
|
Title((short)0),
|
||||||
|
Description((short)1),
|
||||||
|
Language((short)2),
|
||||||
|
Contact((short)3),
|
||||||
|
AccessRights((short)4),
|
||||||
|
User((short)5);
|
||||||
|
private final Short value;
|
||||||
|
|
||||||
|
DmpBlueprintSystemFieldType(Short value) {
|
||||||
|
this.value = value;
|
||||||
|
}
|
||||||
|
|
||||||
|
@JsonValue
|
||||||
|
public Short getValue() {
|
||||||
|
return value;
|
||||||
|
}
|
||||||
|
|
||||||
|
private static final Map<Short, DmpBlueprintSystemFieldType> map = EnumUtils.getEnumValueMap(DmpBlueprintSystemFieldType.class);
|
||||||
|
|
||||||
|
public static DmpBlueprintSystemFieldType of(Short i) {
|
||||||
|
return map.get(i);
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,31 @@
|
||||||
|
package eu.eudat.commonmodels.enums;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonValue;
|
||||||
|
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
public enum DmpStatus implements EnumValueProvider<Short> {
|
||||||
|
|
||||||
|
Draft((short) 0), Finalized((short) 1);
|
||||||
|
|
||||||
|
private final Short value;
|
||||||
|
|
||||||
|
DmpStatus(Short value) {
|
||||||
|
this.value = value;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
@JsonValue
|
||||||
|
public Short getValue() {
|
||||||
|
return value;
|
||||||
|
}
|
||||||
|
|
||||||
|
private static final Map<Short, DmpStatus> map = EnumUtils.getEnumValueMap(DmpStatus.class);
|
||||||
|
|
||||||
|
public static DmpStatus of(Short i) {
|
||||||
|
return map.get(i);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
|
@ -0,0 +1,24 @@
|
||||||
|
package eu.eudat.commonmodels.models;
|
||||||
|
|
||||||
|
import java.util.UUID;
|
||||||
|
|
||||||
|
public class EntityDoiModel {
|
||||||
|
private UUID id;
|
||||||
|
private String doi;
|
||||||
|
|
||||||
|
public UUID getId() {
|
||||||
|
return id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setId(UUID id) {
|
||||||
|
this.id = id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDoi() {
|
||||||
|
return doi;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDoi(String doi) {
|
||||||
|
this.doi = doi;
|
||||||
|
}
|
||||||
|
}
|
|
@ -1,12 +1,21 @@
|
||||||
package eu.eudat.commonmodels.models.description;
|
package eu.eudat.commonmodels.models.description;
|
||||||
|
|
||||||
|
|
||||||
|
import eu.eudat.commonmodels.enums.DescriptionStatus;
|
||||||
|
import eu.eudat.commonmodels.models.dmp.DmpModel;
|
||||||
import eu.eudat.commonmodels.models.descriptiotemplate.DescriptionTemplateModel;
|
import eu.eudat.commonmodels.models.descriptiotemplate.DescriptionTemplateModel;
|
||||||
|
|
||||||
|
import java.time.Instant;
|
||||||
|
import java.util.UUID;
|
||||||
|
|
||||||
public class DescriptionModel {
|
public class DescriptionModel {
|
||||||
private String label;
|
private String label;
|
||||||
private String description;
|
private String description;
|
||||||
|
private DescriptionStatus status;
|
||||||
private DescriptionTemplateModel descriptionTemplate;
|
private DescriptionTemplateModel descriptionTemplate;
|
||||||
|
private DmpModel dmp;
|
||||||
|
private UUID sectionId;
|
||||||
|
private Instant createdAt;
|
||||||
|
|
||||||
private PropertyDefinitionModel properties;
|
private PropertyDefinitionModel properties;
|
||||||
|
|
||||||
|
@ -41,4 +50,36 @@ public class DescriptionModel {
|
||||||
public void setDescriptionTemplate(DescriptionTemplateModel descriptionTemplate) {
|
public void setDescriptionTemplate(DescriptionTemplateModel descriptionTemplate) {
|
||||||
this.descriptionTemplate = descriptionTemplate;
|
this.descriptionTemplate = descriptionTemplate;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public DmpModel getDmp() {
|
||||||
|
return dmp;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDmp(DmpModel dmp) {
|
||||||
|
this.dmp = dmp;
|
||||||
|
}
|
||||||
|
|
||||||
|
public DescriptionStatus getStatus() {
|
||||||
|
return status;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setStatus(DescriptionStatus status) {
|
||||||
|
this.status = status;
|
||||||
|
}
|
||||||
|
|
||||||
|
public UUID getSectionId() {
|
||||||
|
return sectionId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSectionId(UUID sectionId) {
|
||||||
|
this.sectionId = sectionId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Instant getCreatedAt() {
|
||||||
|
return createdAt;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCreatedAt(Instant createdAt) {
|
||||||
|
this.createdAt = createdAt;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,27 @@
|
||||||
|
package eu.eudat.commonmodels.models.dmp;
|
||||||
|
|
||||||
|
import java.util.UUID;
|
||||||
|
|
||||||
|
public class DmpBlueprintValueModel {
|
||||||
|
|
||||||
|
private UUID fieldId;
|
||||||
|
|
||||||
|
private String value;
|
||||||
|
|
||||||
|
public UUID getFieldId() {
|
||||||
|
return fieldId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setFieldId(UUID fieldId) {
|
||||||
|
this.fieldId = fieldId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getValue() {
|
||||||
|
return value;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setValue(String value) {
|
||||||
|
this.value = value;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -1,7 +1,13 @@
|
||||||
package eu.eudat.commonmodels.models;
|
package eu.eudat.commonmodels.models.dmp;
|
||||||
|
|
||||||
import eu.eudat.commonmodels.enums.DmpAccessType;
|
import eu.eudat.commonmodels.enums.DmpAccessType;
|
||||||
|
import eu.eudat.commonmodels.enums.DmpStatus;
|
||||||
|
import eu.eudat.commonmodels.models.DmpUserModel;
|
||||||
|
import eu.eudat.commonmodels.models.EntityDoiModel;
|
||||||
|
import eu.eudat.commonmodels.models.FileEnvelopeModel;
|
||||||
|
import eu.eudat.commonmodels.models.UserModel;
|
||||||
import eu.eudat.commonmodels.models.description.DescriptionModel;
|
import eu.eudat.commonmodels.models.description.DescriptionModel;
|
||||||
|
import eu.eudat.commonmodels.models.dmpblueprint.DmpBlueprintModel;
|
||||||
import eu.eudat.commonmodels.models.reference.ReferenceModel;
|
import eu.eudat.commonmodels.models.reference.ReferenceModel;
|
||||||
|
|
||||||
import java.time.Instant;
|
import java.time.Instant;
|
||||||
|
@ -14,6 +20,11 @@ public class DmpModel {
|
||||||
private String label;
|
private String label;
|
||||||
private String description;
|
private String description;
|
||||||
private DmpAccessType accessType;
|
private DmpAccessType accessType;
|
||||||
|
private DmpStatus status;
|
||||||
|
private UserModel creator;
|
||||||
|
private DmpBlueprintModel dmpBlueprint;
|
||||||
|
private DmpPropertiesModel properties;
|
||||||
|
private List<EntityDoiModel> entityDois;
|
||||||
private List<DescriptionModel> descriptions;
|
private List<DescriptionModel> descriptions;
|
||||||
private List<DmpUserModel> users;
|
private List<DmpUserModel> users;
|
||||||
private List<ReferenceModel> references;
|
private List<ReferenceModel> references;
|
||||||
|
@ -22,6 +33,8 @@ public class DmpModel {
|
||||||
private FileEnvelopeModel supportingFilesZip;
|
private FileEnvelopeModel supportingFilesZip;
|
||||||
private String previousDOI;
|
private String previousDOI;
|
||||||
private Instant finalizedAt;
|
private Instant finalizedAt;
|
||||||
|
private Instant publicAfter;
|
||||||
|
private Instant updatedAt;
|
||||||
|
|
||||||
public UUID getId() {
|
public UUID getId() {
|
||||||
return id;
|
return id;
|
||||||
|
@ -126,4 +139,60 @@ public class DmpModel {
|
||||||
public void setDescriptions(List<DescriptionModel> descriptions) {
|
public void setDescriptions(List<DescriptionModel> descriptions) {
|
||||||
this.descriptions = descriptions;
|
this.descriptions = descriptions;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public DmpStatus getStatus() {
|
||||||
|
return status;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setStatus(DmpStatus status) {
|
||||||
|
this.status = status;
|
||||||
|
}
|
||||||
|
|
||||||
|
public DmpBlueprintModel getDmpBlueprint() {
|
||||||
|
return dmpBlueprint;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDmpBlueprint(DmpBlueprintModel dmpBlueprint) {
|
||||||
|
this.dmpBlueprint = dmpBlueprint;
|
||||||
|
}
|
||||||
|
|
||||||
|
public UserModel getCreator() {
|
||||||
|
return creator;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCreator(UserModel creator) {
|
||||||
|
this.creator = creator;
|
||||||
|
}
|
||||||
|
|
||||||
|
public DmpPropertiesModel getProperties() {
|
||||||
|
return properties;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setProperties(DmpPropertiesModel properties) {
|
||||||
|
this.properties = properties;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Instant getPublicAfter() {
|
||||||
|
return publicAfter;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPublicAfter(Instant publicAfter) {
|
||||||
|
this.publicAfter = publicAfter;
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<EntityDoiModel> getEntityDois() {
|
||||||
|
return entityDois;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setEntityDois(List<EntityDoiModel> entityDois) {
|
||||||
|
this.entityDois = entityDois;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Instant getUpdatedAt() {
|
||||||
|
return updatedAt;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setUpdatedAt(Instant updatedAt) {
|
||||||
|
this.updatedAt = updatedAt;
|
||||||
|
}
|
||||||
}
|
}
|
|
@ -0,0 +1,17 @@
|
||||||
|
package eu.eudat.commonmodels.models.dmp;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.UUID;
|
||||||
|
|
||||||
|
public class DmpPropertiesModel {
|
||||||
|
|
||||||
|
private List<DmpBlueprintValueModel> dmpBlueprintValues;
|
||||||
|
|
||||||
|
public List<DmpBlueprintValueModel> getDmpBlueprintValues() {
|
||||||
|
return dmpBlueprintValues;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDmpBlueprintValues(List<DmpBlueprintValueModel> dmpBlueprintValues) {
|
||||||
|
this.dmpBlueprintValues = dmpBlueprintValues;
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,16 @@
|
||||||
|
package eu.eudat.commonmodels.models.dmpblueprint;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
public class DefinitionModel {
|
||||||
|
|
||||||
|
private List<SectionModel> sections;
|
||||||
|
|
||||||
|
public List<SectionModel> getSections() {
|
||||||
|
return sections;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSections(List<SectionModel> sections) {
|
||||||
|
this.sections = sections;
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,59 @@
|
||||||
|
package eu.eudat.commonmodels.models.dmpblueprint;
|
||||||
|
|
||||||
|
import eu.eudat.commonmodels.enums.DmpBlueprintStatus;
|
||||||
|
|
||||||
|
import java.util.UUID;
|
||||||
|
|
||||||
|
public class DmpBlueprintModel {
|
||||||
|
private UUID id;
|
||||||
|
|
||||||
|
private String label;
|
||||||
|
|
||||||
|
private DefinitionModel definition;
|
||||||
|
|
||||||
|
private DmpBlueprintStatus status;
|
||||||
|
|
||||||
|
private UUID groupId;
|
||||||
|
|
||||||
|
public UUID getId() {
|
||||||
|
return id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setId(UUID id) {
|
||||||
|
this.id = id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getLabel() {
|
||||||
|
return label;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLabel(String label) {
|
||||||
|
this.label = label;
|
||||||
|
}
|
||||||
|
|
||||||
|
public DefinitionModel getDefinition() {
|
||||||
|
return definition;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDefinition(DefinitionModel definition) {
|
||||||
|
this.definition = definition;
|
||||||
|
}
|
||||||
|
|
||||||
|
public DmpBlueprintStatus getStatus() {
|
||||||
|
return status;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setStatus(DmpBlueprintStatus status) {
|
||||||
|
this.status = status;
|
||||||
|
}
|
||||||
|
|
||||||
|
public UUID getGroupId() {
|
||||||
|
return groupId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setGroupId(UUID groupId) {
|
||||||
|
this.groupId = groupId;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,16 @@
|
||||||
|
package eu.eudat.commonmodels.models.dmpblueprint;
|
||||||
|
|
||||||
|
import eu.eudat.commonmodels.enums.DmpBlueprintExtraFieldDataType;
|
||||||
|
|
||||||
|
public class ExtraFieldModel extends FieldModel {
|
||||||
|
|
||||||
|
private DmpBlueprintExtraFieldDataType dataType;
|
||||||
|
|
||||||
|
public DmpBlueprintExtraFieldDataType getDataType() {
|
||||||
|
return dataType;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDataType(DmpBlueprintExtraFieldDataType dataType) {
|
||||||
|
this.dataType = dataType;
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,93 @@
|
||||||
|
package eu.eudat.commonmodels.models.dmpblueprint;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonSubTypes;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonTypeInfo;
|
||||||
|
import eu.eudat.commonmodels.enums.DmpBlueprintFieldCategory;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.UUID;
|
||||||
|
|
||||||
|
@JsonTypeInfo(
|
||||||
|
use = JsonTypeInfo.Id.NAME,
|
||||||
|
include = JsonTypeInfo.As.PROPERTY,
|
||||||
|
property = "category",
|
||||||
|
visible = true)
|
||||||
|
@JsonSubTypes({
|
||||||
|
@JsonSubTypes.Type(value = SystemFieldModel.class, name = "0"),
|
||||||
|
@JsonSubTypes.Type(value = ExtraFieldModel.class, name = "1"),
|
||||||
|
@JsonSubTypes.Type(value = ReferenceTypeFieldModel.class, name = "2")
|
||||||
|
})
|
||||||
|
public abstract class FieldModel {
|
||||||
|
private UUID id;
|
||||||
|
private DmpBlueprintFieldCategory category;
|
||||||
|
private String label;
|
||||||
|
private String placeholder;
|
||||||
|
private String description;
|
||||||
|
private List<String> semantics;
|
||||||
|
private Integer ordinal;
|
||||||
|
private Boolean required;
|
||||||
|
|
||||||
|
public UUID getId() {
|
||||||
|
return id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setId(UUID id) {
|
||||||
|
this.id = id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public DmpBlueprintFieldCategory getCategory() {
|
||||||
|
return category;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCategory(DmpBlueprintFieldCategory category) {
|
||||||
|
this.category = category;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getLabel() {
|
||||||
|
return label;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLabel(String label) {
|
||||||
|
this.label = label;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPlaceholder() {
|
||||||
|
return placeholder;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPlaceholder(String placeholder) {
|
||||||
|
this.placeholder = placeholder;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDescription() {
|
||||||
|
return description;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDescription(String description) {
|
||||||
|
this.description = description;
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<String> getSemantics() {
|
||||||
|
return semantics;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSemantics(List<String> semantics) {
|
||||||
|
this.semantics = semantics;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getOrdinal() {
|
||||||
|
return ordinal;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setOrdinal(Integer ordinal) {
|
||||||
|
this.ordinal = ordinal;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Boolean getRequired() {
|
||||||
|
return required;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setRequired(Boolean required) {
|
||||||
|
this.required = required;
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,18 @@
|
||||||
|
package eu.eudat.commonmodels.models.dmpblueprint;
|
||||||
|
|
||||||
|
import eu.eudat.commonmodels.models.reference.ReferenceTypeModel;
|
||||||
|
|
||||||
|
import java.util.UUID;
|
||||||
|
|
||||||
|
public class ReferenceTypeFieldModel extends FieldModel {
|
||||||
|
|
||||||
|
private ReferenceTypeModel referenceType;
|
||||||
|
|
||||||
|
public ReferenceTypeModel getReferenceType() {
|
||||||
|
return referenceType;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setReferenceType(ReferenceTypeModel referenceType) {
|
||||||
|
this.referenceType = referenceType;
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,74 @@
|
||||||
|
package eu.eudat.commonmodels.models.dmpblueprint;
|
||||||
|
|
||||||
|
import eu.eudat.commonmodels.models.descriptiotemplate.DescriptionTemplateModel;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.UUID;
|
||||||
|
|
||||||
|
public class SectionModel {
|
||||||
|
private UUID id;
|
||||||
|
private String description;
|
||||||
|
private String label;
|
||||||
|
|
||||||
|
private Integer ordinal;
|
||||||
|
private Boolean hasTemplates;
|
||||||
|
|
||||||
|
private List<FieldModel> fields;
|
||||||
|
private List<DescriptionTemplateModel> descriptionTemplates;
|
||||||
|
|
||||||
|
public UUID getId() {
|
||||||
|
return id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setId(UUID id) {
|
||||||
|
this.id = id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDescription() {
|
||||||
|
return description;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDescription(String description) {
|
||||||
|
this.description = description;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getLabel() {
|
||||||
|
return label;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLabel(String label) {
|
||||||
|
this.label = label;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getOrdinal() {
|
||||||
|
return ordinal;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setOrdinal(Integer ordinal) {
|
||||||
|
this.ordinal = ordinal;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Boolean getHasTemplates() {
|
||||||
|
return hasTemplates;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setHasTemplates(Boolean hasTemplates) {
|
||||||
|
this.hasTemplates = hasTemplates;
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<FieldModel> getFields() {
|
||||||
|
return fields;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setFields(List<FieldModel> fields) {
|
||||||
|
this.fields = fields;
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<DescriptionTemplateModel> getDescriptionTemplates() {
|
||||||
|
return descriptionTemplates;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDescriptionTemplates(List<DescriptionTemplateModel> descriptionTemplates) {
|
||||||
|
this.descriptionTemplates = descriptionTemplates;
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,16 @@
|
||||||
|
package eu.eudat.commonmodels.models.dmpblueprint;
|
||||||
|
|
||||||
|
import eu.eudat.commonmodels.enums.DmpBlueprintSystemFieldType;
|
||||||
|
|
||||||
|
public class SystemFieldModel extends FieldModel {
|
||||||
|
|
||||||
|
private DmpBlueprintSystemFieldType systemFieldType;
|
||||||
|
|
||||||
|
public DmpBlueprintSystemFieldType getSystemFieldType() {
|
||||||
|
return systemFieldType;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSystemFieldType(DmpBlueprintSystemFieldType systemFieldType) {
|
||||||
|
this.systemFieldType = systemFieldType;
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue