From 6853faf361bd0b8cb0988b9a77ac51ff7292d6b5 Mon Sep 17 00:00:00 2001 From: sgiannopoulos Date: Tue, 26 Mar 2024 13:33:24 +0200 Subject: [PATCH] add DescriptionTemplateType --- .../models/DescriptionTemplateTypeModel.java | 24 +++++++++++++++++++ .../DescriptionTemplateModel.java | 11 +++++++++ 2 files changed, 35 insertions(+) create mode 100644 src/main/java/eu/eudat/commonmodels/models/DescriptionTemplateTypeModel.java diff --git a/src/main/java/eu/eudat/commonmodels/models/DescriptionTemplateTypeModel.java b/src/main/java/eu/eudat/commonmodels/models/DescriptionTemplateTypeModel.java new file mode 100644 index 0000000..08f2a62 --- /dev/null +++ b/src/main/java/eu/eudat/commonmodels/models/DescriptionTemplateTypeModel.java @@ -0,0 +1,24 @@ +package eu.eudat.commonmodels.models; + +import java.util.UUID; + +public class DescriptionTemplateTypeModel { + private UUID id; + private String name; + + public UUID getId() { + return id; + } + + public void setId(UUID id) { + this.id = id; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } +} diff --git a/src/main/java/eu/eudat/commonmodels/models/descriptiotemplate/DescriptionTemplateModel.java b/src/main/java/eu/eudat/commonmodels/models/descriptiotemplate/DescriptionTemplateModel.java index c0aa67c..3e6ecc9 100644 --- a/src/main/java/eu/eudat/commonmodels/models/descriptiotemplate/DescriptionTemplateModel.java +++ b/src/main/java/eu/eudat/commonmodels/models/descriptiotemplate/DescriptionTemplateModel.java @@ -1,6 +1,8 @@ package eu.eudat.commonmodels.models.descriptiotemplate; +import eu.eudat.commonmodels.models.DescriptionTemplateTypeModel; + import java.util.UUID; public class DescriptionTemplateModel { @@ -10,6 +12,7 @@ public class DescriptionTemplateModel { private String label; private String description; + private DescriptionTemplateTypeModel type; private UUID groupId; @@ -74,6 +77,14 @@ public class DescriptionTemplateModel { public void setDefinition(DefinitionModel definition) { this.definition = definition; } + + public DescriptionTemplateTypeModel getType() { + return type; + } + + public void setType(DescriptionTemplateTypeModel type) { + this.type = type; + } }