From 3dcc415d5e1f1459ea322f09ed1ea2d550182a31 Mon Sep 17 00:00:00 2001 From: "CITE\\spapacharalampous" Date: Thu, 29 Aug 2024 11:40:21 +0300 Subject: [PATCH] added group id on public description template model --- .../org/opencdmp/model/PublicDescriptionTemplate.java | 7 +++++++ .../model/builder/PublicDescriptionTemplateBuilder.java | 9 +-------- .../description-copy-dialog.component.ts | 4 +--- 3 files changed, 9 insertions(+), 11 deletions(-) diff --git a/backend/core/src/main/java/org/opencdmp/model/PublicDescriptionTemplate.java b/backend/core/src/main/java/org/opencdmp/model/PublicDescriptionTemplate.java index 382f621ed..649e84b88 100644 --- a/backend/core/src/main/java/org/opencdmp/model/PublicDescriptionTemplate.java +++ b/backend/core/src/main/java/org/opencdmp/model/PublicDescriptionTemplate.java @@ -7,6 +7,9 @@ public class PublicDescriptionTemplate { public final static String _id = "id"; private UUID id; + public final static String _groupId = "groupId"; + private UUID groupId; + public final static String _label = "label"; private String label; @@ -21,6 +24,10 @@ public class PublicDescriptionTemplate { this.id = id; } + public UUID getGroupId() { return this.groupId; } + + public void setGroupId(UUID groupId) { this.groupId = groupId; } + public String getLabel() { return label; } diff --git a/backend/core/src/main/java/org/opencdmp/model/builder/PublicDescriptionTemplateBuilder.java b/backend/core/src/main/java/org/opencdmp/model/builder/PublicDescriptionTemplateBuilder.java index 3aeefc151..92f3b974b 100644 --- a/backend/core/src/main/java/org/opencdmp/model/builder/PublicDescriptionTemplateBuilder.java +++ b/backend/core/src/main/java/org/opencdmp/model/builder/PublicDescriptionTemplateBuilder.java @@ -1,17 +1,10 @@ package org.opencdmp.model.builder; import org.opencdmp.authorization.AuthorizationFlags; -import org.opencdmp.commons.XmlHandlingService; -import org.opencdmp.commons.types.descriptiontemplate.DefinitionEntity; import org.opencdmp.convention.ConventionService; import org.opencdmp.data.DescriptionTemplateEntity; import org.opencdmp.model.PublicDescriptionTemplate; -import org.opencdmp.query.DescriptionTemplateTypeQuery; -import org.opencdmp.query.UserDescriptionTemplateQuery; -import gr.cite.tools.data.builder.BuilderFactory; -import gr.cite.tools.data.query.QueryFactory; import gr.cite.tools.exception.MyApplicationException; -import gr.cite.tools.fieldset.BaseFieldSet; import gr.cite.tools.fieldset.FieldSet; import gr.cite.tools.logging.DataLogEntry; import gr.cite.tools.logging.LoggerService; @@ -22,7 +15,6 @@ import org.springframework.context.annotation.Scope; import org.springframework.stereotype.Component; import java.util.*; -import java.util.stream.Collectors; @Component @Scope(value = ConfigurableBeanFactory.SCOPE_PROTOTYPE) @@ -50,6 +42,7 @@ public class PublicDescriptionTemplateBuilder extends BaseBuilder