From 2b074f268d1b733f17408c3bb1f6095b34d7ab00 Mon Sep 17 00:00:00 2001 From: sgiannopoulos Date: Mon, 30 Oct 2023 18:02:20 +0200 Subject: [PATCH] DescriptionTemplate refactor --- .../fielddata/RadioBoxDataEntity.java | 2 +- .../fielddata/UploadDataEntity.java | 6 +- .../eu/eudat/data/UserDatasetProfile.java | 80 +++++++++ .../persist/DescriptionTemplatePersist.java | 23 --- .../DescriptionTemplateService.java | 6 +- .../DescriptionTemplateServiceImpl.java | 170 ++++++++++++++++-- .../AutoCompleteFieldDataHelperService.java | 80 ++++++++- .../BaseFieldDataHelperService.java | 32 ++-- ...BooleanDecisionFieldDataHelperService.java | 24 ++- .../CheckBoxFieldDataHelperService.java | 23 ++- .../CurrencyFieldDataHelperService.java | 20 ++- .../DataRepositoryFieldDataHelperService.java | 25 ++- ...setAutoCompleteFieldDataHelperService.java | 24 ++- ...tasetIdentifierFieldDataHelperService.java | 22 ++- .../DatePickerFieldDataHelperService.java | 21 ++- ...DmpAutoCompleteFieldDataHelperService.java | 24 ++- ...ExternalDatasetFieldDataHelperService.java | 24 ++- .../FieldDataHelperService.java | 8 +- .../FreeTextFieldDataHelperService.java | 23 ++- ...urnalRepositoryFieldDataHelperService.java | 22 ++- .../LicenseFieldDataHelperService.java | 23 ++- .../OrganizationFieldDataHelperService.java | 23 ++- .../PublicationFieldDataHelperService.java | 23 ++- ...ationRepositoryFieldDataHelperService.java | 22 ++- .../RadioBoxFieldDataHelperService.java | 46 ++++- .../RegistryFieldDataHelperService.java | 23 ++- ...herAutoCompleteFieldDataHelperService.java | 23 ++- .../ResearcherFieldDataHelperService.java | 23 ++- ...ichTextAreaDataFieldDataHelperService.java | 23 ++- .../ServiceFieldDataHelperService.java | 23 ++- .../TagFieldDataHelperService.java | 23 ++- .../TaxonomyFieldDataHelperService.java | 23 ++- .../TextAreaFieldDataHelperService.java | 22 ++- .../UploadFieldDataHelperService.java | 43 ++++- .../ValidationFieldDataHelperService.java | 22 ++- .../WordListFieldDataHelperService.java | 50 +++++- .../v2/DescriptionTemplateController.java | 6 +- 37 files changed, 943 insertions(+), 157 deletions(-) create mode 100644 dmp-backend/core/src/main/java/eu/eudat/data/UserDatasetProfile.java diff --git a/dmp-backend/core/src/main/java/eu/eudat/commons/types/descriptiontemplate/fielddata/RadioBoxDataEntity.java b/dmp-backend/core/src/main/java/eu/eudat/commons/types/descriptiontemplate/fielddata/RadioBoxDataEntity.java index 28febe795..248b2988b 100644 --- a/dmp-backend/core/src/main/java/eu/eudat/commons/types/descriptiontemplate/fielddata/RadioBoxDataEntity.java +++ b/dmp-backend/core/src/main/java/eu/eudat/commons/types/descriptiontemplate/fielddata/RadioBoxDataEntity.java @@ -17,7 +17,7 @@ public class RadioBoxDataEntity extends BaseFieldDataEntity public FieldType getFieldType() { return FieldType.RADIO_BOX; } - public class Option implements XmlSerializable