diff --git a/dmp-backend/core/src/main/java/eu/eudat/commons/enums/EntityType.java b/dmp-backend/core/src/main/java/eu/eudat/commons/enums/EntityType.java new file mode 100644 index 000000000..c5c56dbbd --- /dev/null +++ b/dmp-backend/core/src/main/java/eu/eudat/commons/enums/EntityType.java @@ -0,0 +1,4 @@ +package eu.eudat.commons.enums; + +public enum EntityType { +} diff --git a/dmp-backend/core/src/main/java/eu/eudat/commons/enums/IsActive.java b/dmp-backend/core/src/main/java/eu/eudat/commons/enums/IsActive.java index 4c94619c5..4bb2737af 100644 --- a/dmp-backend/core/src/main/java/eu/eudat/commons/enums/IsActive.java +++ b/dmp-backend/core/src/main/java/eu/eudat/commons/enums/IsActive.java @@ -6,8 +6,8 @@ import java.util.Map; public enum IsActive implements DatabaseEnum { - Inactive((short)0), - Active( (short)1); + Inactive((short) 0), + Active((short) 1); private final Short value; @@ -20,7 +20,7 @@ public enum IsActive implements DatabaseEnum { } private static final Map map = EnumUtils.getEnumValueMap(IsActive.class); - + public static IsActive of(Short i) { return map.get(i); } diff --git a/dmp-backend/core/src/main/java/eu/eudat/commons/enums/old/notification/ActiveStatus.java b/dmp-backend/core/src/main/java/eu/eudat/commons/enums/old/notification/ActiveStatus.java new file mode 100644 index 000000000..918b7b193 --- /dev/null +++ b/dmp-backend/core/src/main/java/eu/eudat/commons/enums/old/notification/ActiveStatus.java @@ -0,0 +1,27 @@ +package eu.eudat.commons.enums.old.notification; + +public enum ActiveStatus { + ACTIVE(0), + INACTIVE(1); + + private int status; + + ActiveStatus(int status) { + this.status = status; + } + + public int getStatus() { + return status; + } + + public ActiveStatus fromInteger(int status) { + switch (status) { + case 0: + return ACTIVE; + case 1: + return INACTIVE; + default: + throw new RuntimeException("Unsupported Active Status"); + } + } +} diff --git a/dmp-backend/data/src/main/java/eu/eudat/data/enumeration/notification/ContactType.java b/dmp-backend/core/src/main/java/eu/eudat/commons/enums/old/notification/ContactType.java similarity index 86% rename from dmp-backend/data/src/main/java/eu/eudat/data/enumeration/notification/ContactType.java rename to dmp-backend/core/src/main/java/eu/eudat/commons/enums/old/notification/ContactType.java index 3bbbceec9..fc1db82b3 100644 --- a/dmp-backend/data/src/main/java/eu/eudat/data/enumeration/notification/ContactType.java +++ b/dmp-backend/core/src/main/java/eu/eudat/commons/enums/old/notification/ContactType.java @@ -1,4 +1,4 @@ -package eu.eudat.data.enumeration.notification; +package eu.eudat.commons.enums.old.notification; public enum ContactType { EMAIL(0); diff --git a/dmp-backend/data/src/main/java/eu/eudat/data/enumeration/notification/NotificationType.java b/dmp-backend/core/src/main/java/eu/eudat/commons/enums/old/notification/NotificationType.java similarity index 93% rename from dmp-backend/data/src/main/java/eu/eudat/data/enumeration/notification/NotificationType.java rename to dmp-backend/core/src/main/java/eu/eudat/commons/enums/old/notification/NotificationType.java index 5f5ece40d..a87cd100c 100644 --- a/dmp-backend/data/src/main/java/eu/eudat/data/enumeration/notification/NotificationType.java +++ b/dmp-backend/core/src/main/java/eu/eudat/commons/enums/old/notification/NotificationType.java @@ -1,4 +1,4 @@ -package eu.eudat.data.enumeration.notification; +package eu.eudat.commons.enums.old.notification; public enum NotificationType { DMP_MODIFIED(0), diff --git a/dmp-backend/data/src/main/java/eu/eudat/data/enumeration/notification/NotifyState.java b/dmp-backend/core/src/main/java/eu/eudat/commons/enums/old/notification/NotifyState.java similarity index 91% rename from dmp-backend/data/src/main/java/eu/eudat/data/enumeration/notification/NotifyState.java rename to dmp-backend/core/src/main/java/eu/eudat/commons/enums/old/notification/NotifyState.java index b7e75317f..c9f320e66 100644 --- a/dmp-backend/data/src/main/java/eu/eudat/data/enumeration/notification/NotifyState.java +++ b/dmp-backend/core/src/main/java/eu/eudat/commons/enums/old/notification/NotifyState.java @@ -1,4 +1,4 @@ -package eu.eudat.data.enumeration.notification; +package eu.eudat.commons.enums.old.notification; public enum NotifyState { PENDING(0), diff --git a/dmp-backend/data/src/main/java/eu/eudat/data/entities/Content.java b/dmp-backend/core/src/main/java/eu/eudat/data/old/Content.java similarity index 97% rename from dmp-backend/data/src/main/java/eu/eudat/data/entities/Content.java rename to dmp-backend/core/src/main/java/eu/eudat/data/old/Content.java index 973ccbc80..8e31ae9b7 100644 --- a/dmp-backend/data/src/main/java/eu/eudat/data/entities/Content.java +++ b/dmp-backend/core/src/main/java/eu/eudat/data/old/Content.java @@ -1,6 +1,6 @@ -package eu.eudat.data.entities; +package eu.eudat.data.old; -import eu.eudat.data.entities.helpers.EntityBinder; +import eu.eudat.data.old.helpers.EntityBinder; import eu.eudat.queryable.queryableentity.DataEntity; import org.hibernate.annotations.GenericGenerator; diff --git a/dmp-backend/data/src/main/java/eu/eudat/data/entities/DMP.java b/dmp-backend/core/src/main/java/eu/eudat/data/old/DMP.java similarity index 99% rename from dmp-backend/data/src/main/java/eu/eudat/data/entities/DMP.java rename to dmp-backend/core/src/main/java/eu/eudat/data/old/DMP.java index e982d74ec..1fb54000a 100644 --- a/dmp-backend/data/src/main/java/eu/eudat/data/entities/DMP.java +++ b/dmp-backend/core/src/main/java/eu/eudat/data/old/DMP.java @@ -1,4 +1,4 @@ -package eu.eudat.data.entities; +package eu.eudat.data.old; import eu.eudat.data.converters.DateToUTCConverter; diff --git a/dmp-backend/data/src/main/java/eu/eudat/data/entities/DMPDatasetProfile.java b/dmp-backend/core/src/main/java/eu/eudat/data/old/DMPDatasetProfile.java similarity index 98% rename from dmp-backend/data/src/main/java/eu/eudat/data/entities/DMPDatasetProfile.java rename to dmp-backend/core/src/main/java/eu/eudat/data/old/DMPDatasetProfile.java index 358a886f4..85a799c56 100644 --- a/dmp-backend/data/src/main/java/eu/eudat/data/entities/DMPDatasetProfile.java +++ b/dmp-backend/core/src/main/java/eu/eudat/data/old/DMPDatasetProfile.java @@ -1,4 +1,4 @@ -package eu.eudat.data.entities; +package eu.eudat.data.old; import eu.eudat.queryable.queryableentity.DataEntity; import org.hibernate.annotations.GenericGenerator; diff --git a/dmp-backend/data/src/main/java/eu/eudat/data/entities/DMPOrganisation.java b/dmp-backend/core/src/main/java/eu/eudat/data/old/DMPOrganisation.java similarity index 97% rename from dmp-backend/data/src/main/java/eu/eudat/data/entities/DMPOrganisation.java rename to dmp-backend/core/src/main/java/eu/eudat/data/old/DMPOrganisation.java index 6cbd8d1a1..e3b9b40c7 100644 --- a/dmp-backend/data/src/main/java/eu/eudat/data/entities/DMPOrganisation.java +++ b/dmp-backend/core/src/main/java/eu/eudat/data/old/DMPOrganisation.java @@ -1,4 +1,4 @@ -package eu.eudat.data.entities; +package eu.eudat.data.old; import org.hibernate.annotations.GenericGenerator; diff --git a/dmp-backend/data/src/main/java/eu/eudat/data/entities/DMPProfile.java b/dmp-backend/core/src/main/java/eu/eudat/data/old/DMPProfile.java similarity index 97% rename from dmp-backend/data/src/main/java/eu/eudat/data/entities/DMPProfile.java rename to dmp-backend/core/src/main/java/eu/eudat/data/old/DMPProfile.java index 85261b21a..78c30cc04 100644 --- a/dmp-backend/data/src/main/java/eu/eudat/data/entities/DMPProfile.java +++ b/dmp-backend/core/src/main/java/eu/eudat/data/old/DMPProfile.java @@ -1,8 +1,8 @@ -package eu.eudat.data.entities; +package eu.eudat.data.old; import eu.eudat.data.converters.DateToUTCConverter; -import eu.eudat.data.entities.helpers.EntityBinder; +import eu.eudat.data.old.helpers.EntityBinder; import eu.eudat.queryable.queryableentity.DataEntity; import org.hibernate.annotations.GenericGenerator; import org.hibernate.annotations.Type; diff --git a/dmp-backend/data/src/main/java/eu/eudat/data/entities/DMPResearcher.java b/dmp-backend/core/src/main/java/eu/eudat/data/old/DMPResearcher.java similarity index 97% rename from dmp-backend/data/src/main/java/eu/eudat/data/entities/DMPResearcher.java rename to dmp-backend/core/src/main/java/eu/eudat/data/old/DMPResearcher.java index eb1f08108..9f419d6c7 100644 --- a/dmp-backend/data/src/main/java/eu/eudat/data/entities/DMPResearcher.java +++ b/dmp-backend/core/src/main/java/eu/eudat/data/old/DMPResearcher.java @@ -1,4 +1,4 @@ -package eu.eudat.data.entities; +package eu.eudat.data.old; import org.hibernate.annotations.GenericGenerator; diff --git a/dmp-backend/data/src/main/java/eu/eudat/data/entities/DataRepository.java b/dmp-backend/core/src/main/java/eu/eudat/data/old/DataRepository.java similarity index 97% rename from dmp-backend/data/src/main/java/eu/eudat/data/entities/DataRepository.java rename to dmp-backend/core/src/main/java/eu/eudat/data/old/DataRepository.java index 7f13aa58a..cede009d5 100644 --- a/dmp-backend/data/src/main/java/eu/eudat/data/entities/DataRepository.java +++ b/dmp-backend/core/src/main/java/eu/eudat/data/old/DataRepository.java @@ -1,7 +1,7 @@ -package eu.eudat.data.entities; +package eu.eudat.data.old; -import eu.eudat.data.entities.helpers.EntityBinder; +import eu.eudat.data.old.helpers.EntityBinder; import eu.eudat.queryable.queryableentity.DataEntity; import org.hibernate.annotations.Type; diff --git a/dmp-backend/data/src/main/java/eu/eudat/data/entities/Dataset.java b/dmp-backend/core/src/main/java/eu/eudat/data/old/Dataset.java similarity index 99% rename from dmp-backend/data/src/main/java/eu/eudat/data/entities/Dataset.java rename to dmp-backend/core/src/main/java/eu/eudat/data/old/Dataset.java index 2291f5934..64f2db9df 100644 --- a/dmp-backend/data/src/main/java/eu/eudat/data/entities/Dataset.java +++ b/dmp-backend/core/src/main/java/eu/eudat/data/old/Dataset.java @@ -1,8 +1,8 @@ -package eu.eudat.data.entities; +package eu.eudat.data.old; import eu.eudat.data.converters.DateToUTCConverter; -import eu.eudat.data.entities.helpers.EntityBinder; +import eu.eudat.data.old.helpers.EntityBinder; import eu.eudat.queryable.queryableentity.DataEntity; import org.hibernate.annotations.GenericGenerator; import org.hibernate.annotations.Type; diff --git a/dmp-backend/data/src/main/java/eu/eudat/data/entities/DatasetDataRepository.java b/dmp-backend/core/src/main/java/eu/eudat/data/old/DatasetDataRepository.java similarity index 96% rename from dmp-backend/data/src/main/java/eu/eudat/data/entities/DatasetDataRepository.java rename to dmp-backend/core/src/main/java/eu/eudat/data/old/DatasetDataRepository.java index 4142e4c02..f74f462dc 100644 --- a/dmp-backend/data/src/main/java/eu/eudat/data/entities/DatasetDataRepository.java +++ b/dmp-backend/core/src/main/java/eu/eudat/data/old/DatasetDataRepository.java @@ -1,6 +1,6 @@ -package eu.eudat.data.entities; +package eu.eudat.data.old; -import eu.eudat.data.entities.helpers.EntityBinder; +import eu.eudat.data.old.helpers.EntityBinder; import eu.eudat.queryable.queryableentity.DataEntity; import org.hibernate.annotations.GenericGenerator; diff --git a/dmp-backend/data/src/main/java/eu/eudat/data/entities/DatasetExternalDataset.java b/dmp-backend/core/src/main/java/eu/eudat/data/old/DatasetExternalDataset.java similarity index 95% rename from dmp-backend/data/src/main/java/eu/eudat/data/entities/DatasetExternalDataset.java rename to dmp-backend/core/src/main/java/eu/eudat/data/old/DatasetExternalDataset.java index dbabee5ec..c27a23091 100644 --- a/dmp-backend/data/src/main/java/eu/eudat/data/entities/DatasetExternalDataset.java +++ b/dmp-backend/core/src/main/java/eu/eudat/data/old/DatasetExternalDataset.java @@ -1,6 +1,6 @@ -package eu.eudat.data.entities; +package eu.eudat.data.old; -import eu.eudat.data.entities.helpers.EntityBinder; +import eu.eudat.data.old.helpers.EntityBinder; import eu.eudat.queryable.queryableentity.DataEntity; import org.hibernate.annotations.GenericGenerator; diff --git a/dmp-backend/data/src/main/java/eu/eudat/data/entities/DatasetProfileRuleset.java b/dmp-backend/core/src/main/java/eu/eudat/data/old/DatasetProfileRuleset.java similarity index 97% rename from dmp-backend/data/src/main/java/eu/eudat/data/entities/DatasetProfileRuleset.java rename to dmp-backend/core/src/main/java/eu/eudat/data/old/DatasetProfileRuleset.java index a97ba3a34..e8ca1303d 100644 --- a/dmp-backend/data/src/main/java/eu/eudat/data/entities/DatasetProfileRuleset.java +++ b/dmp-backend/core/src/main/java/eu/eudat/data/old/DatasetProfileRuleset.java @@ -1,4 +1,4 @@ -package eu.eudat.data.entities; +package eu.eudat.data.old; import org.hibernate.annotations.GenericGenerator; diff --git a/dmp-backend/data/src/main/java/eu/eudat/data/entities/DatasetProfileViewstyle.java b/dmp-backend/core/src/main/java/eu/eudat/data/old/DatasetProfileViewstyle.java similarity index 97% rename from dmp-backend/data/src/main/java/eu/eudat/data/entities/DatasetProfileViewstyle.java rename to dmp-backend/core/src/main/java/eu/eudat/data/old/DatasetProfileViewstyle.java index 1ffcfd7f2..09df97405 100644 --- a/dmp-backend/data/src/main/java/eu/eudat/data/entities/DatasetProfileViewstyle.java +++ b/dmp-backend/core/src/main/java/eu/eudat/data/old/DatasetProfileViewstyle.java @@ -1,4 +1,4 @@ -package eu.eudat.data.entities; +package eu.eudat.data.old; import org.hibernate.annotations.GenericGenerator; diff --git a/dmp-backend/data/src/main/java/eu/eudat/data/entities/DatasetRegistry.java b/dmp-backend/core/src/main/java/eu/eudat/data/old/DatasetRegistry.java similarity index 97% rename from dmp-backend/data/src/main/java/eu/eudat/data/entities/DatasetRegistry.java rename to dmp-backend/core/src/main/java/eu/eudat/data/old/DatasetRegistry.java index 1523db218..14c87e58c 100644 --- a/dmp-backend/data/src/main/java/eu/eudat/data/entities/DatasetRegistry.java +++ b/dmp-backend/core/src/main/java/eu/eudat/data/old/DatasetRegistry.java @@ -1,4 +1,4 @@ -package eu.eudat.data.entities; +package eu.eudat.data.old; import org.hibernate.annotations.GenericGenerator; diff --git a/dmp-backend/data/src/main/java/eu/eudat/data/entities/DatasetService.java b/dmp-backend/core/src/main/java/eu/eudat/data/old/DatasetService.java similarity index 98% rename from dmp-backend/data/src/main/java/eu/eudat/data/entities/DatasetService.java rename to dmp-backend/core/src/main/java/eu/eudat/data/old/DatasetService.java index c9c52999d..8b452e707 100644 --- a/dmp-backend/data/src/main/java/eu/eudat/data/entities/DatasetService.java +++ b/dmp-backend/core/src/main/java/eu/eudat/data/old/DatasetService.java @@ -1,4 +1,4 @@ -package eu.eudat.data.entities; +package eu.eudat.data.old; import eu.eudat.queryable.queryableentity.DataEntity; diff --git a/dmp-backend/data/src/main/java/eu/eudat/data/entities/DescriptionTemplate.java b/dmp-backend/core/src/main/java/eu/eudat/data/old/DescriptionTemplate.java similarity index 99% rename from dmp-backend/data/src/main/java/eu/eudat/data/entities/DescriptionTemplate.java rename to dmp-backend/core/src/main/java/eu/eudat/data/old/DescriptionTemplate.java index d08729b6c..275f9b827 100644 --- a/dmp-backend/data/src/main/java/eu/eudat/data/entities/DescriptionTemplate.java +++ b/dmp-backend/core/src/main/java/eu/eudat/data/old/DescriptionTemplate.java @@ -1,4 +1,4 @@ -package eu.eudat.data.entities; +package eu.eudat.data.old; import eu.eudat.data.DescriptionTemplateTypeEntity; diff --git a/dmp-backend/data/src/main/java/eu/eudat/data/entities/EmailConfirmation.java b/dmp-backend/core/src/main/java/eu/eudat/data/old/EmailConfirmation.java similarity index 98% rename from dmp-backend/data/src/main/java/eu/eudat/data/entities/EmailConfirmation.java rename to dmp-backend/core/src/main/java/eu/eudat/data/old/EmailConfirmation.java index 2f891c627..c1560c307 100644 --- a/dmp-backend/data/src/main/java/eu/eudat/data/entities/EmailConfirmation.java +++ b/dmp-backend/core/src/main/java/eu/eudat/data/old/EmailConfirmation.java @@ -1,4 +1,4 @@ -package eu.eudat.data.entities; +package eu.eudat.data.old; import eu.eudat.data.converters.DateToUTCConverter; import eu.eudat.queryable.queryableentity.DataEntity; diff --git a/dmp-backend/data/src/main/java/eu/eudat/data/entities/EntityDoi.java b/dmp-backend/core/src/main/java/eu/eudat/data/old/EntityDoi.java similarity index 96% rename from dmp-backend/data/src/main/java/eu/eudat/data/entities/EntityDoi.java rename to dmp-backend/core/src/main/java/eu/eudat/data/old/EntityDoi.java index c153a7502..f0df55771 100644 --- a/dmp-backend/data/src/main/java/eu/eudat/data/entities/EntityDoi.java +++ b/dmp-backend/core/src/main/java/eu/eudat/data/old/EntityDoi.java @@ -1,9 +1,8 @@ -package eu.eudat.data.entities; +package eu.eudat.data.old; import eu.eudat.data.converters.DateToUTCConverter; -import eu.eudat.data.entities.helpers.EntityBinder; +import eu.eudat.data.old.helpers.EntityBinder; import eu.eudat.queryable.queryableentity.DataEntity; -import org.hibernate.annotations.Type; import jakarta.persistence.*; import java.util.Arrays; diff --git a/dmp-backend/data/src/main/java/eu/eudat/data/entities/ExternalDataset.java b/dmp-backend/core/src/main/java/eu/eudat/data/old/ExternalDataset.java similarity index 95% rename from dmp-backend/data/src/main/java/eu/eudat/data/entities/ExternalDataset.java rename to dmp-backend/core/src/main/java/eu/eudat/data/old/ExternalDataset.java index 42a322fa2..e7b276bfe 100644 --- a/dmp-backend/data/src/main/java/eu/eudat/data/entities/ExternalDataset.java +++ b/dmp-backend/core/src/main/java/eu/eudat/data/old/ExternalDataset.java @@ -1,9 +1,8 @@ -package eu.eudat.data.entities; +package eu.eudat.data.old; import eu.eudat.data.converters.DateToUTCConverter; -import eu.eudat.data.entities.helpers.EntityBinder; +import eu.eudat.data.old.helpers.EntityBinder; import eu.eudat.queryable.queryableentity.DataEntity; -import org.hibernate.annotations.GenericGenerator; import jakarta.persistence.*; import java.util.Date; diff --git a/dmp-backend/data/src/main/java/eu/eudat/data/entities/FileUpload.java b/dmp-backend/core/src/main/java/eu/eudat/data/old/FileUpload.java similarity index 96% rename from dmp-backend/data/src/main/java/eu/eudat/data/entities/FileUpload.java rename to dmp-backend/core/src/main/java/eu/eudat/data/old/FileUpload.java index 81204dfe4..275421361 100644 --- a/dmp-backend/data/src/main/java/eu/eudat/data/entities/FileUpload.java +++ b/dmp-backend/core/src/main/java/eu/eudat/data/old/FileUpload.java @@ -1,9 +1,8 @@ -package eu.eudat.data.entities; +package eu.eudat.data.old; import eu.eudat.data.converters.DateToUTCConverter; -import eu.eudat.data.entities.helpers.EntityBinder; +import eu.eudat.data.old.helpers.EntityBinder; import eu.eudat.queryable.queryableentity.DataEntity; -import org.hibernate.annotations.Type; import jakarta.persistence.*; import java.util.Date; diff --git a/dmp-backend/data/src/main/java/eu/eudat/data/entities/Funder.java b/dmp-backend/core/src/main/java/eu/eudat/data/old/Funder.java similarity index 97% rename from dmp-backend/data/src/main/java/eu/eudat/data/entities/Funder.java rename to dmp-backend/core/src/main/java/eu/eudat/data/old/Funder.java index 8ccfa3b9a..4e4e0810e 100644 --- a/dmp-backend/data/src/main/java/eu/eudat/data/entities/Funder.java +++ b/dmp-backend/core/src/main/java/eu/eudat/data/old/Funder.java @@ -1,7 +1,6 @@ -package eu.eudat.data.entities; +package eu.eudat.data.old; import eu.eudat.queryable.queryableentity.DataEntity; -import org.hibernate.annotations.GenericGenerator; import org.hibernate.annotations.Type; import jakarta.persistence.*; diff --git a/dmp-backend/data/src/main/java/eu/eudat/data/entities/Grant.java b/dmp-backend/core/src/main/java/eu/eudat/data/old/Grant.java similarity index 98% rename from dmp-backend/data/src/main/java/eu/eudat/data/entities/Grant.java rename to dmp-backend/core/src/main/java/eu/eudat/data/old/Grant.java index 705748a21..e8996e02b 100644 --- a/dmp-backend/data/src/main/java/eu/eudat/data/entities/Grant.java +++ b/dmp-backend/core/src/main/java/eu/eudat/data/old/Grant.java @@ -1,10 +1,9 @@ -package eu.eudat.data.entities; +package eu.eudat.data.old; import eu.eudat.data.converters.DateToUTCConverter; -import eu.eudat.data.entities.helpers.EntityBinder; +import eu.eudat.data.old.helpers.EntityBinder; import eu.eudat.queryable.queryableentity.DataEntity; -import org.hibernate.annotations.GenericGenerator; import org.hibernate.annotations.Type; import jakarta.persistence.*; diff --git a/dmp-backend/data/src/main/java/eu/eudat/data/entities/Invitation.java b/dmp-backend/core/src/main/java/eu/eudat/data/old/Invitation.java similarity index 96% rename from dmp-backend/data/src/main/java/eu/eudat/data/entities/Invitation.java rename to dmp-backend/core/src/main/java/eu/eudat/data/old/Invitation.java index 015b50f62..b8da71354 100644 --- a/dmp-backend/data/src/main/java/eu/eudat/data/entities/Invitation.java +++ b/dmp-backend/core/src/main/java/eu/eudat/data/old/Invitation.java @@ -1,6 +1,6 @@ -package eu.eudat.data.entities; +package eu.eudat.data.old; -import eu.eudat.data.entities.helpers.EntityBinder; +import eu.eudat.data.old.helpers.EntityBinder; import eu.eudat.queryable.queryableentity.DataEntity; import org.hibernate.annotations.GenericGenerator; import org.hibernate.annotations.Type; diff --git a/dmp-backend/data/src/main/java/eu/eudat/data/entities/Lock.java b/dmp-backend/core/src/main/java/eu/eudat/data/old/Lock.java similarity index 95% rename from dmp-backend/data/src/main/java/eu/eudat/data/entities/Lock.java rename to dmp-backend/core/src/main/java/eu/eudat/data/old/Lock.java index de4232f76..4f50dd645 100644 --- a/dmp-backend/data/src/main/java/eu/eudat/data/entities/Lock.java +++ b/dmp-backend/core/src/main/java/eu/eudat/data/old/Lock.java @@ -1,7 +1,7 @@ -package eu.eudat.data.entities; +package eu.eudat.data.old; import eu.eudat.data.converters.DateToUTCConverter; -import eu.eudat.data.entities.helpers.EntityBinder; +import eu.eudat.data.old.helpers.EntityBinder; import eu.eudat.queryable.queryableentity.DataEntity; import org.hibernate.annotations.GenericGenerator; diff --git a/dmp-backend/data/src/main/java/eu/eudat/data/entities/Notification.java b/dmp-backend/core/src/main/java/eu/eudat/data/old/Notification.java similarity index 92% rename from dmp-backend/data/src/main/java/eu/eudat/data/entities/Notification.java rename to dmp-backend/core/src/main/java/eu/eudat/data/old/Notification.java index 65647f617..143237d15 100644 --- a/dmp-backend/data/src/main/java/eu/eudat/data/entities/Notification.java +++ b/dmp-backend/core/src/main/java/eu/eudat/data/old/Notification.java @@ -1,9 +1,9 @@ -package eu.eudat.data.entities; +package eu.eudat.data.old; -import eu.eudat.data.enumeration.notification.ActiveStatus; -import eu.eudat.data.enumeration.notification.ContactType; -import eu.eudat.data.enumeration.notification.NotificationType; -import eu.eudat.data.enumeration.notification.NotifyState; +import eu.eudat.commons.enums.old.notification.ActiveStatus; +import eu.eudat.commons.enums.old.notification.ContactType; +import eu.eudat.commons.enums.old.notification.NotificationType; +import eu.eudat.commons.enums.old.notification.NotifyState; import eu.eudat.queryable.queryableentity.DataEntity; import org.hibernate.annotations.GenericGenerator; diff --git a/dmp-backend/data/src/main/java/eu/eudat/data/entities/Organisation.java b/dmp-backend/core/src/main/java/eu/eudat/data/old/Organisation.java similarity index 97% rename from dmp-backend/data/src/main/java/eu/eudat/data/entities/Organisation.java rename to dmp-backend/core/src/main/java/eu/eudat/data/old/Organisation.java index 0fa52bbac..6cfded45d 100644 --- a/dmp-backend/data/src/main/java/eu/eudat/data/entities/Organisation.java +++ b/dmp-backend/core/src/main/java/eu/eudat/data/old/Organisation.java @@ -1,7 +1,7 @@ -package eu.eudat.data.entities; +package eu.eudat.data.old; import eu.eudat.data.converters.DateToUTCConverter; -import eu.eudat.data.entities.helpers.EntityBinder; +import eu.eudat.data.old.helpers.EntityBinder; import eu.eudat.queryable.queryableentity.DataEntity; import org.hibernate.annotations.GenericGenerator; import org.hibernate.annotations.Type; diff --git a/dmp-backend/data/src/main/java/eu/eudat/data/entities/Project.java b/dmp-backend/core/src/main/java/eu/eudat/data/old/Project.java similarity index 98% rename from dmp-backend/data/src/main/java/eu/eudat/data/entities/Project.java rename to dmp-backend/core/src/main/java/eu/eudat/data/old/Project.java index 6a815172f..bccc1ef58 100644 --- a/dmp-backend/data/src/main/java/eu/eudat/data/entities/Project.java +++ b/dmp-backend/core/src/main/java/eu/eudat/data/old/Project.java @@ -1,9 +1,8 @@ -package eu.eudat.data.entities; +package eu.eudat.data.old; import eu.eudat.data.converters.DateToUTCConverter; -import eu.eudat.data.entities.helpers.EntityBinder; +import eu.eudat.data.old.helpers.EntityBinder; import eu.eudat.queryable.queryableentity.DataEntity; -import org.hibernate.annotations.GenericGenerator; import org.hibernate.annotations.Type; import jakarta.persistence.*; diff --git a/dmp-backend/data/src/main/java/eu/eudat/data/entities/Registry.java b/dmp-backend/core/src/main/java/eu/eudat/data/old/Registry.java similarity index 97% rename from dmp-backend/data/src/main/java/eu/eudat/data/entities/Registry.java rename to dmp-backend/core/src/main/java/eu/eudat/data/old/Registry.java index b61201bc8..e70916dd1 100644 --- a/dmp-backend/data/src/main/java/eu/eudat/data/entities/Registry.java +++ b/dmp-backend/core/src/main/java/eu/eudat/data/old/Registry.java @@ -1,8 +1,8 @@ -package eu.eudat.data.entities; +package eu.eudat.data.old; import eu.eudat.data.converters.DateToUTCConverter; -import eu.eudat.data.entities.helpers.EntityBinder; +import eu.eudat.data.old.helpers.EntityBinder; import eu.eudat.queryable.queryableentity.DataEntity; import org.hibernate.annotations.Type; diff --git a/dmp-backend/data/src/main/java/eu/eudat/data/entities/Researcher.java b/dmp-backend/core/src/main/java/eu/eudat/data/old/Researcher.java similarity index 96% rename from dmp-backend/data/src/main/java/eu/eudat/data/entities/Researcher.java rename to dmp-backend/core/src/main/java/eu/eudat/data/old/Researcher.java index f28f26394..a11bb1520 100644 --- a/dmp-backend/data/src/main/java/eu/eudat/data/entities/Researcher.java +++ b/dmp-backend/core/src/main/java/eu/eudat/data/old/Researcher.java @@ -1,10 +1,9 @@ -package eu.eudat.data.entities; +package eu.eudat.data.old; import eu.eudat.data.converters.DateToUTCConverter; -import eu.eudat.data.entities.helpers.EntityBinder; +import eu.eudat.data.old.helpers.EntityBinder; import eu.eudat.queryable.queryableentity.DataEntity; -import org.hibernate.annotations.GenericGenerator; import org.hibernate.annotations.Type; import jakarta.persistence.*; diff --git a/dmp-backend/data/src/main/java/eu/eudat/data/entities/Service.java b/dmp-backend/core/src/main/java/eu/eudat/data/old/Service.java similarity index 99% rename from dmp-backend/data/src/main/java/eu/eudat/data/entities/Service.java rename to dmp-backend/core/src/main/java/eu/eudat/data/old/Service.java index 9f7b87144..324b0829a 100644 --- a/dmp-backend/data/src/main/java/eu/eudat/data/entities/Service.java +++ b/dmp-backend/core/src/main/java/eu/eudat/data/old/Service.java @@ -1,4 +1,4 @@ -package eu.eudat.data.entities; +package eu.eudat.data.old; import eu.eudat.data.converters.DateToUTCConverter; diff --git a/dmp-backend/data/src/main/java/eu/eudat/data/entities/UserDMP.java b/dmp-backend/core/src/main/java/eu/eudat/data/old/UserDMP.java similarity index 96% rename from dmp-backend/data/src/main/java/eu/eudat/data/entities/UserDMP.java rename to dmp-backend/core/src/main/java/eu/eudat/data/old/UserDMP.java index 060c83ad1..a42e2e862 100644 --- a/dmp-backend/data/src/main/java/eu/eudat/data/entities/UserDMP.java +++ b/dmp-backend/core/src/main/java/eu/eudat/data/old/UserDMP.java @@ -1,6 +1,6 @@ -package eu.eudat.data.entities; +package eu.eudat.data.old; -import eu.eudat.data.entities.helpers.EntityBinder; +import eu.eudat.data.old.helpers.EntityBinder; import eu.eudat.queryable.queryableentity.DataEntity; import org.hibernate.annotations.GenericGenerator; diff --git a/dmp-backend/data/src/main/java/eu/eudat/data/entities/UserDatasetProfile.java b/dmp-backend/core/src/main/java/eu/eudat/data/old/UserDatasetProfile.java similarity index 95% rename from dmp-backend/data/src/main/java/eu/eudat/data/entities/UserDatasetProfile.java rename to dmp-backend/core/src/main/java/eu/eudat/data/old/UserDatasetProfile.java index 9369f0569..1ca55a3a4 100644 --- a/dmp-backend/data/src/main/java/eu/eudat/data/entities/UserDatasetProfile.java +++ b/dmp-backend/core/src/main/java/eu/eudat/data/old/UserDatasetProfile.java @@ -1,6 +1,6 @@ -package eu.eudat.data.entities; +package eu.eudat.data.old; -import eu.eudat.data.entities.helpers.EntityBinder; +import eu.eudat.data.old.helpers.EntityBinder; import eu.eudat.queryable.queryableentity.DataEntity; import org.hibernate.annotations.GenericGenerator; diff --git a/dmp-backend/data/src/main/java/eu/eudat/data/entities/UserInfo.java b/dmp-backend/core/src/main/java/eu/eudat/data/old/UserInfo.java similarity index 98% rename from dmp-backend/data/src/main/java/eu/eudat/data/entities/UserInfo.java rename to dmp-backend/core/src/main/java/eu/eudat/data/old/UserInfo.java index 96b52887a..cb2e04992 100644 --- a/dmp-backend/data/src/main/java/eu/eudat/data/entities/UserInfo.java +++ b/dmp-backend/core/src/main/java/eu/eudat/data/old/UserInfo.java @@ -1,8 +1,8 @@ -package eu.eudat.data.entities; +package eu.eudat.data.old; import eu.eudat.data.CredentialEntity; import eu.eudat.data.converters.DateToUTCConverter; -import eu.eudat.data.entities.helpers.EntityBinder; +import eu.eudat.data.old.helpers.EntityBinder; import eu.eudat.queryable.queryableentity.DataEntity; import org.hibernate.annotations.GenericGenerator; import org.hibernate.annotations.Type; diff --git a/dmp-backend/data/src/main/java/eu/eudat/data/entities/UserRole.java b/dmp-backend/core/src/main/java/eu/eudat/data/old/UserRole.java similarity index 94% rename from dmp-backend/data/src/main/java/eu/eudat/data/entities/UserRole.java rename to dmp-backend/core/src/main/java/eu/eudat/data/old/UserRole.java index 1d00d08c4..0c3c8c385 100644 --- a/dmp-backend/data/src/main/java/eu/eudat/data/entities/UserRole.java +++ b/dmp-backend/core/src/main/java/eu/eudat/data/old/UserRole.java @@ -1,6 +1,6 @@ -package eu.eudat.data.entities; +package eu.eudat.data.old; -import eu.eudat.data.entities.helpers.EntityBinder; +import eu.eudat.data.old.helpers.EntityBinder; import eu.eudat.queryable.queryableentity.DataEntity; import org.hibernate.annotations.GenericGenerator; diff --git a/dmp-backend/data/src/main/java/eu/eudat/data/entities/helpers/EntityBinder.java b/dmp-backend/core/src/main/java/eu/eudat/data/old/helpers/EntityBinder.java similarity index 87% rename from dmp-backend/data/src/main/java/eu/eudat/data/entities/helpers/EntityBinder.java rename to dmp-backend/core/src/main/java/eu/eudat/data/old/helpers/EntityBinder.java index c640e6d42..6a8148380 100644 --- a/dmp-backend/data/src/main/java/eu/eudat/data/entities/helpers/EntityBinder.java +++ b/dmp-backend/core/src/main/java/eu/eudat/data/old/helpers/EntityBinder.java @@ -1,4 +1,4 @@ -package eu.eudat.data.entities.helpers; +package eu.eudat.data.old.helpers; import jakarta.persistence.Tuple; import java.util.List; diff --git a/dmp-backend/data/src/main/java/eu/eudat/data/converters/DateToUTCConverter.java b/dmp-backend/data/src/main/java/eu/eudat/data/converters/DateToUTCConverter.java deleted file mode 100644 index 3a9207eb2..000000000 --- a/dmp-backend/data/src/main/java/eu/eudat/data/converters/DateToUTCConverter.java +++ /dev/null @@ -1,49 +0,0 @@ -package eu.eudat.data.converters; - -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; -import org.springframework.format.datetime.DateFormatter; - -import jakarta.persistence.AttributeConverter; -import jakarta.persistence.Converter; -import java.text.DateFormat; -import java.text.ParseException; -import java.text.SimpleDateFormat; -import java.util.Date; -import java.util.TimeZone; - -/** - * Created by ikalyvas on 9/25/2018. - */ -@Converter -public class DateToUTCConverter implements AttributeConverter { - private static final Logger logger = LoggerFactory.getLogger(DateToUTCConverter.class); - - @Override - public Date convertToDatabaseColumn(Date attribute) { - if(attribute == null) return null; - DateFormat formatterIST = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); - formatterIST.setTimeZone(TimeZone.getTimeZone("UTC")); - try { - String date = formatterIST.format(attribute); - return formatterIST.parse(date); - } catch (ParseException e) { - logger.error(e.getMessage(), e); - } - return null; - } - - @Override - public Date convertToEntityAttribute(Date dbData) { - if(dbData == null) return null; - DateFormat formatterIST = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); - formatterIST.setTimeZone(TimeZone.getTimeZone("UTC")); - try { - String date = formatterIST.format(dbData); - return formatterIST.parse(date); - } catch (ParseException e) { - logger.error(e.getMessage(), e); - } - return null; - } -} diff --git a/dmp-backend/data/src/main/java/eu/eudat/data/dao/criteria/DataManagementPlanBlueprintCriteria.java b/dmp-backend/data/src/main/java/eu/eudat/data/dao/criteria/DataManagementPlanBlueprintCriteria.java index f2348d016..8af3c8281 100644 --- a/dmp-backend/data/src/main/java/eu/eudat/data/dao/criteria/DataManagementPlanBlueprintCriteria.java +++ b/dmp-backend/data/src/main/java/eu/eudat/data/dao/criteria/DataManagementPlanBlueprintCriteria.java @@ -1,6 +1,6 @@ package eu.eudat.data.dao.criteria; -import eu.eudat.data.entities.DMPProfile; +import eu.eudat.data.old.DMPProfile; public class DataManagementPlanBlueprintCriteria extends Criteria { diff --git a/dmp-backend/data/src/main/java/eu/eudat/data/dao/criteria/DataManagementPlanCriteria.java b/dmp-backend/data/src/main/java/eu/eudat/data/dao/criteria/DataManagementPlanCriteria.java index 4dab4e2f0..97cba9e23 100644 --- a/dmp-backend/data/src/main/java/eu/eudat/data/dao/criteria/DataManagementPlanCriteria.java +++ b/dmp-backend/data/src/main/java/eu/eudat/data/dao/criteria/DataManagementPlanCriteria.java @@ -1,8 +1,8 @@ package eu.eudat.data.dao.criteria; -import eu.eudat.data.entities.DMP; -import eu.eudat.data.entities.DMPProfile; -import eu.eudat.data.entities.Grant; +import eu.eudat.data.old.DMP; +import eu.eudat.data.old.DMPProfile; +import eu.eudat.data.old.Grant; import java.util.Date; import java.util.List; @@ -12,7 +12,7 @@ public class DataManagementPlanCriteria extends Criteria { private Date periodStart; private Date periodEnd; private DMPProfile profile; - private List grants; + private List grants; private boolean allVersions; private List groupIds; private Integer status; diff --git a/dmp-backend/data/src/main/java/eu/eudat/data/dao/criteria/DataManagementPlanProfileCriteria.java b/dmp-backend/data/src/main/java/eu/eudat/data/dao/criteria/DataManagementPlanProfileCriteria.java index a601fcd6b..0e47f401b 100644 --- a/dmp-backend/data/src/main/java/eu/eudat/data/dao/criteria/DataManagementPlanProfileCriteria.java +++ b/dmp-backend/data/src/main/java/eu/eudat/data/dao/criteria/DataManagementPlanProfileCriteria.java @@ -1,6 +1,6 @@ package eu.eudat.data.dao.criteria; -import eu.eudat.data.entities.DMPProfile; +import eu.eudat.data.old.DMPProfile; /** * Created by ikalyvas on 3/21/2018. diff --git a/dmp-backend/data/src/main/java/eu/eudat/data/dao/criteria/DataManagementPlanPublicCriteria.java b/dmp-backend/data/src/main/java/eu/eudat/data/dao/criteria/DataManagementPlanPublicCriteria.java index cc96186fc..db56ffdc6 100644 --- a/dmp-backend/data/src/main/java/eu/eudat/data/dao/criteria/DataManagementPlanPublicCriteria.java +++ b/dmp-backend/data/src/main/java/eu/eudat/data/dao/criteria/DataManagementPlanPublicCriteria.java @@ -1,6 +1,6 @@ package eu.eudat.data.dao.criteria; -import eu.eudat.data.entities.DMP; +import eu.eudat.data.old.DMP; import eu.eudat.types.grant.GrantStateType; import java.util.List; diff --git a/dmp-backend/data/src/main/java/eu/eudat/data/dao/criteria/DataRepositoryCriteria.java b/dmp-backend/data/src/main/java/eu/eudat/data/dao/criteria/DataRepositoryCriteria.java index ecd577308..e1e9b73e5 100644 --- a/dmp-backend/data/src/main/java/eu/eudat/data/dao/criteria/DataRepositoryCriteria.java +++ b/dmp-backend/data/src/main/java/eu/eudat/data/dao/criteria/DataRepositoryCriteria.java @@ -1,6 +1,6 @@ package eu.eudat.data.dao.criteria; -import eu.eudat.data.entities.DataRepository; +import eu.eudat.data.old.DataRepository; import java.util.UUID; diff --git a/dmp-backend/data/src/main/java/eu/eudat/data/dao/criteria/DatasetCriteria.java b/dmp-backend/data/src/main/java/eu/eudat/data/dao/criteria/DatasetCriteria.java index d730d0127..f78caa2dd 100644 --- a/dmp-backend/data/src/main/java/eu/eudat/data/dao/criteria/DatasetCriteria.java +++ b/dmp-backend/data/src/main/java/eu/eudat/data/dao/criteria/DatasetCriteria.java @@ -1,8 +1,7 @@ package eu.eudat.data.dao.criteria; -import eu.eudat.data.entities.Dataset; +import eu.eudat.data.old.Dataset; import eu.eudat.elastic.entities.Tag; -import eu.eudat.types.grant.GrantStateType; import java.util.Date; import java.util.List; diff --git a/dmp-backend/data/src/main/java/eu/eudat/data/dao/criteria/DatasetProfileCriteria.java b/dmp-backend/data/src/main/java/eu/eudat/data/dao/criteria/DatasetProfileCriteria.java index c859cb2c8..e42bb5e86 100644 --- a/dmp-backend/data/src/main/java/eu/eudat/data/dao/criteria/DatasetProfileCriteria.java +++ b/dmp-backend/data/src/main/java/eu/eudat/data/dao/criteria/DatasetProfileCriteria.java @@ -1,7 +1,7 @@ package eu.eudat.data.dao.criteria; -import eu.eudat.data.entities.DescriptionTemplate; +import eu.eudat.data.old.DescriptionTemplate; import java.util.Date; import java.util.List; diff --git a/dmp-backend/data/src/main/java/eu/eudat/data/dao/criteria/DatasetProfileWizardCriteria.java b/dmp-backend/data/src/main/java/eu/eudat/data/dao/criteria/DatasetProfileWizardCriteria.java index 9e1d5d9e2..3f5b0940f 100644 --- a/dmp-backend/data/src/main/java/eu/eudat/data/dao/criteria/DatasetProfileWizardCriteria.java +++ b/dmp-backend/data/src/main/java/eu/eudat/data/dao/criteria/DatasetProfileWizardCriteria.java @@ -1,6 +1,6 @@ package eu.eudat.data.dao.criteria; -import eu.eudat.data.entities.DescriptionTemplate; +import eu.eudat.data.old.DescriptionTemplate; import java.util.UUID; diff --git a/dmp-backend/data/src/main/java/eu/eudat/data/dao/criteria/DatasetPublicCriteria.java b/dmp-backend/data/src/main/java/eu/eudat/data/dao/criteria/DatasetPublicCriteria.java index 9554ed5b4..e0a034de2 100644 --- a/dmp-backend/data/src/main/java/eu/eudat/data/dao/criteria/DatasetPublicCriteria.java +++ b/dmp-backend/data/src/main/java/eu/eudat/data/dao/criteria/DatasetPublicCriteria.java @@ -1,6 +1,6 @@ package eu.eudat.data.dao.criteria; -import eu.eudat.data.entities.Dataset; +import eu.eudat.data.old.Dataset; import eu.eudat.elastic.entities.Tag; import eu.eudat.types.grant.GrantStateType; diff --git a/dmp-backend/data/src/main/java/eu/eudat/data/dao/criteria/DatasetWizardUserDmpCriteria.java b/dmp-backend/data/src/main/java/eu/eudat/data/dao/criteria/DatasetWizardUserDmpCriteria.java index c5cbfc984..d92440c88 100644 --- a/dmp-backend/data/src/main/java/eu/eudat/data/dao/criteria/DatasetWizardUserDmpCriteria.java +++ b/dmp-backend/data/src/main/java/eu/eudat/data/dao/criteria/DatasetWizardUserDmpCriteria.java @@ -1,8 +1,8 @@ package eu.eudat.data.dao.criteria; -import eu.eudat.data.entities.DMP; -import eu.eudat.data.entities.UserInfo; +import eu.eudat.data.old.DMP; +import eu.eudat.data.old.UserInfo; public class DatasetWizardUserDmpCriteria extends Criteria { private UserInfo userInfo; diff --git a/dmp-backend/data/src/main/java/eu/eudat/data/dao/criteria/EmailConfirmationCriteria.java b/dmp-backend/data/src/main/java/eu/eudat/data/dao/criteria/EmailConfirmationCriteria.java index 1436752b9..76235c287 100644 --- a/dmp-backend/data/src/main/java/eu/eudat/data/dao/criteria/EmailConfirmationCriteria.java +++ b/dmp-backend/data/src/main/java/eu/eudat/data/dao/criteria/EmailConfirmationCriteria.java @@ -1,6 +1,6 @@ package eu.eudat.data.dao.criteria; -import eu.eudat.data.entities.EmailConfirmation; +import eu.eudat.data.old.EmailConfirmation; public class EmailConfirmationCriteria extends Criteria{ } diff --git a/dmp-backend/data/src/main/java/eu/eudat/data/dao/criteria/ExternalDatasetCriteria.java b/dmp-backend/data/src/main/java/eu/eudat/data/dao/criteria/ExternalDatasetCriteria.java index a5a6275e8..7b5f501a4 100644 --- a/dmp-backend/data/src/main/java/eu/eudat/data/dao/criteria/ExternalDatasetCriteria.java +++ b/dmp-backend/data/src/main/java/eu/eudat/data/dao/criteria/ExternalDatasetCriteria.java @@ -1,6 +1,6 @@ package eu.eudat.data.dao.criteria; -import eu.eudat.data.entities.ExternalDataset; +import eu.eudat.data.old.ExternalDataset; import java.util.UUID; public class ExternalDatasetCriteria extends Criteria { diff --git a/dmp-backend/data/src/main/java/eu/eudat/data/dao/criteria/FunderCriteria.java b/dmp-backend/data/src/main/java/eu/eudat/data/dao/criteria/FunderCriteria.java index b67983aa0..52b952170 100644 --- a/dmp-backend/data/src/main/java/eu/eudat/data/dao/criteria/FunderCriteria.java +++ b/dmp-backend/data/src/main/java/eu/eudat/data/dao/criteria/FunderCriteria.java @@ -1,6 +1,6 @@ package eu.eudat.data.dao.criteria; -import eu.eudat.data.entities.Funder; +import eu.eudat.data.old.Funder; import java.util.Date; diff --git a/dmp-backend/data/src/main/java/eu/eudat/data/dao/criteria/GrantCriteria.java b/dmp-backend/data/src/main/java/eu/eudat/data/dao/criteria/GrantCriteria.java index 1cfd88be7..1b0996b67 100644 --- a/dmp-backend/data/src/main/java/eu/eudat/data/dao/criteria/GrantCriteria.java +++ b/dmp-backend/data/src/main/java/eu/eudat/data/dao/criteria/GrantCriteria.java @@ -1,7 +1,6 @@ package eu.eudat.data.dao.criteria; -import eu.eudat.data.entities.Grant; -import eu.eudat.types.grant.GrantStateType; +import eu.eudat.data.old.Grant; import java.util.Date; diff --git a/dmp-backend/data/src/main/java/eu/eudat/data/dao/criteria/InvitationCriteria.java b/dmp-backend/data/src/main/java/eu/eudat/data/dao/criteria/InvitationCriteria.java index 50cdeb6a1..c93ce4b9c 100644 --- a/dmp-backend/data/src/main/java/eu/eudat/data/dao/criteria/InvitationCriteria.java +++ b/dmp-backend/data/src/main/java/eu/eudat/data/dao/criteria/InvitationCriteria.java @@ -1,6 +1,6 @@ package eu.eudat.data.dao.criteria; -import eu.eudat.data.entities.Invitation; +import eu.eudat.data.old.Invitation; public class InvitationCriteria extends Criteria { } diff --git a/dmp-backend/data/src/main/java/eu/eudat/data/dao/criteria/LockCriteria.java b/dmp-backend/data/src/main/java/eu/eudat/data/dao/criteria/LockCriteria.java index 55b8e48e5..7a888209e 100644 --- a/dmp-backend/data/src/main/java/eu/eudat/data/dao/criteria/LockCriteria.java +++ b/dmp-backend/data/src/main/java/eu/eudat/data/dao/criteria/LockCriteria.java @@ -1,7 +1,7 @@ package eu.eudat.data.dao.criteria; -import eu.eudat.data.entities.Lock; -import eu.eudat.data.entities.UserInfo; +import eu.eudat.data.old.Lock; +import eu.eudat.data.old.UserInfo; import java.util.Date; import java.util.UUID; diff --git a/dmp-backend/data/src/main/java/eu/eudat/data/dao/criteria/NotificationCriteria.java b/dmp-backend/data/src/main/java/eu/eudat/data/dao/criteria/NotificationCriteria.java index 1cd361014..1ed4c3b0d 100644 --- a/dmp-backend/data/src/main/java/eu/eudat/data/dao/criteria/NotificationCriteria.java +++ b/dmp-backend/data/src/main/java/eu/eudat/data/dao/criteria/NotificationCriteria.java @@ -1,7 +1,7 @@ package eu.eudat.data.dao.criteria; -import eu.eudat.data.enumeration.notification.ActiveStatus; -import eu.eudat.data.enumeration.notification.NotifyState; +import eu.eudat.commons.enums.old.notification.ActiveStatus; +import eu.eudat.commons.enums.old.notification.NotifyState; public class NotificationCriteria { diff --git a/dmp-backend/data/src/main/java/eu/eudat/data/dao/criteria/OrganisationCriteria.java b/dmp-backend/data/src/main/java/eu/eudat/data/dao/criteria/OrganisationCriteria.java index 30e437df0..6fa34499e 100644 --- a/dmp-backend/data/src/main/java/eu/eudat/data/dao/criteria/OrganisationCriteria.java +++ b/dmp-backend/data/src/main/java/eu/eudat/data/dao/criteria/OrganisationCriteria.java @@ -1,6 +1,6 @@ package eu.eudat.data.dao.criteria; -import eu.eudat.data.entities.Organisation; +import eu.eudat.data.old.Organisation; public class OrganisationCriteria extends Criteria { private String labelLike; diff --git a/dmp-backend/data/src/main/java/eu/eudat/data/dao/criteria/ProjectCriteria.java b/dmp-backend/data/src/main/java/eu/eudat/data/dao/criteria/ProjectCriteria.java index a9d266ea6..61a1d2dfe 100644 --- a/dmp-backend/data/src/main/java/eu/eudat/data/dao/criteria/ProjectCriteria.java +++ b/dmp-backend/data/src/main/java/eu/eudat/data/dao/criteria/ProjectCriteria.java @@ -1,6 +1,6 @@ package eu.eudat.data.dao.criteria; -import eu.eudat.data.entities.Project; +import eu.eudat.data.old.Project; import java.util.Date; diff --git a/dmp-backend/data/src/main/java/eu/eudat/data/dao/criteria/RegistryCriteria.java b/dmp-backend/data/src/main/java/eu/eudat/data/dao/criteria/RegistryCriteria.java index 186f5e281..ccd9dce71 100644 --- a/dmp-backend/data/src/main/java/eu/eudat/data/dao/criteria/RegistryCriteria.java +++ b/dmp-backend/data/src/main/java/eu/eudat/data/dao/criteria/RegistryCriteria.java @@ -1,6 +1,6 @@ package eu.eudat.data.dao.criteria; -import eu.eudat.data.entities.Registry; +import eu.eudat.data.old.Registry; import java.util.UUID; diff --git a/dmp-backend/data/src/main/java/eu/eudat/data/dao/criteria/ResearcherCriteria.java b/dmp-backend/data/src/main/java/eu/eudat/data/dao/criteria/ResearcherCriteria.java index 21cb1e5d2..f656cced3 100644 --- a/dmp-backend/data/src/main/java/eu/eudat/data/dao/criteria/ResearcherCriteria.java +++ b/dmp-backend/data/src/main/java/eu/eudat/data/dao/criteria/ResearcherCriteria.java @@ -1,6 +1,6 @@ package eu.eudat.data.dao.criteria; -import eu.eudat.data.entities.Researcher; +import eu.eudat.data.old.Researcher; import java.util.Date; diff --git a/dmp-backend/data/src/main/java/eu/eudat/data/dao/criteria/ServiceCriteria.java b/dmp-backend/data/src/main/java/eu/eudat/data/dao/criteria/ServiceCriteria.java index 715511fb3..7bf9e277f 100644 --- a/dmp-backend/data/src/main/java/eu/eudat/data/dao/criteria/ServiceCriteria.java +++ b/dmp-backend/data/src/main/java/eu/eudat/data/dao/criteria/ServiceCriteria.java @@ -1,6 +1,6 @@ package eu.eudat.data.dao.criteria; -import eu.eudat.data.entities.Service; +import eu.eudat.data.old.Service; import java.util.UUID; diff --git a/dmp-backend/data/src/main/java/eu/eudat/data/dao/criteria/UserInfoCriteria.java b/dmp-backend/data/src/main/java/eu/eudat/data/dao/criteria/UserInfoCriteria.java index 3d21d809e..82d2c6247 100644 --- a/dmp-backend/data/src/main/java/eu/eudat/data/dao/criteria/UserInfoCriteria.java +++ b/dmp-backend/data/src/main/java/eu/eudat/data/dao/criteria/UserInfoCriteria.java @@ -1,6 +1,6 @@ package eu.eudat.data.dao.criteria; -import eu.eudat.data.entities.UserInfo; +import eu.eudat.data.old.UserInfo; import java.util.List; diff --git a/dmp-backend/data/src/main/java/eu/eudat/data/dao/criteria/UserRoleCriteria.java b/dmp-backend/data/src/main/java/eu/eudat/data/dao/criteria/UserRoleCriteria.java index 10654c0a6..d9e8e02d1 100644 --- a/dmp-backend/data/src/main/java/eu/eudat/data/dao/criteria/UserRoleCriteria.java +++ b/dmp-backend/data/src/main/java/eu/eudat/data/dao/criteria/UserRoleCriteria.java @@ -1,6 +1,6 @@ package eu.eudat.data.dao.criteria; -import eu.eudat.data.entities.UserRole; +import eu.eudat.data.old.UserRole; import java.util.List; diff --git a/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/ContentDao.java b/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/ContentDao.java index 438f9b3c5..abebdbfa2 100644 --- a/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/ContentDao.java +++ b/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/ContentDao.java @@ -1,7 +1,7 @@ package eu.eudat.data.dao.entities; import eu.eudat.data.dao.DatabaseAccessLayer; -import eu.eudat.data.entities.Content; +import eu.eudat.data.old.Content; import java.util.UUID; diff --git a/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/ContentDaoImpl.java b/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/ContentDaoImpl.java index 1d3f559d5..2ebc1dfaf 100644 --- a/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/ContentDaoImpl.java +++ b/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/ContentDaoImpl.java @@ -2,7 +2,7 @@ package eu.eudat.data.dao.entities; import eu.eudat.data.dao.DatabaseAccess; import eu.eudat.data.dao.databaselayer.service.DatabaseService; -import eu.eudat.data.entities.Content; +import eu.eudat.data.old.Content; import eu.eudat.queryable.QueryableList; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.scheduling.annotation.Async; diff --git a/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/DMPDao.java b/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/DMPDao.java index 3073e1857..3946cc1cb 100644 --- a/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/DMPDao.java +++ b/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/DMPDao.java @@ -3,9 +3,8 @@ package eu.eudat.data.dao.entities; import eu.eudat.data.dao.DatabaseAccessLayer; import eu.eudat.data.dao.criteria.DataManagementPlanCriteria; import eu.eudat.data.dao.criteria.DatasetWizardUserDmpCriteria; -import eu.eudat.data.entities.DMP; -import eu.eudat.data.entities.UserDMP; -import eu.eudat.data.entities.UserInfo; +import eu.eudat.data.old.DMP; +import eu.eudat.data.old.UserInfo; import eu.eudat.queryable.QueryableList; import java.util.List; diff --git a/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/DMPDaoImpl.java b/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/DMPDaoImpl.java index aa1c7898e..27b49a4cb 100644 --- a/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/DMPDaoImpl.java +++ b/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/DMPDaoImpl.java @@ -4,8 +4,8 @@ import eu.eudat.data.dao.DatabaseAccess; import eu.eudat.data.dao.criteria.DataManagementPlanCriteria; import eu.eudat.data.dao.criteria.DatasetWizardUserDmpCriteria; import eu.eudat.data.dao.databaselayer.service.DatabaseService; -import eu.eudat.data.entities.DMP; -import eu.eudat.data.entities.UserInfo; +import eu.eudat.data.old.DMP; +import eu.eudat.data.old.UserInfo; import eu.eudat.queryable.QueryableList; import eu.eudat.queryable.types.FieldSelectionType; import eu.eudat.queryable.types.SelectionField; diff --git a/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/DMPProfileDao.java b/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/DMPProfileDao.java index 36fc58752..bdef8642c 100644 --- a/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/DMPProfileDao.java +++ b/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/DMPProfileDao.java @@ -3,8 +3,7 @@ package eu.eudat.data.dao.entities; import eu.eudat.data.dao.DatabaseAccessLayer; import eu.eudat.data.dao.criteria.DataManagementPlanBlueprintCriteria; import eu.eudat.data.dao.criteria.DataManagementPlanProfileCriteria; -import eu.eudat.data.entities.DMP; -import eu.eudat.data.entities.DMPProfile; +import eu.eudat.data.old.DMPProfile; import eu.eudat.queryable.QueryableList; import java.util.UUID; diff --git a/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/DMPProfileDaoImpl.java b/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/DMPProfileDaoImpl.java index 7033473c2..9d3392be5 100644 --- a/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/DMPProfileDaoImpl.java +++ b/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/DMPProfileDaoImpl.java @@ -4,7 +4,7 @@ import eu.eudat.data.dao.DatabaseAccess; import eu.eudat.data.dao.criteria.DataManagementPlanBlueprintCriteria; import eu.eudat.data.dao.criteria.DataManagementPlanProfileCriteria; import eu.eudat.data.dao.databaselayer.service.DatabaseService; -import eu.eudat.data.entities.DMPProfile; +import eu.eudat.data.old.DMPProfile; import eu.eudat.queryable.QueryableList; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.scheduling.annotation.Async; diff --git a/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/DataRepositoryDao.java b/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/DataRepositoryDao.java index 68b64022b..fc3839342 100644 --- a/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/DataRepositoryDao.java +++ b/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/DataRepositoryDao.java @@ -2,7 +2,7 @@ package eu.eudat.data.dao.entities; import eu.eudat.data.dao.DatabaseAccessLayer; import eu.eudat.data.dao.criteria.DataRepositoryCriteria; -import eu.eudat.data.entities.DataRepository; +import eu.eudat.data.old.DataRepository; import eu.eudat.queryable.QueryableList; import java.util.UUID; diff --git a/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/DataRepositoryDaoImpl.java b/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/DataRepositoryDaoImpl.java index 4658b44f6..f64e1089a 100644 --- a/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/DataRepositoryDaoImpl.java +++ b/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/DataRepositoryDaoImpl.java @@ -3,7 +3,7 @@ package eu.eudat.data.dao.entities; import eu.eudat.data.dao.DatabaseAccess; import eu.eudat.data.dao.criteria.DataRepositoryCriteria; import eu.eudat.data.dao.databaselayer.service.DatabaseService; -import eu.eudat.data.entities.DataRepository; +import eu.eudat.data.old.DataRepository; import eu.eudat.queryable.QueryableList; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.scheduling.annotation.Async; diff --git a/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/DatasetDao.java b/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/DatasetDao.java index 126958e11..6683a9ab1 100644 --- a/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/DatasetDao.java +++ b/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/DatasetDao.java @@ -2,8 +2,8 @@ package eu.eudat.data.dao.entities; import eu.eudat.data.dao.DatabaseAccessLayer; import eu.eudat.data.dao.criteria.DatasetCriteria; -import eu.eudat.data.entities.Dataset; -import eu.eudat.data.entities.UserInfo; +import eu.eudat.data.old.Dataset; +import eu.eudat.data.old.UserInfo; import eu.eudat.queryable.QueryableList; import java.util.List; diff --git a/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/DatasetDaoImpl.java b/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/DatasetDaoImpl.java index 841c2c08c..4b9f25395 100644 --- a/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/DatasetDaoImpl.java +++ b/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/DatasetDaoImpl.java @@ -3,10 +3,9 @@ package eu.eudat.data.dao.entities; import eu.eudat.data.dao.DatabaseAccess; import eu.eudat.data.dao.criteria.DatasetCriteria; import eu.eudat.data.dao.databaselayer.service.DatabaseService; -import eu.eudat.data.entities.DMP; -import eu.eudat.data.entities.Dataset; -import eu.eudat.data.entities.UserDMP; -import eu.eudat.data.entities.UserInfo; +import eu.eudat.data.old.DMP; +import eu.eudat.data.old.Dataset; +import eu.eudat.data.old.UserInfo; import eu.eudat.queryable.QueryableList; import eu.eudat.queryable.types.FieldSelectionType; import eu.eudat.queryable.types.SelectionField; diff --git a/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/DatasetExternalDatasetDao.java b/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/DatasetExternalDatasetDao.java index 6947aeb75..a77ac8579 100644 --- a/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/DatasetExternalDatasetDao.java +++ b/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/DatasetExternalDatasetDao.java @@ -1,7 +1,7 @@ package eu.eudat.data.dao.entities; import eu.eudat.data.dao.DatabaseAccessLayer; -import eu.eudat.data.entities.DatasetExternalDataset; +import eu.eudat.data.old.DatasetExternalDataset; import java.util.UUID; diff --git a/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/DatasetExternalDatasetDaoImpl.java b/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/DatasetExternalDatasetDaoImpl.java index a0f7f6afa..7fee74ca0 100644 --- a/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/DatasetExternalDatasetDaoImpl.java +++ b/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/DatasetExternalDatasetDaoImpl.java @@ -2,7 +2,7 @@ package eu.eudat.data.dao.entities; import eu.eudat.data.dao.DatabaseAccess; import eu.eudat.data.dao.databaselayer.service.DatabaseService; -import eu.eudat.data.entities.DatasetExternalDataset; +import eu.eudat.data.old.DatasetExternalDataset; import eu.eudat.queryable.QueryableList; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.scheduling.annotation.Async; diff --git a/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/DatasetProfileDao.java b/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/DatasetProfileDao.java index 10b4e85a7..fef12c40d 100644 --- a/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/DatasetProfileDao.java +++ b/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/DatasetProfileDao.java @@ -3,7 +3,7 @@ package eu.eudat.data.dao.entities; import eu.eudat.data.DescriptionTemplateTypeEntity; import eu.eudat.data.dao.DatabaseAccessLayer; import eu.eudat.data.dao.criteria.DatasetProfileCriteria; -import eu.eudat.data.entities.DescriptionTemplate; +import eu.eudat.data.old.DescriptionTemplate; import eu.eudat.queryable.QueryableList; import java.util.List; diff --git a/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/DatasetProfileDaoImpl.java b/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/DatasetProfileDaoImpl.java index 03a942969..2c5d3b393 100644 --- a/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/DatasetProfileDaoImpl.java +++ b/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/DatasetProfileDaoImpl.java @@ -4,7 +4,7 @@ import eu.eudat.data.DescriptionTemplateTypeEntity; import eu.eudat.data.dao.DatabaseAccess; import eu.eudat.data.dao.criteria.DatasetProfileCriteria; import eu.eudat.data.dao.databaselayer.service.DatabaseService; -import eu.eudat.data.entities.DescriptionTemplate; +import eu.eudat.data.old.DescriptionTemplate; import eu.eudat.queryable.QueryableList; import eu.eudat.queryable.types.FieldSelectionType; import eu.eudat.queryable.types.SelectionField; diff --git a/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/DatasetServiceDao.java b/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/DatasetServiceDao.java index 3666d4014..62536194e 100644 --- a/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/DatasetServiceDao.java +++ b/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/DatasetServiceDao.java @@ -1,7 +1,7 @@ package eu.eudat.data.dao.entities; import eu.eudat.data.dao.DatabaseAccessLayer; -import eu.eudat.data.entities.DatasetService; +import eu.eudat.data.old.DatasetService; import java.util.UUID; diff --git a/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/DatasetServiceDaoImpl.java b/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/DatasetServiceDaoImpl.java index 2f000f4f8..f1dba039b 100644 --- a/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/DatasetServiceDaoImpl.java +++ b/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/DatasetServiceDaoImpl.java @@ -2,7 +2,7 @@ package eu.eudat.data.dao.entities; import eu.eudat.data.dao.DatabaseAccess; import eu.eudat.data.dao.databaselayer.service.DatabaseService; -import eu.eudat.data.entities.DatasetService; +import eu.eudat.data.old.DatasetService; import eu.eudat.queryable.QueryableList; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.scheduling.annotation.Async; diff --git a/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/DmpDatasetProfileDao.java b/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/DmpDatasetProfileDao.java index 9febf7abf..0cc7afc41 100644 --- a/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/DmpDatasetProfileDao.java +++ b/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/DmpDatasetProfileDao.java @@ -1,7 +1,7 @@ package eu.eudat.data.dao.entities; import eu.eudat.data.dao.DatabaseAccessLayer; -import eu.eudat.data.entities.DMPDatasetProfile; +import eu.eudat.data.old.DMPDatasetProfile; import java.util.UUID; diff --git a/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/DmpDatasetProfileDaoImpl.java b/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/DmpDatasetProfileDaoImpl.java index 6c65b804f..1bca0f6c1 100644 --- a/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/DmpDatasetProfileDaoImpl.java +++ b/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/DmpDatasetProfileDaoImpl.java @@ -2,8 +2,7 @@ package eu.eudat.data.dao.entities; import eu.eudat.data.dao.DatabaseAccess; import eu.eudat.data.dao.databaselayer.service.DatabaseService; -import eu.eudat.data.entities.Content; -import eu.eudat.data.entities.DMPDatasetProfile; +import eu.eudat.data.old.DMPDatasetProfile; import eu.eudat.queryable.QueryableList; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.scheduling.annotation.Async; diff --git a/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/EmailConfirmationDao.java b/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/EmailConfirmationDao.java index b379d964d..6fc5dbead 100644 --- a/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/EmailConfirmationDao.java +++ b/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/EmailConfirmationDao.java @@ -2,7 +2,7 @@ package eu.eudat.data.dao.entities; import eu.eudat.data.dao.DatabaseAccessLayer; import eu.eudat.data.dao.criteria.EmailConfirmationCriteria; -import eu.eudat.data.entities.EmailConfirmation; +import eu.eudat.data.old.EmailConfirmation; import eu.eudat.queryable.QueryableList; import java.util.UUID; diff --git a/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/EmailConfirmationDaoImpl.java b/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/EmailConfirmationDaoImpl.java index d53fc9774..b7a17c507 100644 --- a/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/EmailConfirmationDaoImpl.java +++ b/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/EmailConfirmationDaoImpl.java @@ -3,7 +3,7 @@ package eu.eudat.data.dao.entities; import eu.eudat.data.dao.DatabaseAccess; import eu.eudat.data.dao.criteria.EmailConfirmationCriteria; import eu.eudat.data.dao.databaselayer.service.DatabaseService; -import eu.eudat.data.entities.EmailConfirmation; +import eu.eudat.data.old.EmailConfirmation; import eu.eudat.queryable.QueryableList; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; diff --git a/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/EntityDoiDao.java b/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/EntityDoiDao.java index ebc6aad1a..b675cc138 100644 --- a/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/EntityDoiDao.java +++ b/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/EntityDoiDao.java @@ -1,7 +1,7 @@ package eu.eudat.data.dao.entities; import eu.eudat.data.dao.DatabaseAccessLayer; -import eu.eudat.data.entities.EntityDoi; +import eu.eudat.data.old.EntityDoi; import java.util.UUID; diff --git a/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/EntityDoiDaoImpl.java b/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/EntityDoiDaoImpl.java index 4eaf59b87..c955dda63 100644 --- a/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/EntityDoiDaoImpl.java +++ b/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/EntityDoiDaoImpl.java @@ -2,7 +2,7 @@ package eu.eudat.data.dao.entities; import eu.eudat.data.dao.DatabaseAccess; import eu.eudat.data.dao.databaselayer.service.DatabaseService; -import eu.eudat.data.entities.EntityDoi; +import eu.eudat.data.old.EntityDoi; import eu.eudat.queryable.QueryableList; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Component; diff --git a/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/ExternalDatasetDao.java b/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/ExternalDatasetDao.java index 236b430d2..be21dc3f6 100644 --- a/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/ExternalDatasetDao.java +++ b/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/ExternalDatasetDao.java @@ -2,7 +2,7 @@ package eu.eudat.data.dao.entities; import eu.eudat.data.dao.DatabaseAccessLayer; import eu.eudat.data.dao.criteria.ExternalDatasetCriteria; -import eu.eudat.data.entities.ExternalDataset; +import eu.eudat.data.old.ExternalDataset; import eu.eudat.queryable.QueryableList; import java.util.UUID; diff --git a/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/ExternalDatasetDaoImpl.java b/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/ExternalDatasetDaoImpl.java index 163eed579..e328bdcc2 100644 --- a/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/ExternalDatasetDaoImpl.java +++ b/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/ExternalDatasetDaoImpl.java @@ -3,7 +3,7 @@ package eu.eudat.data.dao.entities; import eu.eudat.data.dao.DatabaseAccess; import eu.eudat.data.dao.criteria.ExternalDatasetCriteria; import eu.eudat.data.dao.databaselayer.service.DatabaseService; -import eu.eudat.data.entities.ExternalDataset; +import eu.eudat.data.old.ExternalDataset; import eu.eudat.queryable.QueryableList; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.scheduling.annotation.Async; diff --git a/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/FileUploadDao.java b/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/FileUploadDao.java index c334b63d4..f98fd5890 100644 --- a/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/FileUploadDao.java +++ b/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/FileUploadDao.java @@ -1,7 +1,7 @@ package eu.eudat.data.dao.entities; import eu.eudat.data.dao.DatabaseAccessLayer; -import eu.eudat.data.entities.FileUpload; +import eu.eudat.data.old.FileUpload; import java.util.List; import java.util.UUID; diff --git a/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/FileUploadDaoImpl.java b/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/FileUploadDaoImpl.java index 47cc10066..491f92faf 100644 --- a/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/FileUploadDaoImpl.java +++ b/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/FileUploadDaoImpl.java @@ -2,7 +2,7 @@ package eu.eudat.data.dao.entities; import eu.eudat.data.dao.DatabaseAccess; import eu.eudat.data.dao.databaselayer.service.DatabaseService; -import eu.eudat.data.entities.FileUpload; +import eu.eudat.data.old.FileUpload; import eu.eudat.queryable.QueryableList; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Component; diff --git a/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/FunderDao.java b/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/FunderDao.java index 7c884a9e5..84309d814 100644 --- a/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/FunderDao.java +++ b/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/FunderDao.java @@ -2,8 +2,8 @@ package eu.eudat.data.dao.entities; import eu.eudat.data.dao.DatabaseAccessLayer; import eu.eudat.data.dao.criteria.FunderCriteria; -import eu.eudat.data.entities.Funder; -import eu.eudat.data.entities.UserInfo; +import eu.eudat.data.old.Funder; +import eu.eudat.data.old.UserInfo; import eu.eudat.queryable.QueryableList; import java.util.UUID; diff --git a/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/FunderDaoImpl.java b/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/FunderDaoImpl.java index c5a146c47..30e1ee91b 100644 --- a/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/FunderDaoImpl.java +++ b/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/FunderDaoImpl.java @@ -3,8 +3,8 @@ package eu.eudat.data.dao.entities; import eu.eudat.data.dao.DatabaseAccess; import eu.eudat.data.dao.criteria.FunderCriteria; import eu.eudat.data.dao.databaselayer.service.DatabaseService; -import eu.eudat.data.entities.Funder; -import eu.eudat.data.entities.UserInfo; +import eu.eudat.data.old.Funder; +import eu.eudat.data.old.UserInfo; import eu.eudat.queryable.QueryableList; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Component; diff --git a/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/GrantDao.java b/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/GrantDao.java index ef9316632..c31f7914d 100644 --- a/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/GrantDao.java +++ b/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/GrantDao.java @@ -2,8 +2,8 @@ package eu.eudat.data.dao.entities; import eu.eudat.data.dao.DatabaseAccessLayer; import eu.eudat.data.dao.criteria.GrantCriteria; -import eu.eudat.data.entities.Grant; -import eu.eudat.data.entities.UserInfo; +import eu.eudat.data.old.Grant; +import eu.eudat.data.old.UserInfo; import eu.eudat.queryable.QueryableList; import java.util.UUID; diff --git a/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/GrantDaoImpl.java b/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/GrantDaoImpl.java index a148f3644..740721dd9 100644 --- a/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/GrantDaoImpl.java +++ b/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/GrantDaoImpl.java @@ -3,15 +3,14 @@ package eu.eudat.data.dao.entities; import eu.eudat.data.dao.DatabaseAccess; import eu.eudat.data.dao.criteria.GrantCriteria; import eu.eudat.data.dao.databaselayer.service.DatabaseService; -import eu.eudat.data.entities.DMP; -import eu.eudat.data.entities.Grant; -import eu.eudat.data.entities.UserInfo; +import eu.eudat.data.old.DMP; +import eu.eudat.data.old.Grant; +import eu.eudat.data.old.UserInfo; import eu.eudat.queryable.QueryableList; import eu.eudat.types.grant.GrantStateType; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.scheduling.annotation.Async; import org.springframework.stereotype.Component; -import schemasMicrosoftComOfficeOffice.LeftDocument; import jakarta.persistence.criteria.JoinType; import java.util.Date; diff --git a/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/InvitationDao.java b/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/InvitationDao.java index ba91f81f1..85b7198c9 100644 --- a/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/InvitationDao.java +++ b/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/InvitationDao.java @@ -2,7 +2,7 @@ package eu.eudat.data.dao.entities; import eu.eudat.data.dao.DatabaseAccessLayer; import eu.eudat.data.dao.criteria.InvitationCriteria; -import eu.eudat.data.entities.Invitation; +import eu.eudat.data.old.Invitation; import eu.eudat.queryable.QueryableList; import java.util.UUID; diff --git a/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/InvitationDaoImpl.java b/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/InvitationDaoImpl.java index eba6d5669..9969caea8 100644 --- a/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/InvitationDaoImpl.java +++ b/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/InvitationDaoImpl.java @@ -3,7 +3,7 @@ package eu.eudat.data.dao.entities; import eu.eudat.data.dao.DatabaseAccess; import eu.eudat.data.dao.criteria.InvitationCriteria; import eu.eudat.data.dao.databaselayer.service.DatabaseService; -import eu.eudat.data.entities.Invitation; +import eu.eudat.data.old.Invitation; import eu.eudat.queryable.QueryableList; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.scheduling.annotation.Async; diff --git a/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/LockDao.java b/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/LockDao.java index 35cd56bbe..ae5fffa08 100644 --- a/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/LockDao.java +++ b/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/LockDao.java @@ -2,7 +2,7 @@ package eu.eudat.data.dao.entities; import eu.eudat.data.dao.DatabaseAccessLayer; import eu.eudat.data.dao.criteria.LockCriteria; -import eu.eudat.data.entities.Lock; +import eu.eudat.data.old.Lock; import eu.eudat.queryable.QueryableList; import java.util.UUID; diff --git a/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/LockDaoImpl.java b/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/LockDaoImpl.java index f3a83e707..979a212e5 100644 --- a/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/LockDaoImpl.java +++ b/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/LockDaoImpl.java @@ -3,7 +3,7 @@ package eu.eudat.data.dao.entities; import eu.eudat.data.dao.DatabaseAccess; import eu.eudat.data.dao.criteria.LockCriteria; import eu.eudat.data.dao.databaselayer.service.DatabaseService; -import eu.eudat.data.entities.Lock; +import eu.eudat.data.old.Lock; import eu.eudat.queryable.QueryableList; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.scheduling.annotation.Async; diff --git a/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/NotificationDao.java b/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/NotificationDao.java index 508e03834..9cb0e8fc6 100644 --- a/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/NotificationDao.java +++ b/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/NotificationDao.java @@ -2,7 +2,7 @@ package eu.eudat.data.dao.entities; import eu.eudat.data.dao.DatabaseAccessLayer; import eu.eudat.data.dao.criteria.NotificationCriteria; -import eu.eudat.data.entities.Notification; +import eu.eudat.data.old.Notification; import eu.eudat.queryable.QueryableList; import java.util.UUID; diff --git a/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/NotificationDaoImpl.java b/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/NotificationDaoImpl.java index 17fa9dd18..5b4e33152 100644 --- a/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/NotificationDaoImpl.java +++ b/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/NotificationDaoImpl.java @@ -3,8 +3,7 @@ package eu.eudat.data.dao.entities; import eu.eudat.data.dao.DatabaseAccess; import eu.eudat.data.dao.criteria.NotificationCriteria; import eu.eudat.data.dao.databaselayer.service.DatabaseService; -import eu.eudat.data.entities.Lock; -import eu.eudat.data.entities.Notification; +import eu.eudat.data.old.Notification; import eu.eudat.queryable.QueryableList; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; diff --git a/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/OrganisationDao.java b/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/OrganisationDao.java index 900873ada..7ce34b6f4 100644 --- a/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/OrganisationDao.java +++ b/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/OrganisationDao.java @@ -2,8 +2,8 @@ package eu.eudat.data.dao.entities; import eu.eudat.data.dao.DatabaseAccessLayer; import eu.eudat.data.dao.criteria.OrganisationCriteria; -import eu.eudat.data.entities.Organisation; -import eu.eudat.data.entities.UserInfo; +import eu.eudat.data.old.Organisation; +import eu.eudat.data.old.UserInfo; import eu.eudat.queryable.QueryableList; import java.util.UUID; diff --git a/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/OrganisationDaoImpl.java b/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/OrganisationDaoImpl.java index 82e6e7076..22dea8fce 100644 --- a/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/OrganisationDaoImpl.java +++ b/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/OrganisationDaoImpl.java @@ -3,9 +3,9 @@ package eu.eudat.data.dao.entities; import eu.eudat.data.dao.DatabaseAccess; import eu.eudat.data.dao.criteria.OrganisationCriteria; import eu.eudat.data.dao.databaselayer.service.DatabaseService; -import eu.eudat.data.entities.DMP; -import eu.eudat.data.entities.Organisation; -import eu.eudat.data.entities.UserInfo; +import eu.eudat.data.old.DMP; +import eu.eudat.data.old.Organisation; +import eu.eudat.data.old.UserInfo; import eu.eudat.queryable.QueryableList; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.scheduling.annotation.Async; diff --git a/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/ProjectDao.java b/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/ProjectDao.java index 1c82fc0ed..e5194705d 100644 --- a/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/ProjectDao.java +++ b/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/ProjectDao.java @@ -2,8 +2,8 @@ package eu.eudat.data.dao.entities; import eu.eudat.data.dao.DatabaseAccessLayer; import eu.eudat.data.dao.criteria.ProjectCriteria; -import eu.eudat.data.entities.Project; -import eu.eudat.data.entities.UserInfo; +import eu.eudat.data.old.Project; +import eu.eudat.data.old.UserInfo; import eu.eudat.queryable.QueryableList; import java.util.UUID; diff --git a/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/ProjectDaoImpl.java b/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/ProjectDaoImpl.java index cc9afd444..9f240148a 100644 --- a/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/ProjectDaoImpl.java +++ b/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/ProjectDaoImpl.java @@ -3,8 +3,8 @@ package eu.eudat.data.dao.entities; import eu.eudat.data.dao.DatabaseAccess; import eu.eudat.data.dao.criteria.ProjectCriteria; import eu.eudat.data.dao.databaselayer.service.DatabaseService; -import eu.eudat.data.entities.Project; -import eu.eudat.data.entities.UserInfo; +import eu.eudat.data.old.Project; +import eu.eudat.data.old.UserInfo; import eu.eudat.queryable.QueryableList; import org.springframework.stereotype.Service; diff --git a/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/RegistryDao.java b/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/RegistryDao.java index 88e741192..41fdab6fc 100644 --- a/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/RegistryDao.java +++ b/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/RegistryDao.java @@ -2,7 +2,7 @@ package eu.eudat.data.dao.entities; import eu.eudat.data.dao.DatabaseAccessLayer; import eu.eudat.data.dao.criteria.RegistryCriteria; -import eu.eudat.data.entities.Registry; +import eu.eudat.data.old.Registry; import eu.eudat.queryable.QueryableList; import java.util.UUID; diff --git a/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/RegistryDaoImpl.java b/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/RegistryDaoImpl.java index c02fee715..4651865f3 100644 --- a/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/RegistryDaoImpl.java +++ b/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/RegistryDaoImpl.java @@ -3,7 +3,7 @@ package eu.eudat.data.dao.entities; import eu.eudat.data.dao.DatabaseAccess; import eu.eudat.data.dao.criteria.RegistryCriteria; import eu.eudat.data.dao.databaselayer.service.DatabaseService; -import eu.eudat.data.entities.Registry; +import eu.eudat.data.old.Registry; import eu.eudat.queryable.QueryableList; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.scheduling.annotation.Async; diff --git a/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/ResearcherDao.java b/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/ResearcherDao.java index 18af17f2a..869f49792 100644 --- a/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/ResearcherDao.java +++ b/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/ResearcherDao.java @@ -2,7 +2,7 @@ package eu.eudat.data.dao.entities; import eu.eudat.data.dao.DatabaseAccessLayer; import eu.eudat.data.dao.criteria.ResearcherCriteria; -import eu.eudat.data.entities.Researcher; +import eu.eudat.data.old.Researcher; import eu.eudat.queryable.QueryableList; import java.util.UUID; diff --git a/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/ResearcherDaoImpl.java b/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/ResearcherDaoImpl.java index 441ed9318..1a94a9157 100644 --- a/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/ResearcherDaoImpl.java +++ b/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/ResearcherDaoImpl.java @@ -3,7 +3,7 @@ package eu.eudat.data.dao.entities; import eu.eudat.data.dao.DatabaseAccess; import eu.eudat.data.dao.criteria.ResearcherCriteria; import eu.eudat.data.dao.databaselayer.service.DatabaseService; -import eu.eudat.data.entities.Researcher; +import eu.eudat.data.old.Researcher; import eu.eudat.queryable.QueryableList; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.scheduling.annotation.Async; diff --git a/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/ServiceDao.java b/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/ServiceDao.java index 025185c03..8b5400ba1 100644 --- a/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/ServiceDao.java +++ b/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/ServiceDao.java @@ -2,7 +2,7 @@ package eu.eudat.data.dao.entities; import eu.eudat.data.dao.DatabaseAccessLayer; import eu.eudat.data.dao.criteria.ServiceCriteria; -import eu.eudat.data.entities.Service; +import eu.eudat.data.old.Service; import eu.eudat.queryable.QueryableList; import java.util.UUID; diff --git a/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/ServiceDaoImpl.java b/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/ServiceDaoImpl.java index 1843a4510..924b28970 100644 --- a/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/ServiceDaoImpl.java +++ b/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/ServiceDaoImpl.java @@ -3,7 +3,7 @@ package eu.eudat.data.dao.entities; import eu.eudat.data.dao.DatabaseAccess; import eu.eudat.data.dao.criteria.ServiceCriteria; import eu.eudat.data.dao.databaselayer.service.DatabaseService; -import eu.eudat.data.entities.Service; +import eu.eudat.data.old.Service; import eu.eudat.queryable.QueryableList; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.scheduling.annotation.Async; diff --git a/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/UserDatasetProfileDao.java b/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/UserDatasetProfileDao.java index dfe500ca4..bcfe96c03 100644 --- a/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/UserDatasetProfileDao.java +++ b/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/UserDatasetProfileDao.java @@ -1,8 +1,7 @@ package eu.eudat.data.dao.entities; import eu.eudat.data.dao.DatabaseAccessLayer; -import eu.eudat.data.entities.UserDMP; -import eu.eudat.data.entities.UserDatasetProfile; +import eu.eudat.data.old.UserDatasetProfile; import java.util.UUID; diff --git a/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/UserDatasetProfileDaoImpl.java b/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/UserDatasetProfileDaoImpl.java index 73633d824..5ee982d73 100644 --- a/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/UserDatasetProfileDaoImpl.java +++ b/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/UserDatasetProfileDaoImpl.java @@ -2,8 +2,7 @@ package eu.eudat.data.dao.entities; import eu.eudat.data.dao.DatabaseAccess; import eu.eudat.data.dao.databaselayer.service.DatabaseService; -import eu.eudat.data.entities.UserDMP; -import eu.eudat.data.entities.UserDatasetProfile; +import eu.eudat.data.old.UserDatasetProfile; import eu.eudat.queryable.QueryableList; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.scheduling.annotation.Async; diff --git a/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/UserDmpDao.java b/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/UserDmpDao.java index 6fe396daf..7d782ddb4 100644 --- a/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/UserDmpDao.java +++ b/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/UserDmpDao.java @@ -1,7 +1,7 @@ package eu.eudat.data.dao.entities; import eu.eudat.data.dao.DatabaseAccessLayer; -import eu.eudat.data.entities.UserDMP; +import eu.eudat.data.old.UserDMP; import java.util.UUID; diff --git a/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/UserDmpDaoImpl.java b/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/UserDmpDaoImpl.java index eb99c65e3..ae94902d0 100644 --- a/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/UserDmpDaoImpl.java +++ b/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/UserDmpDaoImpl.java @@ -2,7 +2,7 @@ package eu.eudat.data.dao.entities; import eu.eudat.data.dao.DatabaseAccess; import eu.eudat.data.dao.databaselayer.service.DatabaseService; -import eu.eudat.data.entities.UserDMP; +import eu.eudat.data.old.UserDMP; import eu.eudat.queryable.QueryableList; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.scheduling.annotation.Async; diff --git a/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/UserInfoDao.java b/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/UserInfoDao.java index 4abb033f5..2bc61bf72 100644 --- a/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/UserInfoDao.java +++ b/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/UserInfoDao.java @@ -2,7 +2,7 @@ package eu.eudat.data.dao.entities; import eu.eudat.data.dao.DatabaseAccessLayer; import eu.eudat.data.dao.criteria.UserInfoCriteria; -import eu.eudat.data.entities.UserInfo; +import eu.eudat.data.old.UserInfo; import eu.eudat.queryable.QueryableList; import java.util.UUID; diff --git a/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/UserInfoDaoImpl.java b/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/UserInfoDaoImpl.java index c3f955d93..699a99b14 100644 --- a/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/UserInfoDaoImpl.java +++ b/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/UserInfoDaoImpl.java @@ -3,7 +3,7 @@ package eu.eudat.data.dao.entities; import eu.eudat.data.dao.DatabaseAccess; import eu.eudat.data.dao.criteria.UserInfoCriteria; import eu.eudat.data.dao.databaselayer.service.DatabaseService; -import eu.eudat.data.entities.UserInfo; +import eu.eudat.data.old.UserInfo; import eu.eudat.queryable.QueryableList; import eu.eudat.queryable.types.FieldSelectionType; import eu.eudat.queryable.types.SelectionField; diff --git a/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/UserRoleDao.java b/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/UserRoleDao.java index 31ff3768e..a43a26a56 100644 --- a/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/UserRoleDao.java +++ b/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/UserRoleDao.java @@ -2,8 +2,8 @@ package eu.eudat.data.dao.entities; import eu.eudat.data.dao.DatabaseAccessLayer; import eu.eudat.data.dao.criteria.UserRoleCriteria; -import eu.eudat.data.entities.UserInfo; -import eu.eudat.data.entities.UserRole; +import eu.eudat.data.old.UserInfo; +import eu.eudat.data.old.UserRole; import eu.eudat.queryable.QueryableList; import java.util.List; diff --git a/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/UserRoleDaoImpl.java b/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/UserRoleDaoImpl.java index 96a1522c4..64cd1339c 100644 --- a/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/UserRoleDaoImpl.java +++ b/dmp-backend/data/src/main/java/eu/eudat/data/dao/entities/UserRoleDaoImpl.java @@ -3,8 +3,8 @@ package eu.eudat.data.dao.entities; import eu.eudat.data.dao.DatabaseAccess; import eu.eudat.data.dao.criteria.UserRoleCriteria; import eu.eudat.data.dao.databaselayer.service.DatabaseService; -import eu.eudat.data.entities.UserInfo; -import eu.eudat.data.entities.UserRole; +import eu.eudat.data.old.UserInfo; +import eu.eudat.data.old.UserRole; import eu.eudat.queryable.QueryableList; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.scheduling.annotation.Async; diff --git a/dmp-backend/data/src/main/java/eu/eudat/data/enumeration/notification/ActiveStatus.java b/dmp-backend/data/src/main/java/eu/eudat/data/enumeration/notification/ActiveStatus.java deleted file mode 100644 index 1fa16c2d8..000000000 --- a/dmp-backend/data/src/main/java/eu/eudat/data/enumeration/notification/ActiveStatus.java +++ /dev/null @@ -1,27 +0,0 @@ -package eu.eudat.data.enumeration.notification; - -public enum ActiveStatus { - ACTIVE(0), - INACTIVE(1); - - private int status; - - ActiveStatus(int status) { - this.status = status; - } - - public int getStatus() { - return status; - } - - public ActiveStatus fromInteger(int status) { - switch (status) { - case 0: - return ACTIVE; - case 1: - return INACTIVE; - default: - throw new RuntimeException("Unsupported Active Status"); - } - } -} diff --git a/dmp-backend/data/src/main/java/eu/eudat/data/query/items/dmpblueprint/DataManagementPlanBlueprintTableRequest.java b/dmp-backend/data/src/main/java/eu/eudat/data/query/items/dmpblueprint/DataManagementPlanBlueprintTableRequest.java index 388a024a7..d3fac4120 100644 --- a/dmp-backend/data/src/main/java/eu/eudat/data/query/items/dmpblueprint/DataManagementPlanBlueprintTableRequest.java +++ b/dmp-backend/data/src/main/java/eu/eudat/data/query/items/dmpblueprint/DataManagementPlanBlueprintTableRequest.java @@ -1,7 +1,7 @@ package eu.eudat.data.query.items.dmpblueprint; import eu.eudat.data.dao.criteria.DataManagementPlanBlueprintCriteria; -import eu.eudat.data.entities.DMPProfile; +import eu.eudat.data.old.DMPProfile; import eu.eudat.data.query.PaginationService; import eu.eudat.data.query.definition.TableQuery; import eu.eudat.queryable.QueryableList; diff --git a/dmp-backend/data/src/main/java/eu/eudat/data/query/items/item/dataset/DatasetWizardAutocompleteRequest.java b/dmp-backend/data/src/main/java/eu/eudat/data/query/items/item/dataset/DatasetWizardAutocompleteRequest.java index cd02e9e2e..123c962b3 100644 --- a/dmp-backend/data/src/main/java/eu/eudat/data/query/items/item/dataset/DatasetWizardAutocompleteRequest.java +++ b/dmp-backend/data/src/main/java/eu/eudat/data/query/items/item/dataset/DatasetWizardAutocompleteRequest.java @@ -1,13 +1,10 @@ package eu.eudat.data.query.items.item.dataset; import eu.eudat.data.dao.criteria.DatasetWizardUserDmpCriteria; -import eu.eudat.data.entities.DMP; +import eu.eudat.data.old.DMP; import eu.eudat.data.query.definition.Query; import eu.eudat.queryable.QueryableList; -import java.util.UUID; - - public class DatasetWizardAutocompleteRequest extends Query { @Override public QueryableList applyCriteria() { diff --git a/dmp-backend/data/src/main/java/eu/eudat/data/query/items/item/datasetprofile/DatasetProfileAutocompleteRequest.java b/dmp-backend/data/src/main/java/eu/eudat/data/query/items/item/datasetprofile/DatasetProfileAutocompleteRequest.java index 984d44073..59fa5ad31 100644 --- a/dmp-backend/data/src/main/java/eu/eudat/data/query/items/item/datasetprofile/DatasetProfileAutocompleteRequest.java +++ b/dmp-backend/data/src/main/java/eu/eudat/data/query/items/item/datasetprofile/DatasetProfileAutocompleteRequest.java @@ -1,7 +1,7 @@ package eu.eudat.data.query.items.item.datasetprofile; import eu.eudat.data.dao.criteria.DatasetProfileCriteria; -import eu.eudat.data.entities.DescriptionTemplate; +import eu.eudat.data.old.DescriptionTemplate; import eu.eudat.data.query.PaginationService; import eu.eudat.data.query.definition.TableQuery; import eu.eudat.queryable.QueryableList; diff --git a/dmp-backend/data/src/main/java/eu/eudat/data/query/items/item/datasetprofile/DatasetProfileWizardAutocompleteRequest.java b/dmp-backend/data/src/main/java/eu/eudat/data/query/items/item/datasetprofile/DatasetProfileWizardAutocompleteRequest.java index c911fe3af..24c7e5ae7 100644 --- a/dmp-backend/data/src/main/java/eu/eudat/data/query/items/item/datasetprofile/DatasetProfileWizardAutocompleteRequest.java +++ b/dmp-backend/data/src/main/java/eu/eudat/data/query/items/item/datasetprofile/DatasetProfileWizardAutocompleteRequest.java @@ -1,7 +1,7 @@ package eu.eudat.data.query.items.item.datasetprofile; import eu.eudat.data.dao.criteria.DatasetProfileWizardCriteria; -import eu.eudat.data.entities.DescriptionTemplate; +import eu.eudat.data.old.DescriptionTemplate; import eu.eudat.data.query.definition.Query; import eu.eudat.queryable.QueryableList; diff --git a/dmp-backend/data/src/main/java/eu/eudat/data/query/items/item/dmp/DataManagementPlanCriteriaRequest.java b/dmp-backend/data/src/main/java/eu/eudat/data/query/items/item/dmp/DataManagementPlanCriteriaRequest.java index 4ecc13a4c..126bc5e84 100644 --- a/dmp-backend/data/src/main/java/eu/eudat/data/query/items/item/dmp/DataManagementPlanCriteriaRequest.java +++ b/dmp-backend/data/src/main/java/eu/eudat/data/query/items/item/dmp/DataManagementPlanCriteriaRequest.java @@ -1,15 +1,13 @@ package eu.eudat.data.query.items.item.dmp; import eu.eudat.data.dao.criteria.DataManagementPlanCriteria; -import eu.eudat.data.entities.DMP; +import eu.eudat.data.old.DMP; import eu.eudat.data.query.definition.Query; import eu.eudat.queryable.QueryableList; import eu.eudat.queryable.types.FieldSelectionType; import eu.eudat.queryable.types.SelectionField; import java.util.Arrays; -import java.util.UUID; - public class DataManagementPlanCriteriaRequest extends Query { @Override diff --git a/dmp-backend/data/src/main/java/eu/eudat/data/query/items/item/dmpprofile/DataManagementPlanProfileCriteriaRequest.java b/dmp-backend/data/src/main/java/eu/eudat/data/query/items/item/dmpprofile/DataManagementPlanProfileCriteriaRequest.java index a87d09532..0382b2ce3 100644 --- a/dmp-backend/data/src/main/java/eu/eudat/data/query/items/item/dmpprofile/DataManagementPlanProfileCriteriaRequest.java +++ b/dmp-backend/data/src/main/java/eu/eudat/data/query/items/item/dmpprofile/DataManagementPlanProfileCriteriaRequest.java @@ -1,7 +1,7 @@ package eu.eudat.data.query.items.item.dmpprofile; import eu.eudat.data.dao.criteria.DataManagementPlanProfileCriteria; -import eu.eudat.data.entities.DMPProfile; +import eu.eudat.data.old.DMPProfile; import eu.eudat.data.query.definition.Query; import eu.eudat.queryable.QueryableList; diff --git a/dmp-backend/data/src/main/java/eu/eudat/data/query/items/item/funder/FunderCriteriaRequest.java b/dmp-backend/data/src/main/java/eu/eudat/data/query/items/item/funder/FunderCriteriaRequest.java index 49e5a4ef5..b5893c2a4 100644 --- a/dmp-backend/data/src/main/java/eu/eudat/data/query/items/item/funder/FunderCriteriaRequest.java +++ b/dmp-backend/data/src/main/java/eu/eudat/data/query/items/item/funder/FunderCriteriaRequest.java @@ -1,7 +1,7 @@ package eu.eudat.data.query.items.item.funder; import eu.eudat.data.dao.criteria.FunderCriteria; -import eu.eudat.data.entities.Funder; +import eu.eudat.data.old.Funder; import eu.eudat.data.query.definition.Query; import eu.eudat.queryable.QueryableList; diff --git a/dmp-backend/data/src/main/java/eu/eudat/data/query/items/item/grant/GrantCriteriaRequest.java b/dmp-backend/data/src/main/java/eu/eudat/data/query/items/item/grant/GrantCriteriaRequest.java index b2f0bde72..8182cf3c1 100644 --- a/dmp-backend/data/src/main/java/eu/eudat/data/query/items/item/grant/GrantCriteriaRequest.java +++ b/dmp-backend/data/src/main/java/eu/eudat/data/query/items/item/grant/GrantCriteriaRequest.java @@ -1,7 +1,7 @@ package eu.eudat.data.query.items.item.grant; import eu.eudat.data.dao.criteria.GrantCriteria; -import eu.eudat.data.entities.Grant; +import eu.eudat.data.old.Grant; import eu.eudat.data.query.definition.Query; import eu.eudat.queryable.QueryableList; diff --git a/dmp-backend/data/src/main/java/eu/eudat/data/query/items/item/lock/LockCriteriaRequest.java b/dmp-backend/data/src/main/java/eu/eudat/data/query/items/item/lock/LockCriteriaRequest.java index 40208dd92..ab13fc6ff 100644 --- a/dmp-backend/data/src/main/java/eu/eudat/data/query/items/item/lock/LockCriteriaRequest.java +++ b/dmp-backend/data/src/main/java/eu/eudat/data/query/items/item/lock/LockCriteriaRequest.java @@ -1,7 +1,7 @@ package eu.eudat.data.query.items.item.lock; import eu.eudat.data.dao.criteria.LockCriteria; -import eu.eudat.data.entities.Lock; +import eu.eudat.data.old.Lock; import eu.eudat.data.query.definition.Query; import eu.eudat.queryable.QueryableList; diff --git a/dmp-backend/data/src/main/java/eu/eudat/data/query/items/item/project/ProjectCriteriaRequest.java b/dmp-backend/data/src/main/java/eu/eudat/data/query/items/item/project/ProjectCriteriaRequest.java index 5a66ebcd5..cb780ec8e 100644 --- a/dmp-backend/data/src/main/java/eu/eudat/data/query/items/item/project/ProjectCriteriaRequest.java +++ b/dmp-backend/data/src/main/java/eu/eudat/data/query/items/item/project/ProjectCriteriaRequest.java @@ -1,7 +1,7 @@ package eu.eudat.data.query.items.item.project; import eu.eudat.data.dao.criteria.ProjectCriteria; -import eu.eudat.data.entities.Project; +import eu.eudat.data.old.Project; import eu.eudat.data.query.definition.Query; import eu.eudat.queryable.QueryableList; diff --git a/dmp-backend/data/src/main/java/eu/eudat/data/query/items/item/researcher/ResearcherCriteriaRequest.java b/dmp-backend/data/src/main/java/eu/eudat/data/query/items/item/researcher/ResearcherCriteriaRequest.java index 5e80f3cbc..7fb8355e4 100644 --- a/dmp-backend/data/src/main/java/eu/eudat/data/query/items/item/researcher/ResearcherCriteriaRequest.java +++ b/dmp-backend/data/src/main/java/eu/eudat/data/query/items/item/researcher/ResearcherCriteriaRequest.java @@ -1,12 +1,10 @@ package eu.eudat.data.query.items.item.researcher; import eu.eudat.data.dao.criteria.ResearcherCriteria; -import eu.eudat.data.entities.Researcher; +import eu.eudat.data.old.Researcher; import eu.eudat.data.query.definition.Query; import eu.eudat.queryable.QueryableList; -import java.util.UUID; - /** * Created by ikalyvas on 3/6/2018. */ diff --git a/dmp-backend/data/src/main/java/eu/eudat/data/query/items/item/userinfo/UserInfoRequestItem.java b/dmp-backend/data/src/main/java/eu/eudat/data/query/items/item/userinfo/UserInfoRequestItem.java index c7dcbff8d..74eaf0d79 100644 --- a/dmp-backend/data/src/main/java/eu/eudat/data/query/items/item/userinfo/UserInfoRequestItem.java +++ b/dmp-backend/data/src/main/java/eu/eudat/data/query/items/item/userinfo/UserInfoRequestItem.java @@ -1,7 +1,7 @@ package eu.eudat.data.query.items.item.userinfo; import eu.eudat.data.dao.criteria.UserInfoCriteria; -import eu.eudat.data.entities.UserInfo; +import eu.eudat.data.old.UserInfo; import eu.eudat.data.query.definition.Query; import eu.eudat.queryable.QueryableList; diff --git a/dmp-backend/data/src/main/java/eu/eudat/data/query/items/table/dataset/DatasetPublicTableRequest.java b/dmp-backend/data/src/main/java/eu/eudat/data/query/items/table/dataset/DatasetPublicTableRequest.java index 6aa363095..b0d4e91a1 100644 --- a/dmp-backend/data/src/main/java/eu/eudat/data/query/items/table/dataset/DatasetPublicTableRequest.java +++ b/dmp-backend/data/src/main/java/eu/eudat/data/query/items/table/dataset/DatasetPublicTableRequest.java @@ -1,7 +1,7 @@ package eu.eudat.data.query.items.table.dataset; import eu.eudat.data.dao.criteria.DatasetPublicCriteria; -import eu.eudat.data.entities.Dataset; +import eu.eudat.data.old.Dataset; import eu.eudat.data.query.definition.TableQuery; import eu.eudat.queryable.QueryableList; import eu.eudat.queryable.types.FieldSelectionType; diff --git a/dmp-backend/data/src/main/java/eu/eudat/data/query/items/table/dataset/DatasetTableRequest.java b/dmp-backend/data/src/main/java/eu/eudat/data/query/items/table/dataset/DatasetTableRequest.java index a752014cd..aa0350107 100644 --- a/dmp-backend/data/src/main/java/eu/eudat/data/query/items/table/dataset/DatasetTableRequest.java +++ b/dmp-backend/data/src/main/java/eu/eudat/data/query/items/table/dataset/DatasetTableRequest.java @@ -1,7 +1,7 @@ package eu.eudat.data.query.items.table.dataset; import eu.eudat.data.dao.criteria.DatasetCriteria; -import eu.eudat.data.entities.Dataset; +import eu.eudat.data.old.Dataset; import eu.eudat.data.query.definition.TableQuery; import eu.eudat.queryable.QueryableList; import eu.eudat.queryable.types.FieldSelectionType; @@ -10,7 +10,7 @@ import eu.eudat.queryable.types.SelectionField; import java.util.Arrays; import java.util.UUID; -public class DatasetTableRequest extends TableQuery { +public class DatasetTableRequest extends TableQuery { @Override public QueryableList applyCriteria() { QueryableList query = this.getQuery(); diff --git a/dmp-backend/data/src/main/java/eu/eudat/data/query/items/table/datasetprofile/DatasetProfileTableRequestItem.java b/dmp-backend/data/src/main/java/eu/eudat/data/query/items/table/datasetprofile/DatasetProfileTableRequestItem.java index 17ad2a687..9bf4639db 100644 --- a/dmp-backend/data/src/main/java/eu/eudat/data/query/items/table/datasetprofile/DatasetProfileTableRequestItem.java +++ b/dmp-backend/data/src/main/java/eu/eudat/data/query/items/table/datasetprofile/DatasetProfileTableRequestItem.java @@ -1,7 +1,7 @@ package eu.eudat.data.query.items.table.datasetprofile; import eu.eudat.data.dao.criteria.DatasetProfileCriteria; -import eu.eudat.data.entities.DescriptionTemplate; +import eu.eudat.data.old.DescriptionTemplate; import eu.eudat.data.query.definition.TableQuery; import eu.eudat.queryable.QueryableList; diff --git a/dmp-backend/data/src/main/java/eu/eudat/data/query/items/table/dmp/DataManagementPlanTableRequest.java b/dmp-backend/data/src/main/java/eu/eudat/data/query/items/table/dmp/DataManagementPlanTableRequest.java index ed1849a2d..597bd4c4b 100644 --- a/dmp-backend/data/src/main/java/eu/eudat/data/query/items/table/dmp/DataManagementPlanTableRequest.java +++ b/dmp-backend/data/src/main/java/eu/eudat/data/query/items/table/dmp/DataManagementPlanTableRequest.java @@ -1,7 +1,7 @@ package eu.eudat.data.query.items.table.dmp; import eu.eudat.data.dao.criteria.DataManagementPlanCriteria; -import eu.eudat.data.entities.DMP; +import eu.eudat.data.old.DMP; import eu.eudat.data.query.PaginationService; import eu.eudat.data.query.definition.TableQuery; import eu.eudat.queryable.QueryableList; diff --git a/dmp-backend/data/src/main/java/eu/eudat/data/query/items/table/dmp/DataManagmentPlanPublicTableRequest.java b/dmp-backend/data/src/main/java/eu/eudat/data/query/items/table/dmp/DataManagmentPlanPublicTableRequest.java index f359fcb4b..e296f8798 100644 --- a/dmp-backend/data/src/main/java/eu/eudat/data/query/items/table/dmp/DataManagmentPlanPublicTableRequest.java +++ b/dmp-backend/data/src/main/java/eu/eudat/data/query/items/table/dmp/DataManagmentPlanPublicTableRequest.java @@ -1,7 +1,7 @@ package eu.eudat.data.query.items.table.dmp; import eu.eudat.data.dao.criteria.DataManagementPlanPublicCriteria; -import eu.eudat.data.entities.DMP; +import eu.eudat.data.old.DMP; import eu.eudat.data.query.PaginationService; import eu.eudat.data.query.definition.TableQuery; import eu.eudat.queryable.QueryableList; diff --git a/dmp-backend/data/src/main/java/eu/eudat/data/query/items/table/dmpprofile/DataManagementPlanProfileTableRequest.java b/dmp-backend/data/src/main/java/eu/eudat/data/query/items/table/dmpprofile/DataManagementPlanProfileTableRequest.java index c06cd3867..9cad8dc8c 100644 --- a/dmp-backend/data/src/main/java/eu/eudat/data/query/items/table/dmpprofile/DataManagementPlanProfileTableRequest.java +++ b/dmp-backend/data/src/main/java/eu/eudat/data/query/items/table/dmpprofile/DataManagementPlanProfileTableRequest.java @@ -1,7 +1,7 @@ package eu.eudat.data.query.items.table.dmpprofile; import eu.eudat.data.dao.criteria.DataManagementPlanProfileCriteria; -import eu.eudat.data.entities.DMPProfile; +import eu.eudat.data.old.DMPProfile; import eu.eudat.data.query.PaginationService; import eu.eudat.data.query.definition.TableQuery; import eu.eudat.queryable.QueryableList; diff --git a/dmp-backend/data/src/main/java/eu/eudat/data/query/items/table/externaldataset/ExternalDatasetTableRequest.java b/dmp-backend/data/src/main/java/eu/eudat/data/query/items/table/externaldataset/ExternalDatasetTableRequest.java index 1c0c4199b..cdedd781d 100644 --- a/dmp-backend/data/src/main/java/eu/eudat/data/query/items/table/externaldataset/ExternalDatasetTableRequest.java +++ b/dmp-backend/data/src/main/java/eu/eudat/data/query/items/table/externaldataset/ExternalDatasetTableRequest.java @@ -1,8 +1,7 @@ package eu.eudat.data.query.items.table.externaldataset; import eu.eudat.data.dao.criteria.ExternalDatasetCriteria; -import eu.eudat.data.entities.ExternalDataset; -import eu.eudat.data.query.definition.Query; +import eu.eudat.data.old.ExternalDataset; import eu.eudat.data.query.definition.TableQuery; import eu.eudat.queryable.QueryableList; diff --git a/dmp-backend/data/src/main/java/eu/eudat/data/query/items/table/grant/GrantTableRequest.java b/dmp-backend/data/src/main/java/eu/eudat/data/query/items/table/grant/GrantTableRequest.java index 223566e95..0162f8c6b 100644 --- a/dmp-backend/data/src/main/java/eu/eudat/data/query/items/table/grant/GrantTableRequest.java +++ b/dmp-backend/data/src/main/java/eu/eudat/data/query/items/table/grant/GrantTableRequest.java @@ -1,7 +1,7 @@ package eu.eudat.data.query.items.table.grant; import eu.eudat.data.dao.criteria.GrantCriteria; -import eu.eudat.data.entities.Grant; +import eu.eudat.data.old.Grant; import eu.eudat.data.query.definition.TableQuery; import eu.eudat.queryable.QueryableList; diff --git a/dmp-backend/data/src/main/java/eu/eudat/data/query/items/table/lock/LockTableRequest.java b/dmp-backend/data/src/main/java/eu/eudat/data/query/items/table/lock/LockTableRequest.java index f2ccf8955..3d4616bd4 100644 --- a/dmp-backend/data/src/main/java/eu/eudat/data/query/items/table/lock/LockTableRequest.java +++ b/dmp-backend/data/src/main/java/eu/eudat/data/query/items/table/lock/LockTableRequest.java @@ -1,9 +1,8 @@ package eu.eudat.data.query.items.table.lock; import eu.eudat.data.dao.criteria.LockCriteria; -import eu.eudat.data.entities.Lock; +import eu.eudat.data.old.Lock; import eu.eudat.data.query.PaginationService; -import eu.eudat.data.query.definition.Query; import eu.eudat.data.query.definition.TableQuery; import eu.eudat.queryable.QueryableList; diff --git a/dmp-backend/data/src/main/java/eu/eudat/data/query/items/table/organisations/OrganisationsTableRequest.java b/dmp-backend/data/src/main/java/eu/eudat/data/query/items/table/organisations/OrganisationsTableRequest.java index 360d1683b..3c0e6f86c 100644 --- a/dmp-backend/data/src/main/java/eu/eudat/data/query/items/table/organisations/OrganisationsTableRequest.java +++ b/dmp-backend/data/src/main/java/eu/eudat/data/query/items/table/organisations/OrganisationsTableRequest.java @@ -1,7 +1,7 @@ package eu.eudat.data.query.items.table.organisations; import eu.eudat.data.dao.criteria.OrganisationCriteria; -import eu.eudat.data.entities.Organisation; +import eu.eudat.data.old.Organisation; import eu.eudat.data.query.PaginationService; import eu.eudat.data.query.definition.TableQuery; import eu.eudat.queryable.QueryableList; diff --git a/dmp-backend/data/src/main/java/eu/eudat/data/query/items/table/userinfo/UserInfoTableRequestItem.java b/dmp-backend/data/src/main/java/eu/eudat/data/query/items/table/userinfo/UserInfoTableRequestItem.java index a4a3fc38f..155e756bc 100644 --- a/dmp-backend/data/src/main/java/eu/eudat/data/query/items/table/userinfo/UserInfoTableRequestItem.java +++ b/dmp-backend/data/src/main/java/eu/eudat/data/query/items/table/userinfo/UserInfoTableRequestItem.java @@ -1,7 +1,7 @@ package eu.eudat.data.query.items.table.userinfo; import eu.eudat.data.dao.criteria.UserInfoCriteria; -import eu.eudat.data.entities.UserInfo; +import eu.eudat.data.old.UserInfo; import eu.eudat.data.query.definition.TableQuery; import eu.eudat.queryable.QueryableList; diff --git a/dmp-backend/data/src/main/java/eu/eudat/query/DMPQuery.java b/dmp-backend/data/src/main/java/eu/eudat/query/DMPQuery.java index d47412e99..78d088ca7 100644 --- a/dmp-backend/data/src/main/java/eu/eudat/query/DMPQuery.java +++ b/dmp-backend/data/src/main/java/eu/eudat/query/DMPQuery.java @@ -1,10 +1,10 @@ package eu.eudat.query; import eu.eudat.data.dao.DatabaseAccessLayer; -import eu.eudat.data.entities.DMP; -import eu.eudat.data.entities.Dataset; -import eu.eudat.data.entities.Grant; -import eu.eudat.data.entities.UserInfo; +import eu.eudat.data.old.DMP; +import eu.eudat.data.old.Dataset; +import eu.eudat.data.old.Grant; +import eu.eudat.data.old.UserInfo; import eu.eudat.queryable.QueryableList; import eu.eudat.queryable.types.FieldSelectionType; import eu.eudat.queryable.types.SelectionField; diff --git a/dmp-backend/data/src/main/java/eu/eudat/query/DatasetQuery.java b/dmp-backend/data/src/main/java/eu/eudat/query/DatasetQuery.java index aecf08155..b3f5f7164 100644 --- a/dmp-backend/data/src/main/java/eu/eudat/query/DatasetQuery.java +++ b/dmp-backend/data/src/main/java/eu/eudat/query/DatasetQuery.java @@ -1,8 +1,8 @@ package eu.eudat.query; import eu.eudat.data.dao.DatabaseAccessLayer; -import eu.eudat.data.entities.DMP; -import eu.eudat.data.entities.Dataset; +import eu.eudat.data.old.DMP; +import eu.eudat.data.old.Dataset; import eu.eudat.queryable.QueryableList; import eu.eudat.queryable.types.FieldSelectionType; import eu.eudat.queryable.types.SelectionField; diff --git a/dmp-backend/data/src/main/java/eu/eudat/query/GrantQuery.java b/dmp-backend/data/src/main/java/eu/eudat/query/GrantQuery.java index d48365036..cb078f982 100644 --- a/dmp-backend/data/src/main/java/eu/eudat/query/GrantQuery.java +++ b/dmp-backend/data/src/main/java/eu/eudat/query/GrantQuery.java @@ -1,8 +1,8 @@ package eu.eudat.query; import eu.eudat.data.dao.DatabaseAccessLayer; -import eu.eudat.data.entities.Grant; -import eu.eudat.data.entities.UserInfo; +import eu.eudat.data.old.Grant; +import eu.eudat.data.old.UserInfo; import eu.eudat.queryable.QueryableList; import eu.eudat.queryable.types.FieldSelectionType; import eu.eudat.queryable.types.SelectionField; diff --git a/dmp-backend/data/src/main/java/eu/eudat/query/LockQuery.java b/dmp-backend/data/src/main/java/eu/eudat/query/LockQuery.java index 8f58687de..1e6851e4c 100644 --- a/dmp-backend/data/src/main/java/eu/eudat/query/LockQuery.java +++ b/dmp-backend/data/src/main/java/eu/eudat/query/LockQuery.java @@ -1,8 +1,8 @@ package eu.eudat.query; import eu.eudat.data.dao.DatabaseAccessLayer; -import eu.eudat.data.entities.Lock; -import eu.eudat.data.entities.UserInfo; +import eu.eudat.data.old.Lock; +import eu.eudat.data.old.UserInfo; import eu.eudat.queryable.QueryableList; import eu.eudat.queryable.types.FieldSelectionType; import eu.eudat.queryable.types.SelectionField; diff --git a/dmp-backend/data/src/main/java/eu/eudat/query/UserQuery.java b/dmp-backend/data/src/main/java/eu/eudat/query/UserQuery.java index f6240b7c3..a4246c20b 100644 --- a/dmp-backend/data/src/main/java/eu/eudat/query/UserQuery.java +++ b/dmp-backend/data/src/main/java/eu/eudat/query/UserQuery.java @@ -1,7 +1,7 @@ package eu.eudat.query; import eu.eudat.data.dao.DatabaseAccessLayer; -import eu.eudat.data.entities.UserInfo; +import eu.eudat.data.old.UserInfo; import eu.eudat.queryable.QueryableList; import java.util.List; diff --git a/dmp-backend/web/src/main/java/eu/eudat/controllers/Admin.java b/dmp-backend/web/src/main/java/eu/eudat/controllers/Admin.java index 85202a611..28e885c0c 100644 --- a/dmp-backend/web/src/main/java/eu/eudat/controllers/Admin.java +++ b/dmp-backend/web/src/main/java/eu/eudat/controllers/Admin.java @@ -1,8 +1,8 @@ package eu.eudat.controllers; -import eu.eudat.data.entities.DescriptionTemplate; -import eu.eudat.data.entities.UserDatasetProfile; -import eu.eudat.data.entities.UserInfo; +import eu.eudat.data.old.DescriptionTemplate; +import eu.eudat.data.old.UserDatasetProfile; +import eu.eudat.data.old.UserInfo; import eu.eudat.data.query.items.table.datasetprofile.DatasetProfileTableRequestItem; import eu.eudat.exceptions.datasetprofile.DatasetProfileNewVersionException; import eu.eudat.exceptions.datasetprofile.DatasetProfileWithDatasetsExeption; diff --git a/dmp-backend/web/src/main/java/eu/eudat/controllers/DMPProfileController.java b/dmp-backend/web/src/main/java/eu/eudat/controllers/DMPProfileController.java index 495d80f72..ace473c77 100644 --- a/dmp-backend/web/src/main/java/eu/eudat/controllers/DMPProfileController.java +++ b/dmp-backend/web/src/main/java/eu/eudat/controllers/DMPProfileController.java @@ -1,8 +1,8 @@ package eu.eudat.controllers; import eu.eudat.data.dao.criteria.RequestItem; -import eu.eudat.data.entities.DMPProfile; -import eu.eudat.data.entities.DescriptionTemplate; +import eu.eudat.data.old.DMPProfile; +import eu.eudat.data.old.DescriptionTemplate; import eu.eudat.data.query.items.dmpblueprint.DataManagementPlanBlueprintTableRequest; import eu.eudat.data.query.items.table.dmpprofile.DataManagementPlanProfileTableRequest; import eu.eudat.exceptions.dmpblueprint.DmpBlueprintUsedException; @@ -30,7 +30,6 @@ import java.io.IOException; import java.util.List; import static eu.eudat.types.Authorities.ADMIN; -import static eu.eudat.types.Authorities.DATASET_PROFILE_MANAGER; /** * Created by ikalyvas on 3/21/2018. diff --git a/dmp-backend/web/src/main/java/eu/eudat/controllers/DMPs.java b/dmp-backend/web/src/main/java/eu/eudat/controllers/DMPs.java index edb3fac48..2b4e85dd2 100644 --- a/dmp-backend/web/src/main/java/eu/eudat/controllers/DMPs.java +++ b/dmp-backend/web/src/main/java/eu/eudat/controllers/DMPs.java @@ -5,8 +5,8 @@ import eu.eudat.configurations.dynamicgrant.DynamicGrantConfiguration; import eu.eudat.criteria.DMPCriteria; import eu.eudat.data.dao.criteria.DynamicFieldsCriteria; import eu.eudat.data.dao.criteria.RequestItem; -import eu.eudat.data.entities.DMP; -import eu.eudat.data.entities.Dataset; +import eu.eudat.data.old.DMP; +import eu.eudat.data.old.Dataset; import eu.eudat.data.query.items.table.datasetprofile.DatasetProfileTableRequestItem; import eu.eudat.data.query.items.table.dmp.DataManagementPlanTableRequest; import eu.eudat.exceptions.datamanagementplan.DMPNewVersionException; @@ -342,7 +342,7 @@ public class DMPs extends BaseController { public @ResponseBody ResponseEntity> generateIndex(Principal principal) throws Exception { this.dataManagementPlanManager.generateIndex(principal); - return ResponseEntity.status(HttpStatus.OK).body(new ResponseItem().status(ApiMessageCode.SUCCESS_MESSAGE).message("Generated").payload(null)); + return ResponseEntity.status(HttpStatus.OK).body(new ResponseItem().status(ApiMessageCode.SUCCESS_MESSAGE).message("Generated").payload(null)); } @Transactional @@ -350,7 +350,7 @@ public class DMPs extends BaseController { public @ResponseBody ResponseEntity> clearIndex(Principal principal) throws Exception { this.dataManagementPlanManager.clearIndex(principal); - return ResponseEntity.status(HttpStatus.OK).body(new ResponseItem().status(ApiMessageCode.SUCCESS_MESSAGE).message("Cleared").payload(null)); + return ResponseEntity.status(HttpStatus.OK).body(new ResponseItem().status(ApiMessageCode.SUCCESS_MESSAGE).message("Cleared").payload(null)); } /* diff --git a/dmp-backend/web/src/main/java/eu/eudat/controllers/DataRepositories.java b/dmp-backend/web/src/main/java/eu/eudat/controllers/DataRepositories.java index f6bfed9d3..9b765d255 100644 --- a/dmp-backend/web/src/main/java/eu/eudat/controllers/DataRepositories.java +++ b/dmp-backend/web/src/main/java/eu/eudat/controllers/DataRepositories.java @@ -1,6 +1,6 @@ package eu.eudat.controllers; -import eu.eudat.data.entities.DataRepository; +import eu.eudat.data.old.DataRepository; import eu.eudat.logic.managers.DataRepositoryManager; import eu.eudat.logic.proxy.config.exceptions.HugeResultSet; import eu.eudat.logic.proxy.config.exceptions.NoURLFound; diff --git a/dmp-backend/web/src/main/java/eu/eudat/controllers/DatasetProfileController.java b/dmp-backend/web/src/main/java/eu/eudat/controllers/DatasetProfileController.java index cffa509ef..7111eff0a 100644 --- a/dmp-backend/web/src/main/java/eu/eudat/controllers/DatasetProfileController.java +++ b/dmp-backend/web/src/main/java/eu/eudat/controllers/DatasetProfileController.java @@ -1,7 +1,7 @@ package eu.eudat.controllers; import eu.eudat.data.dao.criteria.RequestItem; -import eu.eudat.data.entities.DescriptionTemplate; +import eu.eudat.data.old.DescriptionTemplate; import eu.eudat.logic.managers.AdminManager; import eu.eudat.logic.managers.DatasetProfileManager; import eu.eudat.logic.security.claims.ClaimedAuthorities; @@ -11,9 +11,7 @@ import eu.eudat.models.data.externaldataset.ExternalAutocompleteFieldModel; import eu.eudat.models.data.helpers.common.AutoCompleteLookupItem; import eu.eudat.models.data.helpers.common.AutoCompleteOptionsLookupItem; import eu.eudat.models.data.helpers.responses.ResponseItem; -import eu.eudat.models.data.properties.PropertiesModel; import eu.eudat.models.data.security.Principal; -import org.json.JSONObject; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.http.HttpStatus; import org.springframework.http.ResponseEntity; @@ -21,9 +19,7 @@ import org.springframework.transaction.annotation.Transactional; import org.springframework.web.bind.annotation.*; import javax.xml.xpath.XPathExpressionException; -import java.util.HashMap; import java.util.List; -import java.util.Map; import java.util.UUID; import static eu.eudat.types.Authorities.ADMIN; @@ -44,7 +40,7 @@ public class DatasetProfileController extends BaseController { /* @Transactional @RequestMapping(method = RequestMethod.POST, value = {"/datasetprofile/save/{id}"}, consumes = "application/json", produces = "application/json") public ResponseEntity updateDataset(@PathVariable String id, @RequestBody PropertiesModel properties) { - eu.eudat.data.entities.Dataset dataset = this.getApiContext().getOperationsContext().getDatabaseRepository().getDatasetDao().find(UUID.fromString(id)); + eu.eudat.data.old.Dataset dataset = this.getApiContext().getOperationsContext().getDatabaseRepository().getDatasetDao().find(UUID.fromString(id)); Map values = new HashMap<>(); properties.toMap(values); JSONObject jobject = new JSONObject(values); diff --git a/dmp-backend/web/src/main/java/eu/eudat/controllers/Datasets.java b/dmp-backend/web/src/main/java/eu/eudat/controllers/Datasets.java index 487f70d80..fa8818c3c 100644 --- a/dmp-backend/web/src/main/java/eu/eudat/controllers/Datasets.java +++ b/dmp-backend/web/src/main/java/eu/eudat/controllers/Datasets.java @@ -1,7 +1,7 @@ package eu.eudat.controllers; -import eu.eudat.data.entities.Dataset; -import eu.eudat.data.entities.DescriptionTemplate; +import eu.eudat.data.old.Dataset; +import eu.eudat.data.old.DescriptionTemplate; import eu.eudat.data.query.items.item.dataset.DatasetWizardAutocompleteRequest; import eu.eudat.data.query.items.item.datasetprofile.DatasetProfileWizardAutocompleteRequest; import eu.eudat.data.query.items.table.dataset.DatasetPublicTableRequest; @@ -331,7 +331,7 @@ public class Datasets extends BaseController { public @ResponseBody ResponseEntity> generateIndex(Principal principal) throws Exception { this.datasetManager.generateIndex(principal); - return ResponseEntity.status(HttpStatus.OK).body(new ResponseItem().status(ApiMessageCode.SUCCESS_MESSAGE).message("Generated").payload(null)); + return ResponseEntity.status(HttpStatus.OK).body(new ResponseItem().status(ApiMessageCode.SUCCESS_MESSAGE).message("Generated").payload(null)); } @Transactional @@ -339,7 +339,7 @@ public class Datasets extends BaseController { public @ResponseBody ResponseEntity> clearIndex(Principal principal) throws Exception { this.datasetManager.clearIndex(principal); - return ResponseEntity.status(HttpStatus.OK).body(new ResponseItem().status(ApiMessageCode.SUCCESS_MESSAGE).message("Cleared").payload(null)); + return ResponseEntity.status(HttpStatus.OK).body(new ResponseItem().status(ApiMessageCode.SUCCESS_MESSAGE).message("Cleared").payload(null)); } diff --git a/dmp-backend/web/src/main/java/eu/eudat/controllers/ExternalDatasets.java b/dmp-backend/web/src/main/java/eu/eudat/controllers/ExternalDatasets.java index 642ff7f60..302437d92 100644 --- a/dmp-backend/web/src/main/java/eu/eudat/controllers/ExternalDatasets.java +++ b/dmp-backend/web/src/main/java/eu/eudat/controllers/ExternalDatasets.java @@ -1,13 +1,11 @@ package eu.eudat.controllers; -import eu.eudat.data.entities.ExternalDataset; +import eu.eudat.data.old.ExternalDataset; import eu.eudat.data.query.items.table.externaldataset.ExternalDatasetTableRequest; -import eu.eudat.logic.managers.DataRepositoryManager; import eu.eudat.logic.managers.ExternalDatasetManager; import eu.eudat.logic.proxy.config.exceptions.HugeResultSet; import eu.eudat.logic.proxy.config.exceptions.NoURLFound; import eu.eudat.logic.services.ApiContext; -import eu.eudat.models.data.datarepository.DataRepositoryModel; import eu.eudat.models.data.externaldataset.ExternalDatasetListingModel; import eu.eudat.models.data.helpers.common.DataTableData; import eu.eudat.models.data.helpers.responses.ResponseItem; diff --git a/dmp-backend/web/src/main/java/eu/eudat/controllers/FileController.java b/dmp-backend/web/src/main/java/eu/eudat/controllers/FileController.java index cfaae57e9..25be25026 100644 --- a/dmp-backend/web/src/main/java/eu/eudat/controllers/FileController.java +++ b/dmp-backend/web/src/main/java/eu/eudat/controllers/FileController.java @@ -3,7 +3,8 @@ package eu.eudat.controllers; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.databind.JsonNode; import com.fasterxml.jackson.databind.ObjectMapper; -import eu.eudat.data.entities.FileUpload; +import eu.eudat.data.old.Dataset; +import eu.eudat.data.old.FileUpload; import eu.eudat.exceptions.security.UnauthorisedException; import eu.eudat.logic.managers.DatasetProfileManager; import eu.eudat.logic.security.claims.ClaimedAuthorities; @@ -34,7 +35,6 @@ import java.io.*; import java.nio.file.Files; import java.util.*; import java.util.concurrent.atomic.AtomicBoolean; -import java.util.concurrent.atomic.AtomicReference; import java.util.stream.Collectors; @RestController @@ -144,7 +144,7 @@ public class FileController { } if(fileUpload.getEntityType().name().equals(FileUpload.EntityType.DATASET.name())) { - eu.eudat.data.entities.Dataset datasetEntity = databaseRepository.getDatasetDao().find(fileUpload.getEntityId(), HintedModelFactory.getHint(DatasetWizardModel.class)); + Dataset datasetEntity = databaseRepository.getDatasetDao().find(fileUpload.getEntityId(), HintedModelFactory.getHint(DatasetWizardModel.class)); if (datasetEntity == null) { throw new NoSuchElementException("No dataset with id " + fileUpload.getEntityId() + " found. This dataset was related to the file with id " + id); } diff --git a/dmp-backend/web/src/main/java/eu/eudat/controllers/Grants.java b/dmp-backend/web/src/main/java/eu/eudat/controllers/Grants.java index 66e518417..9b771ff7b 100644 --- a/dmp-backend/web/src/main/java/eu/eudat/controllers/Grants.java +++ b/dmp-backend/web/src/main/java/eu/eudat/controllers/Grants.java @@ -1,6 +1,5 @@ package eu.eudat.controllers; -import eu.eudat.data.entities.Grant; import eu.eudat.data.query.items.item.grant.GrantCriteriaRequest; import eu.eudat.data.query.items.table.grant.GrantTableRequest; import eu.eudat.logic.managers.GrantManager; @@ -18,10 +17,8 @@ import org.springframework.http.HttpStatus; import org.springframework.http.ResponseEntity; import org.springframework.web.bind.annotation.*; -import jakarta.transaction.Transactional; import jakarta.validation.Valid; -import java.io.IOException; -import java.text.ParseException; + import java.util.List; import static eu.eudat.types.Authorities.ANONYMOUS; @@ -65,7 +62,7 @@ public class Grants extends BaseController { public @ResponseBody ResponseEntity> addGrant(@Valid @RequestBody eu.eudat.models.data.grant.Grant grant, Principal principal) throws IOException, ParseException { this.grantManager.createOrUpdate(grant, principal); - return ResponseEntity.status(HttpStatus.OK).body(new ResponseItem().status(ApiMessageCode.SUCCESS_MESSAGE).message("Created")); + return ResponseEntity.status(HttpStatus.OK).body(new ResponseItem().status(ApiMessageCode.SUCCESS_MESSAGE).message("Created")); }*/ /*@Transactional @@ -73,7 +70,7 @@ public class Grants extends BaseController { public @ResponseBody ResponseEntity> inactivate(@PathVariable String id, Principal principal) throws IllegalAccessException, InstantiationException { this.grantManager.inactivate(id); - return ResponseEntity.status(HttpStatus.OK).body(new ResponseItem().status(ApiMessageCode.SUCCESS_MESSAGE)); + return ResponseEntity.status(HttpStatus.OK).body(new ResponseItem().status(ApiMessageCode.SUCCESS_MESSAGE)); }*/ @RequestMapping(method = RequestMethod.POST, value = {"/external"}, consumes = "application/json", produces = "application/json") diff --git a/dmp-backend/web/src/main/java/eu/eudat/controllers/JournalsController.java b/dmp-backend/web/src/main/java/eu/eudat/controllers/JournalsController.java index 5f597eb7c..437a8e761 100644 --- a/dmp-backend/web/src/main/java/eu/eudat/controllers/JournalsController.java +++ b/dmp-backend/web/src/main/java/eu/eudat/controllers/JournalsController.java @@ -1,6 +1,5 @@ package eu.eudat.controllers; -import eu.eudat.data.entities.DataRepository; import eu.eudat.logic.managers.DataRepositoryManager; import eu.eudat.logic.proxy.config.exceptions.HugeResultSet; import eu.eudat.logic.proxy.config.exceptions.NoURLFound; @@ -12,7 +11,6 @@ import eu.eudat.types.ApiMessageCode; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.http.HttpStatus; import org.springframework.http.ResponseEntity; -import org.springframework.transaction.annotation.Transactional; import org.springframework.web.bind.annotation.*; import java.util.List; diff --git a/dmp-backend/web/src/main/java/eu/eudat/controllers/LockController.java b/dmp-backend/web/src/main/java/eu/eudat/controllers/LockController.java index 7c47240e3..b4633e607 100644 --- a/dmp-backend/web/src/main/java/eu/eudat/controllers/LockController.java +++ b/dmp-backend/web/src/main/java/eu/eudat/controllers/LockController.java @@ -42,7 +42,7 @@ public class LockController { @Transactional @RequestMapping(method = RequestMethod.POST, consumes = "application/json", produces = "application/json") public @ResponseBody ResponseEntity> createOrUpdate(@RequestBody Lock lock, Principal principal) throws Exception { - eu.eudat.data.entities.Lock result = this.lockManager.createOrUpdate(lock, principal); + eu.eudat.data.old.Lock result = this.lockManager.createOrUpdate(lock, principal); return ResponseEntity.status(HttpStatus.OK).body(new ResponseItem().status(ApiMessageCode.SUCCESS_MESSAGE).message("Created").payload(result.getId())); } diff --git a/dmp-backend/web/src/main/java/eu/eudat/controllers/QuickWizardController.java b/dmp-backend/web/src/main/java/eu/eudat/controllers/QuickWizardController.java index d1df0cc55..ee82cb14d 100644 --- a/dmp-backend/web/src/main/java/eu/eudat/controllers/QuickWizardController.java +++ b/dmp-backend/web/src/main/java/eu/eudat/controllers/QuickWizardController.java @@ -1,9 +1,11 @@ package eu.eudat.controllers; -import eu.eudat.data.entities.DescriptionTemplate; -import eu.eudat.data.entities.Funder; -import eu.eudat.data.entities.Project; +import eu.eudat.data.old.DescriptionTemplate; +import eu.eudat.data.old.DMP; +import eu.eudat.data.old.Funder; +import eu.eudat.data.old.Project; +import eu.eudat.data.old.Grant; import eu.eudat.logic.managers.DatasetManager; import eu.eudat.logic.managers.QuickWizardManager; import eu.eudat.logic.services.ApiContext; @@ -55,7 +57,7 @@ public class QuickWizardController extends BaseController { funderEntity = quickWizard.getFunder().getExistFunder().toDataModel(); } - eu.eudat.data.entities.Grant grantEntity; + Grant grantEntity; //Create Grant if (quickWizard.getGrant() == null) { grantEntity = null; @@ -80,7 +82,7 @@ public class QuickWizardController extends BaseController { //Create Dmp DataManagementPlan dataManagementPlan = quickWizard.getDmp().toDataDmp(grantEntity, projectEntity, principal); - eu.eudat.data.entities.DMP dmpEntity = this.quickWizardManager.createOrUpdate(dataManagementPlan, funderEntity, principal); + DMP dmpEntity = this.quickWizardManager.createOrUpdate(dataManagementPlan, funderEntity, principal); //Create Datasets quickWizard.getDmp().setId(dmpEntity.getId()); diff --git a/dmp-backend/web/src/main/java/eu/eudat/controllers/Registries.java b/dmp-backend/web/src/main/java/eu/eudat/controllers/Registries.java index c0a5a58b9..04ddc71d7 100644 --- a/dmp-backend/web/src/main/java/eu/eudat/controllers/Registries.java +++ b/dmp-backend/web/src/main/java/eu/eudat/controllers/Registries.java @@ -1,6 +1,6 @@ package eu.eudat.controllers; -import eu.eudat.data.entities.Registry; +import eu.eudat.data.old.Registry; import eu.eudat.logic.managers.RegistryManager; import eu.eudat.logic.proxy.config.exceptions.HugeResultSet; import eu.eudat.logic.proxy.config.exceptions.NoURLFound; diff --git a/dmp-backend/web/src/main/java/eu/eudat/controllers/Services.java b/dmp-backend/web/src/main/java/eu/eudat/controllers/Services.java index d24928ca1..37146eef1 100644 --- a/dmp-backend/web/src/main/java/eu/eudat/controllers/Services.java +++ b/dmp-backend/web/src/main/java/eu/eudat/controllers/Services.java @@ -1,6 +1,6 @@ package eu.eudat.controllers; -import eu.eudat.data.entities.Service; +import eu.eudat.data.old.Service; import eu.eudat.logic.managers.ServiceManager; import eu.eudat.logic.proxy.config.exceptions.HugeResultSet; import eu.eudat.logic.proxy.config.exceptions.NoURLFound; diff --git a/dmp-backend/web/src/main/java/eu/eudat/controllers/Validation.java b/dmp-backend/web/src/main/java/eu/eudat/controllers/Validation.java index f9e26d6dd..96be70f48 100644 --- a/dmp-backend/web/src/main/java/eu/eudat/controllers/Validation.java +++ b/dmp-backend/web/src/main/java/eu/eudat/controllers/Validation.java @@ -1,24 +1,17 @@ package eu.eudat.controllers; -import eu.eudat.data.entities.Service; -import eu.eudat.logic.managers.ServiceManager; import eu.eudat.logic.managers.ValidationManager; import eu.eudat.logic.proxy.config.exceptions.HugeResultSet; import eu.eudat.logic.proxy.config.exceptions.NoURLFound; import eu.eudat.logic.services.ApiContext; import eu.eudat.models.data.helpers.responses.ResponseItem; import eu.eudat.models.data.security.Principal; -import eu.eudat.models.data.services.ServiceModel; import eu.eudat.types.ApiMessageCode; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.http.HttpStatus; import org.springframework.http.ResponseEntity; -import org.springframework.transaction.annotation.Transactional; import org.springframework.web.bind.annotation.*; -import java.util.List; - - @RestController @CrossOrigin @RequestMapping(value = {"/api"}) diff --git a/dmp-backend/web/src/main/java/eu/eudat/interceptors/UserInterceptor.java b/dmp-backend/web/src/main/java/eu/eudat/interceptors/UserInterceptor.java index 743281495..91e530259 100644 --- a/dmp-backend/web/src/main/java/eu/eudat/interceptors/UserInterceptor.java +++ b/dmp-backend/web/src/main/java/eu/eudat/interceptors/UserInterceptor.java @@ -5,8 +5,8 @@ import eu.eudat.commons.enums.ProviderType; import eu.eudat.commons.enums.IsActive; import eu.eudat.commons.scope.user.UserScope; import eu.eudat.data.CredentialEntity; -import eu.eudat.data.entities.UserInfo; -import eu.eudat.data.entities.UserRole; +import eu.eudat.data.old.UserInfo; +import eu.eudat.data.old.UserRole; import eu.eudat.exceptions.security.NullEmailException; import eu.eudat.types.Authorities; import gr.cite.commons.web.oidc.principal.CurrentPrincipalResolver; diff --git a/dmp-backend/web/src/main/java/eu/eudat/logic/builders/entity/ContentBuilder.java b/dmp-backend/web/src/main/java/eu/eudat/logic/builders/entity/ContentBuilder.java index 1a41fb5c5..6e180e6dd 100644 --- a/dmp-backend/web/src/main/java/eu/eudat/logic/builders/entity/ContentBuilder.java +++ b/dmp-backend/web/src/main/java/eu/eudat/logic/builders/entity/ContentBuilder.java @@ -1,7 +1,7 @@ package eu.eudat.logic.builders.entity; import eu.eudat.logic.builders.Builder; -import eu.eudat.data.entities.Content; +import eu.eudat.data.old.Content; import java.util.UUID; diff --git a/dmp-backend/web/src/main/java/eu/eudat/logic/builders/entity/CredentialBuilder.java b/dmp-backend/web/src/main/java/eu/eudat/logic/builders/entity/CredentialBuilder.java index 379b704e2..214195717 100644 --- a/dmp-backend/web/src/main/java/eu/eudat/logic/builders/entity/CredentialBuilder.java +++ b/dmp-backend/web/src/main/java/eu/eudat/logic/builders/entity/CredentialBuilder.java @@ -4,7 +4,7 @@ import eu.eudat.commons.enums.ProviderType; import eu.eudat.commons.enums.IsActive; import eu.eudat.data.CredentialEntity; import eu.eudat.logic.builders.Builder; -import eu.eudat.data.entities.UserInfo; +import eu.eudat.data.old.UserInfo; import java.util.Date; import java.util.UUID; diff --git a/dmp-backend/web/src/main/java/eu/eudat/logic/builders/entity/DatasetProfileBuilder.java b/dmp-backend/web/src/main/java/eu/eudat/logic/builders/entity/DatasetProfileBuilder.java index 6cd3c86aa..1ce744f9b 100644 --- a/dmp-backend/web/src/main/java/eu/eudat/logic/builders/entity/DatasetProfileBuilder.java +++ b/dmp-backend/web/src/main/java/eu/eudat/logic/builders/entity/DatasetProfileBuilder.java @@ -1,9 +1,9 @@ package eu.eudat.logic.builders.entity; -import eu.eudat.data.entities.DescriptionTemplate; +import eu.eudat.data.old.DescriptionTemplate; import eu.eudat.data.DescriptionTemplateTypeEntity; import eu.eudat.logic.builders.Builder; -import eu.eudat.data.entities.Dataset; +import eu.eudat.data.old.Dataset; import java.util.Date; import java.util.Set; diff --git a/dmp-backend/web/src/main/java/eu/eudat/logic/builders/entity/UserInfoBuilder.java b/dmp-backend/web/src/main/java/eu/eudat/logic/builders/entity/UserInfoBuilder.java index 29725bffb..0ab2ff17e 100644 --- a/dmp-backend/web/src/main/java/eu/eudat/logic/builders/entity/UserInfoBuilder.java +++ b/dmp-backend/web/src/main/java/eu/eudat/logic/builders/entity/UserInfoBuilder.java @@ -2,9 +2,9 @@ package eu.eudat.logic.builders.entity; import eu.eudat.data.CredentialEntity; import eu.eudat.logic.builders.Builder; -import eu.eudat.data.entities.DMP; -import eu.eudat.data.entities.UserInfo; -import eu.eudat.data.entities.UserRole; +import eu.eudat.data.old.DMP; +import eu.eudat.data.old.UserInfo; +import eu.eudat.data.old.UserRole; import java.util.Date; import java.util.HashSet; diff --git a/dmp-backend/web/src/main/java/eu/eudat/logic/builders/entity/UserRoleBuilder.java b/dmp-backend/web/src/main/java/eu/eudat/logic/builders/entity/UserRoleBuilder.java index e1d18b401..edae42fe2 100644 --- a/dmp-backend/web/src/main/java/eu/eudat/logic/builders/entity/UserRoleBuilder.java +++ b/dmp-backend/web/src/main/java/eu/eudat/logic/builders/entity/UserRoleBuilder.java @@ -1,8 +1,8 @@ package eu.eudat.logic.builders.entity; import eu.eudat.logic.builders.Builder; -import eu.eudat.data.entities.UserInfo; -import eu.eudat.data.entities.UserRole; +import eu.eudat.data.old.UserInfo; +import eu.eudat.data.old.UserRole; import java.util.UUID; diff --git a/dmp-backend/web/src/main/java/eu/eudat/logic/builders/model/models/FunderBuilder.java b/dmp-backend/web/src/main/java/eu/eudat/logic/builders/model/models/FunderBuilder.java index ae8414d49..3b5020ec2 100644 --- a/dmp-backend/web/src/main/java/eu/eudat/logic/builders/model/models/FunderBuilder.java +++ b/dmp-backend/web/src/main/java/eu/eudat/logic/builders/model/models/FunderBuilder.java @@ -12,7 +12,7 @@ public class FunderBuilder extends Builder { private String label; private String reference; private String definition; - private eu.eudat.data.entities.Funder.Status status; + private eu.eudat.data.old.Funder.Status status; private Date created; private Date modified; private Integer type; @@ -39,7 +39,7 @@ public class FunderBuilder extends Builder { return this; } - public FunderBuilder status(eu.eudat.data.entities.Funder.Status status) { + public FunderBuilder status(eu.eudat.data.old.Funder.Status status) { this.status = status; return this; } diff --git a/dmp-backend/web/src/main/java/eu/eudat/logic/builders/model/models/GrantBuilder.java b/dmp-backend/web/src/main/java/eu/eudat/logic/builders/model/models/GrantBuilder.java index cd8d57df2..14d717ade 100644 --- a/dmp-backend/web/src/main/java/eu/eudat/logic/builders/model/models/GrantBuilder.java +++ b/dmp-backend/web/src/main/java/eu/eudat/logic/builders/model/models/GrantBuilder.java @@ -1,7 +1,7 @@ package eu.eudat.logic.builders.model.models; import eu.eudat.logic.builders.Builder; -import eu.eudat.data.entities.UserInfo; +import eu.eudat.data.old.UserInfo; import eu.eudat.models.data.dmp.DataManagementPlan; import eu.eudat.models.data.grant.Grant; @@ -29,7 +29,7 @@ public class GrantBuilder extends Builder { private Date endDate; - private eu.eudat.data.entities.Grant.Status status; + private eu.eudat.data.old.Grant.Status status; private UserInfo creationUser; @@ -88,7 +88,7 @@ public class GrantBuilder extends Builder { return this; } - public GrantBuilder status(eu.eudat.data.entities.Grant.Status status) { + public GrantBuilder status(eu.eudat.data.old.Grant.Status status) { this.status = status; return this; } diff --git a/dmp-backend/web/src/main/java/eu/eudat/logic/builders/model/models/ProjectBuilder.java b/dmp-backend/web/src/main/java/eu/eudat/logic/builders/model/models/ProjectBuilder.java index a0560d5d5..dac2a1734 100644 --- a/dmp-backend/web/src/main/java/eu/eudat/logic/builders/model/models/ProjectBuilder.java +++ b/dmp-backend/web/src/main/java/eu/eudat/logic/builders/model/models/ProjectBuilder.java @@ -1,7 +1,7 @@ package eu.eudat.logic.builders.model.models; -import eu.eudat.data.entities.UserInfo; +import eu.eudat.data.old.UserInfo; import eu.eudat.logic.builders.Builder; import eu.eudat.models.data.dmp.DataManagementPlan; import eu.eudat.models.data.project.Project; @@ -22,7 +22,7 @@ public class ProjectBuilder extends Builder { private String definition; private Date startDate; private Date endDate; - private eu.eudat.data.entities.Project.Status status; + private eu.eudat.data.old.Project.Status status; private UserInfo creationUser; private Date created; private Date modified; @@ -80,7 +80,7 @@ public class ProjectBuilder extends Builder { return this; } - public ProjectBuilder status(eu.eudat.data.entities.Project.Status status) { + public ProjectBuilder status(eu.eudat.data.old.Project.Status status) { this.status = status; return this; } diff --git a/dmp-backend/web/src/main/java/eu/eudat/logic/managers/AdminManager.java b/dmp-backend/web/src/main/java/eu/eudat/logic/managers/AdminManager.java index 067f9860a..cbb0e3b7b 100644 --- a/dmp-backend/web/src/main/java/eu/eudat/logic/managers/AdminManager.java +++ b/dmp-backend/web/src/main/java/eu/eudat/logic/managers/AdminManager.java @@ -2,7 +2,7 @@ package eu.eudat.logic.managers; import eu.eudat.data.dao.entities.DatasetDao; import eu.eudat.data.dao.entities.DatasetProfileDao; -import eu.eudat.data.entities.DescriptionTemplate; +import eu.eudat.data.old.DescriptionTemplate; import eu.eudat.data.DescriptionTemplateTypeEntity; import eu.eudat.exceptions.datasetprofile.DatasetProfileWithDatasetsExeption; import eu.eudat.logic.builders.entity.DatasetProfileBuilder; diff --git a/dmp-backend/web/src/main/java/eu/eudat/logic/managers/ContactEmailManager.java b/dmp-backend/web/src/main/java/eu/eudat/logic/managers/ContactEmailManager.java index ea2ecce35..18b3057be 100644 --- a/dmp-backend/web/src/main/java/eu/eudat/logic/managers/ContactEmailManager.java +++ b/dmp-backend/web/src/main/java/eu/eudat/logic/managers/ContactEmailManager.java @@ -1,6 +1,6 @@ package eu.eudat.logic.managers; -import eu.eudat.data.entities.UserInfo; +import eu.eudat.data.old.UserInfo; import eu.eudat.logic.services.ApiContext; import eu.eudat.models.data.ContactEmail.ContactEmailModel; import eu.eudat.models.data.ContactEmail.PublicContactEmailModel; diff --git a/dmp-backend/web/src/main/java/eu/eudat/logic/managers/DashBoardManager.java b/dmp-backend/web/src/main/java/eu/eudat/logic/managers/DashBoardManager.java index 50421a683..90d3ce664 100644 --- a/dmp-backend/web/src/main/java/eu/eudat/logic/managers/DashBoardManager.java +++ b/dmp-backend/web/src/main/java/eu/eudat/logic/managers/DashBoardManager.java @@ -8,10 +8,10 @@ import eu.eudat.data.dao.entities.DMPDao; import eu.eudat.data.dao.entities.DatasetDao; import eu.eudat.data.dao.entities.GrantDao; import eu.eudat.data.dao.entities.OrganisationDao; -import eu.eudat.data.entities.DMP; -import eu.eudat.data.entities.Dataset; -import eu.eudat.data.entities.Grant; -import eu.eudat.data.entities.UserInfo; +import eu.eudat.data.old.DMP; +import eu.eudat.data.old.Dataset; +import eu.eudat.data.old.Grant; +import eu.eudat.data.old.UserInfo; import eu.eudat.data.query.items.table.dataset.DatasetTableRequest; import eu.eudat.data.query.items.table.dmp.DataManagementPlanTableRequest; import eu.eudat.logic.builders.model.models.RecentActivityDataBuilder; diff --git a/dmp-backend/web/src/main/java/eu/eudat/logic/managers/DataManagementPlanManager.java b/dmp-backend/web/src/main/java/eu/eudat/logic/managers/DataManagementPlanManager.java index 8c461a094..abeb71ff6 100644 --- a/dmp-backend/web/src/main/java/eu/eudat/logic/managers/DataManagementPlanManager.java +++ b/dmp-backend/web/src/main/java/eu/eudat/logic/managers/DataManagementPlanManager.java @@ -6,14 +6,14 @@ import eu.eudat.configurations.dynamicgrant.DynamicGrantConfiguration; import eu.eudat.configurations.dynamicgrant.entities.Property; import eu.eudat.data.dao.criteria.*; import eu.eudat.data.dao.entities.*; -import eu.eudat.data.entities.DescriptionTemplate; -import eu.eudat.data.entities.Organisation; -import eu.eudat.data.entities.Researcher; -import eu.eudat.data.entities.*; -import eu.eudat.data.enumeration.notification.ActiveStatus; -import eu.eudat.data.enumeration.notification.ContactType; -import eu.eudat.data.enumeration.notification.NotificationType; -import eu.eudat.data.enumeration.notification.NotifyState; +import eu.eudat.data.old.DescriptionTemplate; +import eu.eudat.data.old.*; +import eu.eudat.data.old.Researcher; +import eu.eudat.commons.enums.old.notification.ActiveStatus; +import eu.eudat.commons.enums.old.notification.ContactType; +import eu.eudat.commons.enums.old.notification.NotificationType; +import eu.eudat.commons.enums.old.notification.NotifyState; +import eu.eudat.data.old.Organisation; import eu.eudat.data.query.items.table.dataset.DatasetTableRequest; import eu.eudat.data.query.items.table.datasetprofile.DatasetProfileTableRequestItem; import eu.eudat.data.query.items.table.dmp.DataManagementPlanTableRequest; @@ -902,10 +902,10 @@ public class DataManagementPlanManager { private void createResearchersIfTheyDontExist(DMP newDmp, ResearcherDao researcherRepository, UserInfo user) { if (newDmp.getResearchers() != null && !newDmp.getResearchers().isEmpty()) { - for (eu.eudat.data.entities.Researcher researcher : newDmp.getResearchers()) { + for (eu.eudat.data.old.Researcher researcher : newDmp.getResearchers()) { ResearcherCriteria criteria = new ResearcherCriteria(); criteria.setReference(researcher.getReference()); - List entries = researcherRepository.getWithCriteria(criteria).toList(); + List entries = researcherRepository.getWithCriteria(criteria).toList(); if (entries != null && !entries.isEmpty()) researcher.setId(entries.get(0).getId()); else { researcher.setCreationUser(user); @@ -918,12 +918,12 @@ public class DataManagementPlanManager { private void createOrganisationsIfTheyDontExist(DMP newDmp, OrganisationDao organisationRepository) { if (newDmp.getOrganisations() != null && !newDmp.getOrganisations().isEmpty()) { - for (eu.eudat.data.entities.Organisation organisation : newDmp.getOrganisations()) { + for (Organisation organisation : newDmp.getOrganisations()) { boolean createNew = false; if (organisation.getReference() != null) { OrganisationCriteria criteria = new OrganisationCriteria(); criteria.setLike(organisation.getReference()); - List entries = organisationRepository.getWithCriteria(criteria).toList(); + List entries = organisationRepository.getWithCriteria(criteria).toList(); if (entries != null && !entries.isEmpty()) organisation.setId(entries.get(0).getId()); else createNew = true; } else { @@ -946,7 +946,7 @@ public class DataManagementPlanManager { GrantCriteria criteria = new GrantCriteria(); if (grant.getReference() != null) { criteria.setReference(grant.getReference()); - eu.eudat.data.entities.Grant grantEntity = grantDao.getWithCriteria(criteria).toList().stream().max(Comparator.comparing(grant1 -> grant1.getModified().getTime())).orElse(null); + Grant grantEntity = grantDao.getWithCriteria(criteria).toList().stream().max(Comparator.comparing(grant1 -> grant1.getModified().getTime())).orElse(null); if (grantEntity != null) grant.setId(grantEntity.getId()); else { grant.setType(Grant.GrantType.EXTERNAL.getValue()); @@ -974,7 +974,7 @@ public class DataManagementPlanManager { FunderCriteria criteria = new FunderCriteria(); if (funder.getReference() != null) { criteria.setReference(funder.getReference()); - eu.eudat.data.entities.Funder funderEntity = funderDao.getWithCritetia(criteria).toList().stream().max(Comparator.comparing(funder1 -> funder1.getModified().getTime())).orElse(null); + Funder funderEntity = funderDao.getWithCritetia(criteria).toList().stream().max(Comparator.comparing(funder1 -> funder1.getModified().getTime())).orElse(null); if (funderEntity != null) funder.setId(funderEntity.getId()); else { funderDao.createOrUpdate(funder); @@ -992,7 +992,7 @@ public class DataManagementPlanManager { ProjectCriteria criteria = new ProjectCriteria(); if (project.getReference() != null) { criteria.setReference(project.getReference()); - eu.eudat.data.entities.Project projectEntity = projectDao.getWithCritetia(criteria).toList().stream().max(Comparator.comparing(project1 -> project1.getModified().getTime())).orElse(null); + Project projectEntity = projectDao.getWithCritetia(criteria).toList().stream().max(Comparator.comparing(project1 -> project1.getModified().getTime())).orElse(null); if (projectEntity != null) project.setId(projectEntity.getId()); else { createExternalProject(project, projectDao); @@ -1301,7 +1301,7 @@ public class DataManagementPlanManager { DatasetWizardModel dataset = new DatasetWizardModel(); XWPFDocument document = configLoader.getDocument(); - eu.eudat.data.entities.DMP dmpEntity = databaseRepository.getDmpDao().find(UUID.fromString(id)); + DMP dmpEntity = databaseRepository.getDmpDao().find(UUID.fromString(id)); if (!dmpEntity.isPublic() && dmpEntity.getUsers().stream().filter(userInfo -> userInfo.getUser().getId() == principal.getId()).collect(Collectors.toList()).size() == 0) throw new UnauthorisedException(); @@ -1681,7 +1681,7 @@ public class DataManagementPlanManager { private FileEnvelope getXmlDocument(String id, Principal principal) throws InstantiationException, IllegalAccessException, IOException { ExportXmlBuilder xmlBuilder = new ExportXmlBuilder(); VisibilityRuleService visibilityRuleService = new VisibilityRuleServiceImpl(); - eu.eudat.data.entities.DMP dmp = databaseRepository.getDmpDao().find(UUID.fromString(id)); + DMP dmp = databaseRepository.getDmpDao().find(UUID.fromString(id)); if (!dmp.isPublic() && dmp.getUsers().stream().filter(userInfo -> userInfo.getUser().getId() == principal.getId()).collect(Collectors.toList()).size() == 0) throw new UnauthorisedException(); final Boolean isFinalized = dmp.getStatus() == DMP.DMPStatus.FINALISED.getValue(); @@ -1959,7 +1959,7 @@ public class DataManagementPlanManager { } public FileEnvelope getRDAJsonDocument(String id, Principal principal) throws Exception { - eu.eudat.data.entities.DMP dmp = databaseRepository.getDmpDao().find(UUID.fromString(id)); + DMP dmp = databaseRepository.getDmpDao().find(UUID.fromString(id)); if (!dmp.isPublic() && dmp.getUsers().stream().noneMatch(userInfo -> userInfo.getUser().getId() == principal.getId())) throw new UnauthorisedException(); final boolean isFinalized = dmp.getStatus() == DMP.DMPStatus.FINALISED.getValue(); @@ -2194,7 +2194,7 @@ public class DataManagementPlanManager { List datasets = new LinkedList<>(); for (DatasetImportModels das: dataManagementPlans.get(0).getDatasetImportModels()) { - eu.eudat.data.entities.Dataset dataset = new eu.eudat.data.entities.Dataset(); + Dataset dataset = new Dataset(); dataset.setLabel(das.getName()); dataset.setDmpSectionIndex(das.getDmpSectionIndex()); try { diff --git a/dmp-backend/web/src/main/java/eu/eudat/logic/managers/DataManagementProfileManager.java b/dmp-backend/web/src/main/java/eu/eudat/logic/managers/DataManagementProfileManager.java index 9735e9e99..f320c5ea9 100644 --- a/dmp-backend/web/src/main/java/eu/eudat/logic/managers/DataManagementProfileManager.java +++ b/dmp-backend/web/src/main/java/eu/eudat/logic/managers/DataManagementProfileManager.java @@ -4,14 +4,10 @@ import com.jayway.jsonpath.DocumentContext; import com.jayway.jsonpath.JsonPath; import eu.eudat.data.dao.criteria.DataManagementPlanCriteria; import eu.eudat.data.dao.criteria.RequestItem; -import eu.eudat.data.dao.entities.DatasetDao; -import eu.eudat.data.dao.entities.DatasetProfileDao; -import eu.eudat.data.entities.DMPProfile; -import eu.eudat.data.entities.DescriptionTemplate; +import eu.eudat.data.old.DMPProfile; import eu.eudat.data.query.items.dmpblueprint.DataManagementPlanBlueprintTableRequest; import eu.eudat.data.query.items.item.dmpprofile.DataManagementPlanProfileCriteriaRequest; import eu.eudat.data.query.items.table.dmpprofile.DataManagementPlanProfileTableRequest; -import eu.eudat.exceptions.datasetprofile.DatasetProfileWithDatasetsExeption; import eu.eudat.exceptions.dmpblueprint.DmpBlueprintUsedException; import eu.eudat.logic.services.operations.DatabaseRepository; import eu.eudat.logic.utilities.builders.XmlBuilder; diff --git a/dmp-backend/web/src/main/java/eu/eudat/logic/managers/DataRepositoryManager.java b/dmp-backend/web/src/main/java/eu/eudat/logic/managers/DataRepositoryManager.java index 2a45bc6ba..b5a738f95 100644 --- a/dmp-backend/web/src/main/java/eu/eudat/logic/managers/DataRepositoryManager.java +++ b/dmp-backend/web/src/main/java/eu/eudat/logic/managers/DataRepositoryManager.java @@ -3,7 +3,7 @@ package eu.eudat.logic.managers; import com.fasterxml.jackson.databind.DeserializationFeature; import com.fasterxml.jackson.databind.ObjectMapper; import eu.eudat.data.dao.criteria.DataRepositoryCriteria; -import eu.eudat.data.entities.DataRepository; +import eu.eudat.data.old.DataRepository; import eu.eudat.logic.proxy.config.ExternalUrlCriteria; import eu.eudat.logic.proxy.config.exceptions.HugeResultSet; import eu.eudat.logic.proxy.config.exceptions.NoURLFound; diff --git a/dmp-backend/web/src/main/java/eu/eudat/logic/managers/DatasetManager.java b/dmp-backend/web/src/main/java/eu/eudat/logic/managers/DatasetManager.java index 00f8a65c0..18694945d 100644 --- a/dmp-backend/web/src/main/java/eu/eudat/logic/managers/DatasetManager.java +++ b/dmp-backend/web/src/main/java/eu/eudat/logic/managers/DatasetManager.java @@ -8,11 +8,11 @@ import eu.eudat.data.dao.criteria.*; import eu.eudat.data.dao.entities.DataRepositoryDao; import eu.eudat.data.dao.entities.DatasetDao; import eu.eudat.data.dao.entities.RegistryDao; -import eu.eudat.data.entities.*; -import eu.eudat.data.enumeration.notification.ActiveStatus; -import eu.eudat.data.enumeration.notification.ContactType; -import eu.eudat.data.enumeration.notification.NotificationType; -import eu.eudat.data.enumeration.notification.NotifyState; +import eu.eudat.commons.enums.old.notification.ActiveStatus; +import eu.eudat.commons.enums.old.notification.ContactType; +import eu.eudat.commons.enums.old.notification.NotificationType; +import eu.eudat.commons.enums.old.notification.NotifyState; +import eu.eudat.data.old.*; import eu.eudat.data.query.items.table.dataset.DatasetPublicTableRequest; import eu.eudat.data.query.items.table.dataset.DatasetTableRequest; import eu.eudat.data.query.items.table.datasetprofile.DatasetProfileTableRequestItem; @@ -55,7 +55,6 @@ import eu.eudat.types.MetricNames; import org.apache.poi.xwpf.extractor.XWPFWordExtractor; import org.apache.poi.xwpf.usermodel.XWPFDocument; import org.apache.poi.xwpf.usermodel.XWPFParagraph; -import org.apache.poi.xwpf.usermodel.XWPFRun; import org.json.JSONArray; import org.json.JSONObject; import org.slf4j.Logger; @@ -169,8 +168,8 @@ public class DatasetManager { } UserInfo userInfo = builderFactory.getBuilder(UserInfoBuilder.class).id(principal.getId()).build(); -// QueryableList items = databaseRepository.getDatasetDao().getWithCriteria(datasetTableRequest.getCriteria()).withHint(HintedModelFactory.getHint(DatasetListingModel.class)); - QueryableList items; +// QueryableList items = databaseRepository.getDatasetDao().getWithCriteria(datasetTableRequest.getCriteria()).withHint(HintedModelFactory.getHint(DatasetListingModel.class)); + QueryableList items; if (datasets != null) { if (!datasets.isEmpty()) { @@ -186,8 +185,8 @@ public class DatasetManager { items = databaseRepository.getDatasetDao().getWithCriteria(datasetTableRequest.getCriteria()).withHint(HintedModelFactory.getHint(DatasetListingModel.class));//.withFields(Collections.singletonList("id")); } List roles = new LinkedList<>(); - QueryableList pagedItems; - QueryableList authItems; + QueryableList pagedItems; + QueryableList authItems; if (!datasetTableRequest.getCriteria().getIsPublic()) { if (principal.getId() == null) { throw new UnauthorisedException("You are not allowed to access those datasets"); @@ -269,7 +268,7 @@ public class DatasetManager { if (count == 0L) { count = items.count(); } - QueryableList pagedItems = PaginationManager.applyPaging(items, datasetTableRequest); + QueryableList pagedItems = PaginationManager.applyPaging(items, datasetTableRequest); DataTableData dataTable = new DataTableData<>(); List datasetListis = pagedItems. @@ -284,7 +283,7 @@ public class DatasetManager { public DatasetWizardModel getSingle(String id, Principal principal) { DatasetWizardModel dataset = new DatasetWizardModel(); - eu.eudat.data.entities.Dataset datasetEntity = databaseRepository.getDatasetDao().find(UUID.fromString(id), HintedModelFactory.getHint(DatasetWizardModel.class)); + Dataset datasetEntity = databaseRepository.getDatasetDao().find(UUID.fromString(id), HintedModelFactory.getHint(DatasetWizardModel.class)); if (datasetEntity.getDmp().getUsers() .stream().filter(userInfo -> userInfo.getUser().getId() == principal.getId()) .collect(Collectors.toList()).size() == 0 && !datasetEntity.getDmp().isPublic()) @@ -348,7 +347,7 @@ public class DatasetManager { public DatasetWizardModel getSinglePublic(String id) throws Exception { DatasetWizardModel dataset = new DatasetWizardModel(); - eu.eudat.data.entities.Dataset datasetEntity = databaseRepository.getDatasetDao().isPublicDataset(UUID.fromString(id)); + Dataset datasetEntity = databaseRepository.getDatasetDao().isPublicDataset(UUID.fromString(id)); if (datasetEntity != null && datasetEntity.getStatus() == 1 && datasetEntity.getDmp().getStatus() == 1) { dataset.setDatasetProfileDefinition(getPagedProfile(dataset, datasetEntity)); @@ -383,7 +382,7 @@ public class DatasetManager { return databaseRepository.getDatasetDao().find(id); } - public PagedDatasetProfile getPagedProfile(DatasetWizardModel dataset, eu.eudat.data.entities.Dataset datasetEntity) { + public PagedDatasetProfile getPagedProfile(DatasetWizardModel dataset, Dataset datasetEntity) { eu.eudat.models.data.user.composite.DatasetProfile datasetprofile = userManager.generateDatasetProfileModel(datasetEntity.getProfile()); datasetprofile.setStatus(dataset.getStatus()); if (datasetEntity.getProperties() != null) { @@ -396,12 +395,12 @@ public class DatasetManager { return pagedDatasetProfile; } - private XWPFDocument getWordDocument(ConfigLoader configLoader, eu.eudat.data.entities.Dataset datasetEntity, VisibilityRuleService visibilityRuleService, Principal principal) throws IOException { + private XWPFDocument getWordDocument(ConfigLoader configLoader, Dataset datasetEntity, VisibilityRuleService visibilityRuleService, Principal principal) throws IOException { WordBuilder wordBuilder = new WordBuilder(this.environment, configLoader); DatasetWizardModel dataset = new DatasetWizardModel(); XWPFDocument document = configLoader.getDatasetDocument(); - eu.eudat.data.entities.DMP dmpEntity = datasetEntity.getDmp(); + DMP dmpEntity = datasetEntity.getDmp(); if (!dmpEntity.isPublic() && dmpEntity.getUsers().stream().filter(userInfo -> userInfo.getUser().getId() == principal.getId()).collect(Collectors.toList()).size() == 0) throw new UnauthorisedException(); @@ -539,7 +538,7 @@ public class DatasetManager { } public FileEnvelope getWordDocumentFile(ConfigLoader configLoader, String id, VisibilityRuleService visibilityRuleService, Principal principal) throws IOException { - eu.eudat.data.entities.Dataset datasetEntity = databaseRepository.getDatasetDao().find(UUID.fromString(id), HintedModelFactory.getHint(DatasetWizardModel.class)); + Dataset datasetEntity = databaseRepository.getDatasetDao().find(UUID.fromString(id), HintedModelFactory.getHint(DatasetWizardModel.class)); if (!datasetEntity.getDmp().isPublic() && datasetEntity.getDmp().getUsers() .stream().filter(userInfo -> userInfo.getUser().getId() == principal.getId()) .collect(Collectors.toList()).size() == 0) @@ -568,7 +567,7 @@ public class DatasetManager { public FileEnvelope getXmlDocument(String id, VisibilityRuleService visibilityRuleService, Principal principal) throws InstantiationException, IllegalAccessException, IOException { ExportXmlBuilder xmlBuilder = new ExportXmlBuilder(); DatasetWizardModel dataset = new DatasetWizardModel(); - eu.eudat.data.entities.Dataset datasetEntity = databaseRepository.getDatasetDao().find(UUID.fromString(id), HintedModelFactory.getHint(DatasetWizardModel.class)); + Dataset datasetEntity = databaseRepository.getDatasetDao().find(UUID.fromString(id), HintedModelFactory.getHint(DatasetWizardModel.class)); if (!datasetEntity.getDmp().isPublic() && datasetEntity.getDmp().getUsers() .stream().filter(userInfo -> userInfo.getUser().getId() == principal.getId()) .collect(Collectors.toList()).size() == 0) @@ -589,7 +588,7 @@ public class DatasetManager { return fileEnvelope; } - public eu.eudat.data.entities.Dataset createOrUpdate(DatasetWizardModel datasetWizardModel, Principal principal) throws Exception { + public Dataset createOrUpdate(DatasetWizardModel datasetWizardModel, Principal principal) throws Exception { Boolean sendNotification = false; Dataset tempDataset = null; DMP dmp = apiContext.getOperationsContext().getDatabaseRepository().getDmpDao().find(datasetWizardModel.getDmp().getId()); @@ -609,7 +608,7 @@ public class DatasetManager { } if (dmp.getStatus().equals(DMP.DMPStatus.FINALISED.getValue()) && datasetWizardModel.getId() != null) throw new Exception("DMP is finalized, therefore Dataset cannot be edited."); - eu.eudat.data.entities.Dataset dataset = datasetWizardModel.toDataModel(); + Dataset dataset = datasetWizardModel.toDataModel(); dataset.setDmp(dmp); dataset.setProperties(propertiesModelToString(datasetWizardModel.getDatasetProfileDefinition())); if (this.apiContext.getOperationsContext().getElasticRepository().getDatasetRepository().getClient() != null) { @@ -854,12 +853,12 @@ public class DatasetManager { - private void createRegistriesIfTheyDontExist(RegistryDao registryDao, eu.eudat.data.entities.Dataset dataset) { + private void createRegistriesIfTheyDontExist(RegistryDao registryDao, Dataset dataset) { if (dataset.getRegistries() != null && !dataset.getRegistries().isEmpty()) { - for (eu.eudat.data.entities.Registry registry : dataset.getRegistries()) { + for (Registry registry : dataset.getRegistries()) { RegistryCriteria criteria = new RegistryCriteria(); criteria.setLike(registry.getReference()); - List entries = registryDao.getWithCriteria(criteria).toList(); + List entries = registryDao.getWithCriteria(criteria).toList(); if (entries != null && !entries.isEmpty()) registry.setId(entries.get(0).getId()); else { registry.setCreated(new Date()); @@ -869,12 +868,12 @@ public class DatasetManager { } } - private void createDataRepositoriesIfTheyDontExist(DataRepositoryDao dataRepositoryDao, eu.eudat.data.entities.Dataset dataset) { + private void createDataRepositoriesIfTheyDontExist(DataRepositoryDao dataRepositoryDao, Dataset dataset) { if (dataset.getDatasetDataRepositories() != null && !dataset.getDatasetDataRepositories().isEmpty()) { - for (eu.eudat.data.entities.DatasetDataRepository datasetDataRepository : dataset.getDatasetDataRepositories()) { + for (DatasetDataRepository datasetDataRepository : dataset.getDatasetDataRepositories()) { DataRepositoryCriteria criteria = new DataRepositoryCriteria(); criteria.setLike(datasetDataRepository.getDataRepository().getReference()); - List entries = dataRepositoryDao.getWithCriteria(criteria).toList(); + List entries = dataRepositoryDao.getWithCriteria(criteria).toList(); if (entries != null && !entries.isEmpty()) { datasetDataRepository.getDataRepository().setId(entries.get(0).getId()); datasetDataRepository.setDataset(dataset); @@ -890,12 +889,12 @@ public class DatasetManager { } } - private void createServicesIfTheyDontExist(eu.eudat.data.entities.Dataset dataset) { + private void createServicesIfTheyDontExist(Dataset dataset) { if (dataset.getServices() != null && !dataset.getServices().isEmpty()) { for (DatasetService service : dataset.getServices()) { ServiceCriteria criteria = new ServiceCriteria(); criteria.setLike(service.getService().getReference()); - List entries = databaseRepository.getServiceDao().getWithCriteria(criteria).toList(); + List entries = databaseRepository.getServiceDao().getWithCriteria(criteria).toList(); if (entries != null && !entries.isEmpty()) { service.setDataset(dataset); service.getService().setCreated(new Date()); @@ -907,12 +906,12 @@ public class DatasetManager { } } - private void createExternalDatasetsIfTheyDontExist(eu.eudat.data.entities.Dataset dataset) { + private void createExternalDatasetsIfTheyDontExist(Dataset dataset) { if (dataset.getDatasetExternalDatasets() != null && !dataset.getDatasetExternalDatasets().isEmpty()) { - for (eu.eudat.data.entities.DatasetExternalDataset datasetExternalDataset : dataset.getDatasetExternalDatasets()) { + for (DatasetExternalDataset datasetExternalDataset : dataset.getDatasetExternalDatasets()) { ExternalDatasetCriteria criteria = new ExternalDatasetCriteria(); criteria.setLike(datasetExternalDataset.getExternalDataset().getReference()); - List entries = databaseRepository.getExternalDatasetDao().getWithCriteria(criteria).toList(); + List entries = databaseRepository.getExternalDatasetDao().getWithCriteria(criteria).toList(); if (entries != null && !entries.isEmpty()) { datasetExternalDataset.getExternalDataset().setId(entries.get(0).getId()); datasetExternalDataset.setDataset(dataset); @@ -929,8 +928,8 @@ public class DatasetManager { } public void makePublic(DatasetDao datasetDao, UUID id) throws Exception { - eu.eudat.data.entities.Dataset dataset = datasetDao.find(id); - if (dataset.getStatus() != eu.eudat.data.entities.Dataset.Status.FINALISED.getValue()) + Dataset dataset = datasetDao.find(id); + if (dataset.getStatus() != Dataset.Status.FINALISED.getValue()) throw new Exception("You cannot make public a Dataset That Has not Been Finalised"); datasetDao.createOrUpdate(dataset); metricsManager.increaseValue(MetricNames.DATASET, 1, MetricNames.PUBLISHED); @@ -958,7 +957,7 @@ public class DatasetManager { HttpStatus.OK); } - public eu.eudat.data.entities.Dataset createDatasetFromXml(MultipartFile importFile, String dmpId, String datasetProfileId, Principal principal) throws JAXBException, IOException { + public Dataset createDatasetFromXml(MultipartFile importFile, String dmpId, String datasetProfileId, Principal principal) throws JAXBException, IOException { DatasetImportPagedDatasetProfile importModel = new DatasetImportPagedDatasetProfile(); JAXBContext jaxbContext; @@ -1001,7 +1000,7 @@ public class DatasetManager { JSONObject jsonDatasetProperties = new JSONObject(importMap); // Creates the entity data set to save. - eu.eudat.data.entities.Dataset entity = new Dataset(); + Dataset entity = new Dataset(); entity.setProperties(jsonDatasetProperties.toString()); entity.setLabel(importFile.getOriginalFilename()); DMP dmp = new DMP(); @@ -1033,7 +1032,7 @@ public class DatasetManager { public DatasetWizardModel datasetUpdateProfile(String id) { DatasetWizardModel dataset = new DatasetWizardModel(); - eu.eudat.data.entities.Dataset datasetEntity = databaseRepository.getDatasetDao().find(UUID.fromString(id), HintedModelFactory.getHint(DatasetWizardModel.class)); + Dataset datasetEntity = databaseRepository.getDatasetDao().find(UUID.fromString(id), HintedModelFactory.getHint(DatasetWizardModel.class)); dataset.setDatasetProfileDefinition(getPagedProfile(dataset, datasetEntity)); dataset.fromDataModel(datasetEntity); diff --git a/dmp-backend/web/src/main/java/eu/eudat/logic/managers/DatasetProfileManager.java b/dmp-backend/web/src/main/java/eu/eudat/logic/managers/DatasetProfileManager.java index 05e227776..7c9b18a8b 100644 --- a/dmp-backend/web/src/main/java/eu/eudat/logic/managers/DatasetProfileManager.java +++ b/dmp-backend/web/src/main/java/eu/eudat/logic/managers/DatasetProfileManager.java @@ -1,20 +1,16 @@ package eu.eudat.logic.managers; -import com.jayway.jsonpath.DocumentContext; -import com.jayway.jsonpath.JsonPath; import eu.eudat.data.dao.criteria.DatasetProfileCriteria; -import eu.eudat.data.entities.DescriptionTemplate; -import eu.eudat.data.entities.UserDatasetProfile; -import eu.eudat.data.entities.UserInfo; +import eu.eudat.data.old.DescriptionTemplate; +import eu.eudat.data.old.UserDatasetProfile; +import eu.eudat.data.old.UserInfo; import eu.eudat.data.query.items.item.datasetprofile.DatasetProfileAutocompleteRequest; import eu.eudat.data.query.items.table.datasetprofile.DatasetProfileTableRequestItem; import eu.eudat.exceptions.datasetprofile.DatasetProfileNewVersionException; import eu.eudat.logic.builders.model.models.DataTableDataBuilder; import eu.eudat.logic.proxy.config.*; import eu.eudat.logic.proxy.config.configloaders.ConfigLoader; -import eu.eudat.logic.proxy.config.entities.DatasetUrls; import eu.eudat.logic.proxy.config.entities.GeneralUrls; -import eu.eudat.logic.proxy.config.entities.GenericUrls; import eu.eudat.logic.proxy.fetching.RemoteFetcher; import eu.eudat.logic.services.ApiContext; import eu.eudat.logic.services.operations.DatabaseRepository; @@ -40,9 +36,7 @@ import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.core.env.Environment; import org.springframework.http.*; -import org.springframework.http.client.SimpleClientHttpRequestFactory; import org.springframework.stereotype.Component; -import org.springframework.web.client.RestTemplate; import org.springframework.web.multipart.MultipartFile; import org.w3c.dom.Document; import org.w3c.dom.Element; diff --git a/dmp-backend/web/src/main/java/eu/eudat/logic/managers/DatasetWizardManager.java b/dmp-backend/web/src/main/java/eu/eudat/logic/managers/DatasetWizardManager.java index 123f70881..10c4a6694 100644 --- a/dmp-backend/web/src/main/java/eu/eudat/logic/managers/DatasetWizardManager.java +++ b/dmp-backend/web/src/main/java/eu/eudat/logic/managers/DatasetWizardManager.java @@ -3,10 +3,10 @@ package eu.eudat.logic.managers; import eu.eudat.data.dao.criteria.DatasetProfileCriteria; import eu.eudat.data.dao.entities.DMPDao; import eu.eudat.data.dao.entities.DatasetProfileDao; -import eu.eudat.data.entities.DMP; -import eu.eudat.data.entities.Dataset; -import eu.eudat.data.entities.DescriptionTemplate; -import eu.eudat.data.entities.UserInfo; +import eu.eudat.data.old.DMP; +import eu.eudat.data.old.Dataset; +import eu.eudat.data.old.DescriptionTemplate; +import eu.eudat.data.old.UserInfo; import eu.eudat.data.query.items.item.dataset.DatasetWizardAutocompleteRequest; import eu.eudat.data.query.items.item.datasetprofile.DatasetProfileWizardAutocompleteRequest; import eu.eudat.exceptions.datasetwizard.DatasetWizardCannotUnlockException; diff --git a/dmp-backend/web/src/main/java/eu/eudat/logic/managers/EmailConfirmationManager.java b/dmp-backend/web/src/main/java/eu/eudat/logic/managers/EmailConfirmationManager.java index e02724e43..abea79456 100644 --- a/dmp-backend/web/src/main/java/eu/eudat/logic/managers/EmailConfirmationManager.java +++ b/dmp-backend/web/src/main/java/eu/eudat/logic/managers/EmailConfirmationManager.java @@ -1,8 +1,8 @@ package eu.eudat.logic.managers; import eu.eudat.data.CredentialEntity; -import eu.eudat.data.entities.EmailConfirmation; -import eu.eudat.data.entities.UserInfo; +import eu.eudat.data.old.EmailConfirmation; +import eu.eudat.data.old.UserInfo; import eu.eudat.exceptions.emailconfirmation.HasConfirmedEmailException; import eu.eudat.exceptions.emailconfirmation.TokenExpiredException; import eu.eudat.logic.services.ApiContext; @@ -12,7 +12,6 @@ import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Component; import java.util.Date; -import java.util.List; import java.util.UUID; @Component diff --git a/dmp-backend/web/src/main/java/eu/eudat/logic/managers/ExternalDatasetManager.java b/dmp-backend/web/src/main/java/eu/eudat/logic/managers/ExternalDatasetManager.java index f8f72ce31..185fa8563 100644 --- a/dmp-backend/web/src/main/java/eu/eudat/logic/managers/ExternalDatasetManager.java +++ b/dmp-backend/web/src/main/java/eu/eudat/logic/managers/ExternalDatasetManager.java @@ -2,17 +2,14 @@ package eu.eudat.logic.managers; import com.fasterxml.jackson.databind.DeserializationFeature; import com.fasterxml.jackson.databind.ObjectMapper; +import eu.eudat.data.old.ExternalDataset; import eu.eudat.logic.builders.model.criteria.ExternalDatasetCriteriaBuilder; import eu.eudat.logic.builders.model.models.DataTableDataBuilder; -import eu.eudat.data.entities.ExternalDataset; import eu.eudat.data.dao.criteria.ExternalDatasetCriteria; import eu.eudat.logic.proxy.config.ExternalUrlCriteria; import eu.eudat.logic.services.operations.DatabaseRepository; -import eu.eudat.models.data.external.ExternalDatasetSourcesModel; -import eu.eudat.models.data.external.ExternalSourcesItemModel; import eu.eudat.models.data.externaldataset.ExternalDatasetListingModel; import eu.eudat.data.query.items.table.externaldataset.ExternalDatasetTableRequest; -import eu.eudat.models.data.externaldataset.ExternalDatasetModel; import eu.eudat.models.data.helpers.common.DataTableData; import eu.eudat.logic.proxy.config.exceptions.HugeResultSet; import eu.eudat.logic.proxy.config.exceptions.NoURLFound; @@ -53,7 +50,7 @@ public class ExternalDatasetManager { // Fetch the local saved external Datasets that belong to the user. ExternalDatasetCriteria criteria = apiContext.getOperationsContext().getBuilderFactory().getBuilder(ExternalDatasetCriteriaBuilder.class).like(query).build(); criteria.setCreationUserId(principal.getId()); - QueryableList items = apiContext.getOperationsContext().getDatabaseRepository().getExternalDatasetDao().getWithCriteria(criteria); + QueryableList items = apiContext.getOperationsContext().getDatabaseRepository().getExternalDatasetDao().getWithCriteria(criteria); // Fetch external Datasets from external sources. ExternalUrlCriteria externalUrlCriteria = new ExternalUrlCriteria(query); diff --git a/dmp-backend/web/src/main/java/eu/eudat/logic/managers/FileManager.java b/dmp-backend/web/src/main/java/eu/eudat/logic/managers/FileManager.java index cb65ffa34..2e60d4473 100644 --- a/dmp-backend/web/src/main/java/eu/eudat/logic/managers/FileManager.java +++ b/dmp-backend/web/src/main/java/eu/eudat/logic/managers/FileManager.java @@ -1,8 +1,7 @@ package eu.eudat.logic.managers; -import eu.eudat.data.entities.FileUpload; -import eu.eudat.data.entities.UserInfo; -import eu.eudat.logic.proxy.config.configloaders.ConfigLoader; +import eu.eudat.data.old.FileUpload; +import eu.eudat.data.old.UserInfo; import eu.eudat.logic.services.ApiContext; import eu.eudat.logic.services.operations.DatabaseRepository; import org.slf4j.Logger; diff --git a/dmp-backend/web/src/main/java/eu/eudat/logic/managers/FunderManager.java b/dmp-backend/web/src/main/java/eu/eudat/logic/managers/FunderManager.java index a14a1e8df..e724d3044 100644 --- a/dmp-backend/web/src/main/java/eu/eudat/logic/managers/FunderManager.java +++ b/dmp-backend/web/src/main/java/eu/eudat/logic/managers/FunderManager.java @@ -1,9 +1,9 @@ package eu.eudat.logic.managers; +import eu.eudat.data.old.UserInfo; import eu.eudat.data.query.items.item.funder.FunderCriteriaRequest; import eu.eudat.logic.builders.model.models.FunderBuilder; import eu.eudat.logic.proxy.config.ExternalUrlCriteria; -import eu.eudat.logic.proxy.config.configloaders.ConfigLoader; import eu.eudat.logic.proxy.config.exceptions.HugeResultSet; import eu.eudat.logic.proxy.config.exceptions.NoURLFound; import eu.eudat.logic.proxy.fetching.RemoteFetcher; @@ -35,11 +35,11 @@ public class FunderManager { } public List getCriteriaWithExternal(FunderCriteriaRequest funderCriteria, Principal principal) throws HugeResultSet, NoURLFound { - eu.eudat.data.entities.UserInfo userInfo = new eu.eudat.data.entities.UserInfo(); + UserInfo userInfo = new UserInfo(); userInfo.setId(principal.getId()); funderCriteria.getCriteria().setReference("dmp:"); - QueryableList items = apiContext.getOperationsContext().getDatabaseRepository().getFunderDao().getWithCritetia(funderCriteria.getCriteria()); - QueryableList authItems = apiContext.getOperationsContext().getDatabaseRepository().getFunderDao().getAuthenticated(items, userInfo); + QueryableList items = apiContext.getOperationsContext().getDatabaseRepository().getFunderDao().getWithCritetia(funderCriteria.getCriteria()); + QueryableList authItems = apiContext.getOperationsContext().getDatabaseRepository().getFunderDao().getAuthenticated(items, userInfo); List funders = authItems.select(item -> new eu.eudat.models.data.funder.Funder().fromDataModel(item)); ExternalUrlCriteria externalUrlCriteria = new ExternalUrlCriteria(funderCriteria.getCriteria().getLike()); List> remoteRepos = remoteFetcher.getFunders(externalUrlCriteria); @@ -47,7 +47,7 @@ public class FunderManager { for (ExternalSourcesItemModel externalListingItem : fundersExternalSourcesModel) { eu.eudat.models.data.funder.Funder funder = apiContext.getOperationsContext().getBuilderFactory().getBuilder(FunderBuilder.class) .reference(externalListingItem.getRemoteId()).label(externalListingItem.getName()) - .status(eu.eudat.data.entities.Funder.Status.fromInteger(0)) + .status(eu.eudat.data.old.Funder.Status.fromInteger(0)) .key(externalListingItem.getKey()) .source(externalListingItem.getTag()) .build(); diff --git a/dmp-backend/web/src/main/java/eu/eudat/logic/managers/GrantManager.java b/dmp-backend/web/src/main/java/eu/eudat/logic/managers/GrantManager.java index e020593ed..7e56d7169 100644 --- a/dmp-backend/web/src/main/java/eu/eudat/logic/managers/GrantManager.java +++ b/dmp-backend/web/src/main/java/eu/eudat/logic/managers/GrantManager.java @@ -1,12 +1,11 @@ package eu.eudat.logic.managers; -import eu.eudat.data.dao.criteria.FunderCriteria; -import eu.eudat.data.entities.Funder; +import eu.eudat.data.old.UserInfo; import eu.eudat.data.query.items.table.grant.GrantTableRequest; import eu.eudat.exceptions.grant.GrantWithDMPsDeleteException; import eu.eudat.logic.builders.model.models.GrantBuilder; import eu.eudat.data.dao.entities.GrantDao; -import eu.eudat.data.entities.DMP; +import eu.eudat.data.old.DMP; import eu.eudat.logic.proxy.config.ExternalUrlCriteria; import eu.eudat.logic.services.operations.DatabaseRepository; import eu.eudat.logic.utilities.helpers.ListHelper; @@ -49,12 +48,12 @@ public class GrantManager { } public DataTableData getPaged(GrantTableRequest grantTableRequest, Principal principal, String fieldsGroup) throws Exception { - eu.eudat.data.entities.UserInfo userInfo = new eu.eudat.data.entities.UserInfo(); + UserInfo userInfo = new UserInfo(); userInfo.setId(principal.getId()); GrantDao grantRepository = databaseRepository.getGrantDao(); - QueryableList items = grantRepository.getWithCriteria(grantTableRequest.getCriteria()); - QueryableList authItems = grantRepository.getAuthenticated(items, userInfo); - QueryableList pagedItems = PaginationManager.applyPaging(authItems, grantTableRequest); + QueryableList items = grantRepository.getWithCriteria(grantTableRequest.getCriteria()); + QueryableList authItems = grantRepository.getAuthenticated(items, userInfo); + QueryableList pagedItems = PaginationManager.applyPaging(authItems, grantTableRequest); DataTableData dataTable = new DataTableData<>(); CompletableFuture grantsFuture; if (fieldsGroup.equals("listing")) { @@ -77,8 +76,8 @@ public class GrantManager { public DataTableData getPublicPaged(GrantTableRequest grantTableRequest) throws Exception { GrantDao grantRepository = databaseRepository.getGrantDao(); grantTableRequest.getCriteria().setPublic(true); - QueryableList items = grantRepository.getWithCriteria(grantTableRequest.getCriteria()); - QueryableList pagedItems = PaginationManager.applyPaging(items, grantTableRequest); + QueryableList items = grantRepository.getWithCriteria(grantTableRequest.getCriteria()); + QueryableList pagedItems = PaginationManager.applyPaging(items, grantTableRequest); DataTableData dataTable = new DataTableData<>(); CompletableFuture grantsFuture; grantsFuture = pagedItems.selectAsync(item -> new GrantListingModel().fromDataModel(item)) @@ -97,16 +96,16 @@ public class GrantManager { return grant; } - /*public eu.eudat.data.entities.Grant inactivate(String id) throws InstantiationException, IllegalAccessException { + /*public eu.eudat.data.old.Grant inactivate(String id) throws InstantiationException, IllegalAccessException { GrantDao grantRepository = databaseRepository.getGrantDao(); - eu.eudat.data.entities.Grant grant = grantRepository.find(UUID.fromString(id)); - grant.setStatus(eu.eudat.data.entities.Grant.Status.DELETED.getValue()); + eu.eudat.data.old.Grant grant = grantRepository.find(UUID.fromString(id)); + grant.setStatus(eu.eudat.data.old.Grant.Status.DELETED.getValue()); grant = grantRepository.createOrUpdate(grant); return grant; }*/ public List getCriteriaWithExternal(GrantCriteriaRequest grantCriteria, Principal principal) throws HugeResultSet, NoURLFound { - eu.eudat.data.entities.UserInfo userInfo = new eu.eudat.data.entities.UserInfo(); + UserInfo userInfo = new UserInfo(); userInfo.setId(principal.getId()); /*if (grantCriteria.getCriteria().getFunderReference() != null && !grantCriteria.getCriteria().getFunderReference().trim().isEmpty()) { FunderCriteria funderCriteria = new FunderCriteria(); @@ -122,8 +121,8 @@ public class GrantManager { grantCriteria.getCriteria().setFunderReference(null); } grantCriteria.getCriteria().setReference("dmp:"); - QueryableList items = apiContext.getOperationsContext().getDatabaseRepository().getGrantDao().getWithCriteria(grantCriteria.getCriteria()); - QueryableList authItems = apiContext.getOperationsContext().getDatabaseRepository().getGrantDao().getAuthenticated(items, userInfo); + QueryableList items = apiContext.getOperationsContext().getDatabaseRepository().getGrantDao().getWithCriteria(grantCriteria.getCriteria()); + QueryableList authItems = apiContext.getOperationsContext().getDatabaseRepository().getGrantDao().getAuthenticated(items, userInfo); List grants = authItems.select(item -> new Grant().fromDataModel(item)); List> remoteRepos = remoteFetcher.getGrants(externalUrlCriteria); @@ -134,7 +133,7 @@ public class GrantManager { .reference(externalListingItem.getRemoteId()).label(externalListingItem.getName()) .description(externalListingItem.getDescription()).uri(externalListingItem.getUri()) .key(externalListingItem.getKey()) - .abbreviation(externalListingItem.getAbbreviation()).status(eu.eudat.data.entities.Grant.Status.fromInteger(0)) + .abbreviation(externalListingItem.getAbbreviation()).status(eu.eudat.data.old.Grant.Status.fromInteger(0)) .source(externalListingItem.getTag()) .build(); @@ -147,14 +146,14 @@ public class GrantManager { public List getCriteria(GrantCriteriaRequest grantCriteria) throws IllegalAccessException, InstantiationException, HugeResultSet, NoURLFound { GrantDao grantRepository = databaseRepository.getGrantDao(); - QueryableList items = grantRepository.getWithCriteria(grantCriteria.getCriteria()); + QueryableList items = grantRepository.getWithCriteria(grantCriteria.getCriteria()); if (grantCriteria.getLength() != null) items.take(grantCriteria.getLength()); List grants = items.select(item -> new Grant().fromDataModel(item)); return grants; } /*public void createOrUpdate(eu.eudat.models.data.grant.Grant grant, Principal principal) throws ParseException, IOException { - eu.eudat.data.entities.Grant grantEntity = grant.toDataModel(); + eu.eudat.data.old.Grant grantEntity = grant.toDataModel(); if (grant.getFiles() != null) { for (ContentFile file : grant.getFiles()) { try { @@ -171,13 +170,13 @@ public class GrantManager { } } } - grantEntity.setType(eu.eudat.data.entities.Grant.GrantType.INTERNAL.getValue()); + grantEntity.setType(eu.eudat.data.old.Grant.GrantType.INTERNAL.getValue()); grantEntity.setCreationUser(databaseRepository.getUserInfoDao().find(principal.getId())); databaseRepository.getGrantDao().createOrUpdate(grantEntity); }*/ public void delete(UUID uuid) { - eu.eudat.data.entities.Grant oldGrant = apiContext.getOperationsContext().getDatabaseRepository().getGrantDao().find(uuid); + eu.eudat.data.old.Grant oldGrant = apiContext.getOperationsContext().getDatabaseRepository().getGrantDao().find(uuid); if (oldGrant.getDmps().size() > 0) throw new GrantWithDMPsDeleteException("You cannot Remove Grants with DMPs"); oldGrant.setStatus(DMP.DMPStatus.DELETED.getValue()); diff --git a/dmp-backend/web/src/main/java/eu/eudat/logic/managers/InvitationsManager.java b/dmp-backend/web/src/main/java/eu/eudat/logic/managers/InvitationsManager.java index 0e6171ca5..6c68b8e80 100644 --- a/dmp-backend/web/src/main/java/eu/eudat/logic/managers/InvitationsManager.java +++ b/dmp-backend/web/src/main/java/eu/eudat/logic/managers/InvitationsManager.java @@ -1,8 +1,8 @@ package eu.eudat.logic.managers; -import eu.eudat.data.entities.DMP; -import eu.eudat.data.entities.UserDMP; -import eu.eudat.data.entities.UserInfo; +import eu.eudat.data.old.DMP; +import eu.eudat.data.old.UserDMP; +import eu.eudat.data.old.UserInfo; import eu.eudat.data.query.items.item.userinfo.UserInfoRequestItem; import eu.eudat.exceptions.security.UnauthorisedException; import eu.eudat.logic.services.ApiContext; @@ -101,7 +101,7 @@ public class InvitationsManager { } public UUID assignUserAcceptedInvitation(UUID invitationID, Principal principal) throws UnauthorisedException, JAXBException, IOException { - eu.eudat.data.entities.Invitation invitation = apiContext.getOperationsContext().getDatabaseRepository().getInvitationDao().find(invitationID); + eu.eudat.data.old.Invitation invitation = apiContext.getOperationsContext().getDatabaseRepository().getInvitationDao().find(invitationID); if (invitation == null) throw new UnauthorisedException("There is no Data Management Plan assigned to this Link"); if (invitation.getAcceptedInvitation()) return invitation.getDmp().getId(); //throw new UnauthorisedException("This Url Has Expired"); diff --git a/dmp-backend/web/src/main/java/eu/eudat/logic/managers/LicenseManager.java b/dmp-backend/web/src/main/java/eu/eudat/logic/managers/LicenseManager.java index 39da2a9bf..6b7161c40 100644 --- a/dmp-backend/web/src/main/java/eu/eudat/logic/managers/LicenseManager.java +++ b/dmp-backend/web/src/main/java/eu/eudat/logic/managers/LicenseManager.java @@ -3,14 +3,11 @@ package eu.eudat.logic.managers; import com.fasterxml.jackson.databind.DeserializationFeature; import com.fasterxml.jackson.databind.ObjectMapper; import eu.eudat.data.dao.criteria.DataRepositoryCriteria; -import eu.eudat.data.entities.DataRepository; import eu.eudat.logic.proxy.config.ExternalUrlCriteria; import eu.eudat.logic.proxy.config.exceptions.HugeResultSet; import eu.eudat.logic.proxy.config.exceptions.NoURLFound; import eu.eudat.logic.services.ApiContext; -import eu.eudat.models.data.datarepository.DataRepositoryModel; import eu.eudat.models.data.license.LicenseModel; -import eu.eudat.models.data.security.Principal; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Component; diff --git a/dmp-backend/web/src/main/java/eu/eudat/logic/managers/LockManager.java b/dmp-backend/web/src/main/java/eu/eudat/logic/managers/LockManager.java index 365cf7ec9..77a3f08b2 100644 --- a/dmp-backend/web/src/main/java/eu/eudat/logic/managers/LockManager.java +++ b/dmp-backend/web/src/main/java/eu/eudat/logic/managers/LockManager.java @@ -16,7 +16,7 @@ import java.util.UUID; @Component public class LockManager { - private final Comparator compareByTouchedAt = Comparator.comparing(o -> o.getTouchedAt().getTime()); + private final Comparator compareByTouchedAt = Comparator.comparing(o -> o.getTouchedAt().getTime()); private ApiContext apiContext; private Environment environment; @@ -27,10 +27,10 @@ public class LockManager { this.environment = environment; } - public eu.eudat.data.entities.Lock createOrUpdate(Lock lock, Principal principal) throws Exception { + public eu.eudat.data.old.Lock createOrUpdate(Lock lock, Principal principal) throws Exception { if (lock.getId() != null) { try { - eu.eudat.data.entities.Lock entity = this.apiContext.getOperationsContext().getDatabaseRepository().getLockDao().find(lock.getId()); + eu.eudat.data.old.Lock entity = this.apiContext.getOperationsContext().getDatabaseRepository().getLockDao().find(lock.getId()); if (entity != null) { if (!entity.getLockedBy().getId().equals(principal.getId())) { throw new Exception("Is not locked by that user"); @@ -40,7 +40,7 @@ public class LockManager { lock.setId(null); } } - eu.eudat.data.entities.Lock newLock = lock.toDataModel(); + eu.eudat.data.old.Lock newLock = lock.toDataModel(); newLock = this.apiContext.getOperationsContext().getDatabaseRepository().getLockDao().createOrUpdate(newLock); return newLock; @@ -51,7 +51,7 @@ public class LockManager { criteria.setTarget(UUID.fromString(targetId)); Long availableLocks = this.apiContext.getOperationsContext().getDatabaseRepository().getLockDao().getWithCriteria(criteria).count(); if (availableLocks == 1) { - eu.eudat.data.entities.Lock lock = this.apiContext.getOperationsContext().getDatabaseRepository().getLockDao().getWithCriteria(criteria).getSingle(); + eu.eudat.data.old.Lock lock = this.apiContext.getOperationsContext().getDatabaseRepository().getLockDao().getWithCriteria(criteria).getSingle(); if (lock.getLockedBy().getId().equals(principal.getId())) { lock.setTouchedAt(new Date()); this.createOrUpdate(new Lock().fromDataModel(lock), principal); @@ -71,16 +71,16 @@ public class LockManager { Long availableLocks = this.apiContext.getOperationsContext().getDatabaseRepository().getLockDao().getWithCriteria(criteria).count(); long deletedLocks = 0L; if (availableLocks > 0) { - List locks = this.apiContext.getOperationsContext().getDatabaseRepository().getLockDao().getWithCriteria(criteria).toList(); - for (eu.eudat.data.entities.Lock lock : locks) { + List locks = this.apiContext.getOperationsContext().getDatabaseRepository().getLockDao().getWithCriteria(criteria).toList(); + for (eu.eudat.data.old.Lock lock : locks) { if (new Date().getTime() - lock.getTouchedAt().getTime() > environment.getProperty("database.lock-fail-interval", Integer.class)) { this.apiContext.getOperationsContext().getDatabaseRepository().getLockDao().delete(lock); deletedLocks++; } } if (deletedLocks == 0) { - eu.eudat.data.entities.Lock recentlock = locks.stream().max(compareByTouchedAt).get(); - for (eu.eudat.data.entities.Lock lock : locks) { + eu.eudat.data.old.Lock recentlock = locks.stream().max(compareByTouchedAt).get(); + for (eu.eudat.data.old.Lock lock : locks) { if (lock != recentlock) { this.apiContext.getOperationsContext().getDatabaseRepository().getLockDao().delete(lock); deletedLocks++; @@ -96,13 +96,13 @@ public class LockManager { criteria.setTarget(UUID.fromString(targetId)); Long availableLocks = this.apiContext.getOperationsContext().getDatabaseRepository().getLockDao().getWithCriteria(criteria).count(); if (availableLocks == 1) { - eu.eudat.data.entities.Lock lock = this.apiContext.getOperationsContext().getDatabaseRepository().getLockDao().getWithCriteria(criteria).getSingle(); + eu.eudat.data.old.Lock lock = this.apiContext.getOperationsContext().getDatabaseRepository().getLockDao().getWithCriteria(criteria).getSingle(); if (!lock.getLockedBy().getId().equals(principal.getId())) { throw new Exception("Only the user who created that lock can delete it"); } this.apiContext.getOperationsContext().getDatabaseRepository().getLockDao().delete(lock); } else if (availableLocks > 1) { - List locks = this.apiContext.getOperationsContext().getDatabaseRepository().getLockDao().getWithCriteria(criteria).toList(); + List locks = this.apiContext.getOperationsContext().getDatabaseRepository().getLockDao().getWithCriteria(criteria).toList(); locks.stream().filter(lock -> lock.getLockedBy().getId().equals(principal.getId())).forEach(lock -> this.apiContext.getOperationsContext().getDatabaseRepository().getLockDao().delete(lock)); } } @@ -112,7 +112,7 @@ public class LockManager { criteria.setTarget(UUID.fromString(targetId)); Long availableLocks = this.apiContext.getOperationsContext().getDatabaseRepository().getLockDao().getWithCriteria(criteria).count(); if (availableLocks > 0) { - eu.eudat.data.entities.Lock lock = this.apiContext.getOperationsContext().getDatabaseRepository().getLockDao().getWithCriteria(criteria).getSingle(); + eu.eudat.data.old.Lock lock = this.apiContext.getOperationsContext().getDatabaseRepository().getLockDao().getWithCriteria(criteria).getSingle(); if (!lock.getLockedBy().getId().equals(principal.getId())) { throw new Exception("Only the user who created that lock can access it"); } diff --git a/dmp-backend/web/src/main/java/eu/eudat/logic/managers/MergeEmailConfirmationManager.java b/dmp-backend/web/src/main/java/eu/eudat/logic/managers/MergeEmailConfirmationManager.java index 642fb92d8..75fef69b8 100644 --- a/dmp-backend/web/src/main/java/eu/eudat/logic/managers/MergeEmailConfirmationManager.java +++ b/dmp-backend/web/src/main/java/eu/eudat/logic/managers/MergeEmailConfirmationManager.java @@ -1,9 +1,9 @@ package eu.eudat.logic.managers; import eu.eudat.data.CredentialEntity; -import eu.eudat.data.entities.EmailConfirmation; -import eu.eudat.data.entities.UserDMP; -import eu.eudat.data.entities.UserInfo; +import eu.eudat.data.old.EmailConfirmation; +import eu.eudat.data.old.UserDMP; +import eu.eudat.data.old.UserInfo; import eu.eudat.elastic.criteria.DmpCriteria; import eu.eudat.elastic.entities.Collaborator; import eu.eudat.elastic.entities.Dmp; diff --git a/dmp-backend/web/src/main/java/eu/eudat/logic/managers/MetricsManager.java b/dmp-backend/web/src/main/java/eu/eudat/logic/managers/MetricsManager.java index 70f305028..e1ed24361 100644 --- a/dmp-backend/web/src/main/java/eu/eudat/logic/managers/MetricsManager.java +++ b/dmp-backend/web/src/main/java/eu/eudat/logic/managers/MetricsManager.java @@ -1,7 +1,7 @@ package eu.eudat.logic.managers; import eu.eudat.data.dao.criteria.*; -import eu.eudat.data.entities.DescriptionTemplate; +import eu.eudat.data.old.DescriptionTemplate; import eu.eudat.logic.services.ApiContext; import eu.eudat.types.MetricNames; import io.micrometer.prometheus.PrometheusMeterRegistry; diff --git a/dmp-backend/web/src/main/java/eu/eudat/logic/managers/NotificationManager.java b/dmp-backend/web/src/main/java/eu/eudat/logic/managers/NotificationManager.java index 1f3a57dfb..35660e695 100644 --- a/dmp-backend/web/src/main/java/eu/eudat/logic/managers/NotificationManager.java +++ b/dmp-backend/web/src/main/java/eu/eudat/logic/managers/NotificationManager.java @@ -1,10 +1,10 @@ package eu.eudat.logic.managers; import com.fasterxml.jackson.databind.ObjectMapper; -import eu.eudat.data.entities.Notification; -import eu.eudat.data.entities.UserInfo; -import eu.eudat.data.enumeration.notification.ActiveStatus; -import eu.eudat.data.enumeration.notification.NotifyState; +import eu.eudat.data.old.Notification; +import eu.eudat.data.old.UserInfo; +import eu.eudat.commons.enums.old.notification.ActiveStatus; +import eu.eudat.commons.enums.old.notification.NotifyState; import eu.eudat.logic.services.ApiContext; import eu.eudat.logic.services.utilities.MailService; import eu.eudat.models.data.mail.SimpleMail; diff --git a/dmp-backend/web/src/main/java/eu/eudat/logic/managers/OrganisationsManager.java b/dmp-backend/web/src/main/java/eu/eudat/logic/managers/OrganisationsManager.java index 238bf9be9..4747e2549 100644 --- a/dmp-backend/web/src/main/java/eu/eudat/logic/managers/OrganisationsManager.java +++ b/dmp-backend/web/src/main/java/eu/eudat/logic/managers/OrganisationsManager.java @@ -1,6 +1,7 @@ package eu.eudat.logic.managers; import eu.eudat.data.dao.entities.OrganisationDao; +import eu.eudat.data.old.UserInfo; import eu.eudat.data.query.items.table.organisations.OrganisationsTableRequest; import eu.eudat.logic.builders.model.models.OrganisationBuilder; import eu.eudat.logic.proxy.config.ExternalUrlCriteria; @@ -35,13 +36,13 @@ public class OrganisationsManager { } public DataTableData getPagedOrganisations(OrganisationsTableRequest organisationsTableRequest, Principal principal) throws Exception { - eu.eudat.data.entities.UserInfo userInfo = new eu.eudat.data.entities.UserInfo(); + UserInfo userInfo = new UserInfo(); userInfo.setId(principal.getId()); OrganisationDao organisationDao = databaseRepository.getOrganisationDao(); - QueryableList items = organisationDao.getWithCriteria(organisationsTableRequest.getCriteria()); - QueryableList authItems = organisationDao.getAuthenticated(items, userInfo); - QueryableList pagedItems = PaginationManager.applyPaging(authItems, organisationsTableRequest); + QueryableList items = organisationDao.getWithCriteria(organisationsTableRequest.getCriteria()); + QueryableList authItems = organisationDao.getAuthenticated(items, userInfo); + QueryableList pagedItems = PaginationManager.applyPaging(authItems, organisationsTableRequest); List org = pagedItems.toList().stream().distinct().map(item -> new Organisation().fromDataModel(item)).collect(Collectors.toList()); DataTableData organisationDataTableData = new DataTableData<>(); @@ -55,8 +56,8 @@ public class OrganisationsManager { organisationsTableRequest.getCriteria().setPublic(true); OrganisationDao organisationDao = databaseRepository.getOrganisationDao(); - QueryableList items = organisationDao.getWithCriteria(organisationsTableRequest.getCriteria()); - QueryableList pagedItems = PaginationManager.applyPaging(items, organisationsTableRequest); + QueryableList items = organisationDao.getWithCriteria(organisationsTableRequest.getCriteria()); + QueryableList pagedItems = PaginationManager.applyPaging(items, organisationsTableRequest); List org = pagedItems.toList().stream().distinct().map(item -> new Organisation().fromDataModel(item)).collect(Collectors.toList()); DataTableData organisationDataTableData = new DataTableData<>(); @@ -67,13 +68,13 @@ public class OrganisationsManager { } public List getWithExternal(OrganisationsTableRequest organisationsTableRequest, Principal principal) throws Exception { - eu.eudat.data.entities.UserInfo userInfo = new eu.eudat.data.entities.UserInfo(); + UserInfo userInfo = new UserInfo(); userInfo.setId(principal.getId()); OrganisationDao organisationDao = databaseRepository.getOrganisationDao(); - QueryableList items = organisationDao.getWithCriteria(organisationsTableRequest.getCriteria()); - QueryableList authItems = organisationDao.getAuthenticated(items, userInfo); - QueryableList pagedItems = PaginationManager.applyPaging(authItems, organisationsTableRequest); + QueryableList items = organisationDao.getWithCriteria(organisationsTableRequest.getCriteria()); + QueryableList authItems = organisationDao.getAuthenticated(items, userInfo); + QueryableList pagedItems = PaginationManager.applyPaging(authItems, organisationsTableRequest); List org = pagedItems.toList().stream().distinct().map(item -> new Organisation().fromDataModel(item)).collect(Collectors.toList()); diff --git a/dmp-backend/web/src/main/java/eu/eudat/logic/managers/PrefillingManager.java b/dmp-backend/web/src/main/java/eu/eudat/logic/managers/PrefillingManager.java index 73d39b708..19aa2c74b 100644 --- a/dmp-backend/web/src/main/java/eu/eudat/logic/managers/PrefillingManager.java +++ b/dmp-backend/web/src/main/java/eu/eudat/logic/managers/PrefillingManager.java @@ -2,7 +2,7 @@ package eu.eudat.logic.managers; import com.fasterxml.jackson.databind.DeserializationFeature; import com.fasterxml.jackson.databind.ObjectMapper; -import eu.eudat.data.entities.DescriptionTemplate; +import eu.eudat.data.old.DescriptionTemplate; import eu.eudat.logic.mapper.prefilling.PrefillingMapper; import eu.eudat.logic.proxy.config.ExternalUrlCriteria; import eu.eudat.logic.proxy.config.configloaders.ConfigLoader; diff --git a/dmp-backend/web/src/main/java/eu/eudat/logic/managers/ProjectManager.java b/dmp-backend/web/src/main/java/eu/eudat/logic/managers/ProjectManager.java index 6919a5de5..2c5c5b098 100644 --- a/dmp-backend/web/src/main/java/eu/eudat/logic/managers/ProjectManager.java +++ b/dmp-backend/web/src/main/java/eu/eudat/logic/managers/ProjectManager.java @@ -1,5 +1,6 @@ package eu.eudat.logic.managers; +import eu.eudat.data.old.UserInfo; import eu.eudat.logic.proxy.config.ExternalUrlCriteria; import eu.eudat.logic.utilities.helpers.ListHelper; import eu.eudat.models.data.external.ProjectsExternalSourcesModel; @@ -34,11 +35,11 @@ public class ProjectManager { } public List getCriteriaWithExternal(ProjectCriteriaRequest projectCriteria, Principal principal) throws HugeResultSet, NoURLFound { - eu.eudat.data.entities.UserInfo userInfo = new eu.eudat.data.entities.UserInfo(); + UserInfo userInfo = new UserInfo(); userInfo.setId(principal.getId()); projectCriteria.getCriteria().setReference("dmp:"); - QueryableList items = apiContext.getOperationsContext().getDatabaseRepository().getProjectDao().getWithCritetia(projectCriteria.getCriteria()); - QueryableList authItems = apiContext.getOperationsContext().getDatabaseRepository().getProjectDao().getAuthenticated(items, userInfo); + QueryableList items = apiContext.getOperationsContext().getDatabaseRepository().getProjectDao().getWithCritetia(projectCriteria.getCriteria()); + QueryableList authItems = apiContext.getOperationsContext().getDatabaseRepository().getProjectDao().getAuthenticated(items, userInfo); List projects = authItems.select(item -> new Project().fromDataModel(item)); ExternalUrlCriteria externalUrlCriteria = new ExternalUrlCriteria(projectCriteria.getCriteria().getLike()); List> remoteRepos = remoteFetcher.getProjects(externalUrlCriteria); @@ -47,7 +48,7 @@ public class ProjectManager { eu.eudat.models.data.project.Project project = apiContext.getOperationsContext().getBuilderFactory().getBuilder(ProjectBuilder.class) .reference(externalListingItem.getRemoteId()).label(externalListingItem.getName()) .description(externalListingItem.getDescription()).uri(externalListingItem.getUri()) - .abbreviation(externalListingItem.getAbbreviation()).status(eu.eudat.data.entities.Project.Status.fromInteger(0)) + .abbreviation(externalListingItem.getAbbreviation()).status(eu.eudat.data.old.Project.Status.fromInteger(0)) .key(externalListingItem.getKey()) .source(externalListingItem.getTag()) .build(); diff --git a/dmp-backend/web/src/main/java/eu/eudat/logic/managers/QuickWizardManager.java b/dmp-backend/web/src/main/java/eu/eudat/logic/managers/QuickWizardManager.java index 0f3dd9b45..c849ff462 100644 --- a/dmp-backend/web/src/main/java/eu/eudat/logic/managers/QuickWizardManager.java +++ b/dmp-backend/web/src/main/java/eu/eudat/logic/managers/QuickWizardManager.java @@ -3,7 +3,7 @@ package eu.eudat.logic.managers; import eu.eudat.data.dao.criteria.FunderCriteria; import eu.eudat.data.dao.criteria.GrantCriteria; import eu.eudat.data.dao.criteria.ProjectCriteria; -import eu.eudat.data.entities.*; +import eu.eudat.data.old.*; import eu.eudat.elastic.entities.Dmp; import eu.eudat.logic.mapper.elastic.DmpMapper; import eu.eudat.logic.services.ApiContext; @@ -37,8 +37,8 @@ public class QuickWizardManager { } public Grant createOrUpdate(eu.eudat.models.data.grant.Grant grant, Principal principal) throws ParseException, IOException { - eu.eudat.data.entities.Grant grantEntity = grant.toDataModel(); - grantEntity.setType(eu.eudat.data.entities.Grant.GrantType.INTERNAL.getValue()); + Grant grantEntity = grant.toDataModel(); + grantEntity.setType(Grant.GrantType.INTERNAL.getValue()); grantEntity.setCreationUser(databaseRepository.getUserInfoDao().find(principal.getId())); return databaseRepository.getGrantDao().createOrUpdate(grantEntity); } @@ -92,7 +92,7 @@ public class QuickWizardManager { Grant grant = newDmp.getGrant(); GrantCriteria criteria = new GrantCriteria(); criteria.setReference(grant.getReference()); - eu.eudat.data.entities.Grant grantEntity = databaseRepository.getGrantDao().getWithCriteria(criteria).getSingleOrDefault(); + Grant grantEntity = databaseRepository.getGrantDao().getWithCriteria(criteria).getSingleOrDefault(); if (grantEntity != null) grant.setId(grantEntity.getId()); else { grant.setType(Grant.GrantType.EXTERNAL.getValue()); @@ -106,7 +106,7 @@ public class QuickWizardManager { Funder funder = newDmp.getGrant().getFunder(); FunderCriteria criteria = new FunderCriteria(); criteria.setReference(funder.getReference()); - eu.eudat.data.entities.Funder funderEntity = databaseRepository.getFunderDao().getWithCritetia(criteria).getSingleOrDefault(); + Funder funderEntity = databaseRepository.getFunderDao().getWithCritetia(criteria).getSingleOrDefault(); if (funderEntity != null) funder.setId(funderEntity.getId()); else { funder.setType(Funder.FunderType.EXTERNAL.getValue()); @@ -120,7 +120,7 @@ public class QuickWizardManager { Project project = newDmp.getProject(); ProjectCriteria criteria = new ProjectCriteria(); criteria.setReference(project.getReference()); - eu.eudat.data.entities.Project projectEntity = databaseRepository.getProjectDao().getWithCritetia(criteria).getSingleOrDefault(); + Project projectEntity = databaseRepository.getProjectDao().getWithCritetia(criteria).getSingleOrDefault(); if (projectEntity != null) project.setId(projectEntity.getId()); else { if (project.getId() == null) project.setId(UUID.randomUUID()); diff --git a/dmp-backend/web/src/main/java/eu/eudat/logic/managers/RDAManager.java b/dmp-backend/web/src/main/java/eu/eudat/logic/managers/RDAManager.java index dc81cc6bf..14ca7bfa1 100644 --- a/dmp-backend/web/src/main/java/eu/eudat/logic/managers/RDAManager.java +++ b/dmp-backend/web/src/main/java/eu/eudat/logic/managers/RDAManager.java @@ -2,7 +2,7 @@ package eu.eudat.logic.managers; import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.databind.ObjectMapper; -import eu.eudat.data.entities.DMP; +import eu.eudat.data.old.DMP; import eu.eudat.models.rda.Dmp; import eu.eudat.models.rda.RDAModel; import eu.eudat.models.rda.mapper.DmpRDAMapper; diff --git a/dmp-backend/web/src/main/java/eu/eudat/logic/managers/RegistryManager.java b/dmp-backend/web/src/main/java/eu/eudat/logic/managers/RegistryManager.java index 9220d6221..a8c6ba855 100644 --- a/dmp-backend/web/src/main/java/eu/eudat/logic/managers/RegistryManager.java +++ b/dmp-backend/web/src/main/java/eu/eudat/logic/managers/RegistryManager.java @@ -3,7 +3,7 @@ package eu.eudat.logic.managers; import com.fasterxml.jackson.databind.DeserializationFeature; import com.fasterxml.jackson.databind.ObjectMapper; import eu.eudat.data.dao.criteria.RegistryCriteria; -import eu.eudat.data.entities.Registry; +import eu.eudat.data.old.Registry; import eu.eudat.logic.proxy.config.ExternalUrlCriteria; import eu.eudat.logic.proxy.config.exceptions.HugeResultSet; import eu.eudat.logic.proxy.config.exceptions.NoURLFound; diff --git a/dmp-backend/web/src/main/java/eu/eudat/logic/managers/ResearcherManager.java b/dmp-backend/web/src/main/java/eu/eudat/logic/managers/ResearcherManager.java index 3a7a13568..2cc95e672 100644 --- a/dmp-backend/web/src/main/java/eu/eudat/logic/managers/ResearcherManager.java +++ b/dmp-backend/web/src/main/java/eu/eudat/logic/managers/ResearcherManager.java @@ -1,10 +1,9 @@ package eu.eudat.logic.managers; import eu.eudat.logic.builders.model.models.ResearcherBuilder; -import eu.eudat.data.entities.Researcher; +import eu.eudat.data.old.Researcher; import eu.eudat.logic.proxy.config.ExternalUrlCriteria; import eu.eudat.logic.proxy.config.configloaders.ConfigLoader; -import eu.eudat.logic.utilities.helpers.ListHelper; import eu.eudat.models.data.external.ExternalSourcesItemModel; import eu.eudat.models.data.external.ResearchersExternalSourcesModel; import eu.eudat.data.query.items.item.researcher.ResearcherCriteriaRequest; @@ -46,7 +45,7 @@ public class ResearcherManager { public List getCriteriaWithExternal(ResearcherCriteriaRequest researcherCriteriaRequest, Principal principal) throws HugeResultSet, NoURLFound { - QueryableList items = apiContext.getOperationsContext().getDatabaseRepository().getResearcherDao().getWithCriteria(researcherCriteriaRequest.getCriteria()); + QueryableList items = apiContext.getOperationsContext().getDatabaseRepository().getResearcherDao().getWithCriteria(researcherCriteriaRequest.getCriteria()); items.where((builder, root) -> builder.equal(root.get("creationUser").get("id"), principal.getId())); List researchers = items.select(item -> new eu.eudat.models.data.dmp.Researcher().fromDataModel(item)); researchers = researchers.stream().filter(item -> item.getKey().equals("Internal")).collect(Collectors.toList()); diff --git a/dmp-backend/web/src/main/java/eu/eudat/logic/managers/ServiceManager.java b/dmp-backend/web/src/main/java/eu/eudat/logic/managers/ServiceManager.java index 222aa3675..3e492449b 100644 --- a/dmp-backend/web/src/main/java/eu/eudat/logic/managers/ServiceManager.java +++ b/dmp-backend/web/src/main/java/eu/eudat/logic/managers/ServiceManager.java @@ -3,7 +3,7 @@ package eu.eudat.logic.managers; import com.fasterxml.jackson.databind.DeserializationFeature; import com.fasterxml.jackson.databind.ObjectMapper; import eu.eudat.data.dao.criteria.ServiceCriteria; -import eu.eudat.data.entities.Service; +import eu.eudat.data.old.Service; import eu.eudat.logic.proxy.config.ExternalUrlCriteria; import eu.eudat.logic.proxy.config.exceptions.HugeResultSet; import eu.eudat.logic.proxy.config.exceptions.NoURLFound; diff --git a/dmp-backend/web/src/main/java/eu/eudat/logic/managers/UnlinkEmailConfirmationManager.java b/dmp-backend/web/src/main/java/eu/eudat/logic/managers/UnlinkEmailConfirmationManager.java index 452a11a86..5503f6cf6 100644 --- a/dmp-backend/web/src/main/java/eu/eudat/logic/managers/UnlinkEmailConfirmationManager.java +++ b/dmp-backend/web/src/main/java/eu/eudat/logic/managers/UnlinkEmailConfirmationManager.java @@ -3,8 +3,8 @@ package eu.eudat.logic.managers; import com.fasterxml.jackson.core.type.TypeReference; import com.fasterxml.jackson.databind.ObjectMapper; import eu.eudat.data.CredentialEntity; -import eu.eudat.data.entities.EmailConfirmation; -import eu.eudat.data.entities.UserInfo; +import eu.eudat.data.old.EmailConfirmation; +import eu.eudat.data.old.UserInfo; import eu.eudat.exceptions.emailconfirmation.HasConfirmedEmailException; import eu.eudat.exceptions.emailconfirmation.TokenExpiredException; import eu.eudat.logic.services.ApiContext; diff --git a/dmp-backend/web/src/main/java/eu/eudat/logic/managers/UserManager.java b/dmp-backend/web/src/main/java/eu/eudat/logic/managers/UserManager.java index 54e009158..a843a0f0f 100644 --- a/dmp-backend/web/src/main/java/eu/eudat/logic/managers/UserManager.java +++ b/dmp-backend/web/src/main/java/eu/eudat/logic/managers/UserManager.java @@ -4,10 +4,10 @@ import com.fasterxml.jackson.databind.ObjectMapper; import eu.eudat.data.CredentialEntity; import eu.eudat.data.dao.criteria.DataManagementPlanCriteria; import eu.eudat.data.dao.entities.UserInfoDao; -import eu.eudat.data.entities.DMP; -import eu.eudat.data.entities.DescriptionTemplate; -import eu.eudat.data.entities.UserInfo; -import eu.eudat.data.entities.UserRole; +import eu.eudat.data.old.DMP; +import eu.eudat.data.old.DescriptionTemplate; +import eu.eudat.data.old.UserInfo; +import eu.eudat.data.old.UserRole; import eu.eudat.data.query.items.table.userinfo.UserInfoTableRequestItem; import eu.eudat.exceptions.security.UnauthorisedException; import eu.eudat.logic.builders.entity.UserRoleBuilder; @@ -66,8 +66,8 @@ public class UserManager { } public DataTableData getPaged(UserInfoTableRequestItem userInfoTableRequestItem) throws Exception { - QueryableList users = apiContext.getOperationsContext().getDatabaseRepository().getUserInfoDao().getWithCriteria(userInfoTableRequestItem.getCriteria()).withHint(HintedModelFactory.getHint(UserListingModel.class)); - QueryableList pagedUsers = PaginationManager.applyPaging(users, userInfoTableRequestItem); + QueryableList users = apiContext.getOperationsContext().getDatabaseRepository().getUserInfoDao().getWithCriteria(userInfoTableRequestItem.getCriteria()).withHint(HintedModelFactory.getHint(UserListingModel.class)); + QueryableList pagedUsers = PaginationManager.applyPaging(users, userInfoTableRequestItem); List modelUsers = pagedUsers.select(item -> new UserListingModel().fromDataModel(item)); return apiContext.getOperationsContext().getBuilderFactory().getBuilder(DataTableDataBuilder.class).totalCount(users.count()).data(modelUsers).build(); @@ -75,7 +75,7 @@ public class UserManager { public List getCredentials(UUID userId) { List results = new ArrayList<>(); - eu.eudat.data.entities.UserInfo user = apiContext.getOperationsContext().getDatabaseRepository().getUserInfoDao().find(userId); + UserInfo user = apiContext.getOperationsContext().getDatabaseRepository().getUserInfoDao().find(userId); List credentials = apiContext.getOperationsContext().getDatabaseRepository().getCredentialDao().asQueryable().where((builder, root) -> builder.equal(root.get("userId"), user.getId())).toList(); credentials.forEach(credential -> { UserCredential userCredential = new UserCredential(); @@ -87,7 +87,7 @@ public class UserManager { } public UserProfile getSingle(UUID userId) throws Exception { - eu.eudat.data.entities.UserInfo user = apiContext.getOperationsContext().getDatabaseRepository().getUserInfoDao().find(userId); + UserInfo user = apiContext.getOperationsContext().getDatabaseRepository().getUserInfoDao().find(userId); UserProfile profile = new UserProfile().fromDataModel(user); List roles = new LinkedList<>(); DataManagementPlanCriteria criteria = new DataManagementPlanCriteria(); @@ -99,7 +99,7 @@ public class UserManager { } public void editRoles(UserListingModel user) { - eu.eudat.data.entities.UserInfo userInfo = apiContext.getOperationsContext().getDatabaseRepository().getUserInfoDao().find(user.getId()); + UserInfo userInfo = apiContext.getOperationsContext().getDatabaseRepository().getUserInfoDao().find(user.getId()); userInfo.getUserRoles().stream().forEach(item -> apiContext.getOperationsContext().getDatabaseRepository().getUserRoleDao().delete(item)); for (Integer role : user.getAppRoles()) { UserRole userRole = apiContext.getOperationsContext().getBuilderFactory().getBuilder(UserRoleBuilder.class).role(role).userInfo(userInfo).build(); @@ -108,7 +108,7 @@ public class UserManager { } public void updateSettings(Map settings, Principal principal) throws IOException { - eu.eudat.data.entities.UserInfo userInfo = apiContext.getOperationsContext().getDatabaseRepository().getUserInfoDao().find(principal.getId()); + UserInfo userInfo = apiContext.getOperationsContext().getDatabaseRepository().getUserInfoDao().find(principal.getId()); apiContext.getOperationsContext().getDatabaseRepository().detachEntity(userInfo); HashMap result = new ObjectMapper().readValue(userInfo.getAdditionalinfo(), HashMap.class); diff --git a/dmp-backend/web/src/main/java/eu/eudat/logic/mapper/elastic/CollaboratorMapper.java b/dmp-backend/web/src/main/java/eu/eudat/logic/mapper/elastic/CollaboratorMapper.java index 2ae10cba8..3ffec38f4 100644 --- a/dmp-backend/web/src/main/java/eu/eudat/logic/mapper/elastic/CollaboratorMapper.java +++ b/dmp-backend/web/src/main/java/eu/eudat/logic/mapper/elastic/CollaboratorMapper.java @@ -1,6 +1,6 @@ package eu.eudat.logic.mapper.elastic; -import eu.eudat.data.entities.UserInfo; +import eu.eudat.data.old.UserInfo; import eu.eudat.elastic.entities.Collaborator; public class CollaboratorMapper { diff --git a/dmp-backend/web/src/main/java/eu/eudat/logic/mapper/elastic/DatasetMapper.java b/dmp-backend/web/src/main/java/eu/eudat/logic/mapper/elastic/DatasetMapper.java index d799a4b10..310ff1247 100644 --- a/dmp-backend/web/src/main/java/eu/eudat/logic/mapper/elastic/DatasetMapper.java +++ b/dmp-backend/web/src/main/java/eu/eudat/logic/mapper/elastic/DatasetMapper.java @@ -1,7 +1,7 @@ package eu.eudat.logic.mapper.elastic; import eu.eudat.data.dao.criteria.DataManagementPlanCriteria; -import eu.eudat.data.entities.DMP; +import eu.eudat.data.old.DMP; import eu.eudat.elastic.criteria.DatasetCriteria; import eu.eudat.elastic.entities.Dataset; import eu.eudat.elastic.entities.Tag; @@ -22,7 +22,7 @@ public class DatasetMapper { this.datasetManager = datasetManager; } - public Dataset toElastic(eu.eudat.data.entities.Dataset dataset, List tags) throws Exception { + public Dataset toElastic(eu.eudat.data.old.Dataset dataset, List tags) throws Exception { if (dataset.getProfile() == null) { return null; } diff --git a/dmp-backend/web/src/main/java/eu/eudat/logic/mapper/elastic/DatasetTemplateMapper.java b/dmp-backend/web/src/main/java/eu/eudat/logic/mapper/elastic/DatasetTemplateMapper.java index 75e979175..7bea29416 100644 --- a/dmp-backend/web/src/main/java/eu/eudat/logic/mapper/elastic/DatasetTemplateMapper.java +++ b/dmp-backend/web/src/main/java/eu/eudat/logic/mapper/elastic/DatasetTemplateMapper.java @@ -2,8 +2,7 @@ package eu.eudat.logic.mapper.elastic; import com.fasterxml.jackson.core.type.TypeReference; import com.fasterxml.jackson.databind.ObjectMapper; -import eu.eudat.data.entities.DMPDatasetProfile; -import eu.eudat.data.entities.DescriptionTemplate; +import eu.eudat.data.old.DMPDatasetProfile; import eu.eudat.elastic.entities.DatasetTempalate; import java.util.HashMap; diff --git a/dmp-backend/web/src/main/java/eu/eudat/logic/mapper/elastic/DmpMapper.java b/dmp-backend/web/src/main/java/eu/eudat/logic/mapper/elastic/DmpMapper.java index a1b10170a..3b35f9eec 100644 --- a/dmp-backend/web/src/main/java/eu/eudat/logic/mapper/elastic/DmpMapper.java +++ b/dmp-backend/web/src/main/java/eu/eudat/logic/mapper/elastic/DmpMapper.java @@ -1,7 +1,7 @@ package eu.eudat.logic.mapper.elastic; import eu.eudat.data.dao.criteria.DataManagementPlanCriteria; -import eu.eudat.data.entities.DMP; +import eu.eudat.data.old.DMP; import eu.eudat.elastic.entities.Dataset; import eu.eudat.elastic.entities.Dmp; import eu.eudat.elastic.entities.Tag; diff --git a/dmp-backend/web/src/main/java/eu/eudat/logic/mapper/elastic/OrganizationMapper.java b/dmp-backend/web/src/main/java/eu/eudat/logic/mapper/elastic/OrganizationMapper.java index 4eb5fb9d6..ff3a02f41 100644 --- a/dmp-backend/web/src/main/java/eu/eudat/logic/mapper/elastic/OrganizationMapper.java +++ b/dmp-backend/web/src/main/java/eu/eudat/logic/mapper/elastic/OrganizationMapper.java @@ -1,6 +1,6 @@ package eu.eudat.logic.mapper.elastic; -import eu.eudat.data.entities.Organisation; +import eu.eudat.data.old.Organisation; import eu.eudat.elastic.entities.Organization; public class OrganizationMapper { diff --git a/dmp-backend/web/src/main/java/eu/eudat/logic/mapper/elastic/criteria/DmpCriteriaMapper.java b/dmp-backend/web/src/main/java/eu/eudat/logic/mapper/elastic/criteria/DmpCriteriaMapper.java index d2345621f..3092d6dab 100644 --- a/dmp-backend/web/src/main/java/eu/eudat/logic/mapper/elastic/criteria/DmpCriteriaMapper.java +++ b/dmp-backend/web/src/main/java/eu/eudat/logic/mapper/elastic/criteria/DmpCriteriaMapper.java @@ -1,7 +1,7 @@ package eu.eudat.logic.mapper.elastic.criteria; import eu.eudat.data.dao.criteria.DataManagementPlanCriteria; -import eu.eudat.data.entities.Grant; +import eu.eudat.data.old.Grant; import eu.eudat.data.query.definition.helpers.ColumnOrderings; import eu.eudat.data.query.definition.helpers.Ordering; import eu.eudat.elastic.criteria.DmpCriteria; diff --git a/dmp-backend/web/src/main/java/eu/eudat/logic/mapper/prefilling/PrefillingMapper.java b/dmp-backend/web/src/main/java/eu/eudat/logic/mapper/prefilling/PrefillingMapper.java index 2cac6179c..b824216e3 100644 --- a/dmp-backend/web/src/main/java/eu/eudat/logic/mapper/prefilling/PrefillingMapper.java +++ b/dmp-backend/web/src/main/java/eu/eudat/logic/mapper/prefilling/PrefillingMapper.java @@ -4,8 +4,8 @@ import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.databind.DeserializationFeature; import com.fasterxml.jackson.databind.JsonNode; import com.fasterxml.jackson.databind.ObjectMapper; -import eu.eudat.data.entities.Dataset; -import eu.eudat.data.entities.DescriptionTemplate; +import eu.eudat.data.old.Dataset; +import eu.eudat.data.old.DescriptionTemplate; import eu.eudat.elastic.entities.Tag; import eu.eudat.logic.managers.DatasetManager; import eu.eudat.logic.managers.DatasetProfileManager; diff --git a/dmp-backend/web/src/main/java/eu/eudat/logic/security/repositorydeposit/mapper/DMPToDepositMapper.java b/dmp-backend/web/src/main/java/eu/eudat/logic/security/repositorydeposit/mapper/DMPToDepositMapper.java index 4c6eeb975..db21be3e7 100644 --- a/dmp-backend/web/src/main/java/eu/eudat/logic/security/repositorydeposit/mapper/DMPToDepositMapper.java +++ b/dmp-backend/web/src/main/java/eu/eudat/logic/security/repositorydeposit/mapper/DMPToDepositMapper.java @@ -1,9 +1,8 @@ package eu.eudat.logic.security.repositorydeposit.mapper; import com.fasterxml.jackson.core.JsonProcessingException; -import com.fasterxml.jackson.databind.JsonMappingException; import com.fasterxml.jackson.databind.ObjectMapper; -import eu.eudat.data.entities.*; +import eu.eudat.data.old.*; import eu.eudat.depositinterface.models.*; import eu.eudat.logic.utilities.builders.XmlBuilder; import org.slf4j.Logger; diff --git a/dmp-backend/web/src/main/java/eu/eudat/logic/services/operations/authentication/AbstractAuthenticationService.java b/dmp-backend/web/src/main/java/eu/eudat/logic/services/operations/authentication/AbstractAuthenticationService.java index bbbb6d2f4..b1106f09d 100644 --- a/dmp-backend/web/src/main/java/eu/eudat/logic/services/operations/authentication/AbstractAuthenticationService.java +++ b/dmp-backend/web/src/main/java/eu/eudat/logic/services/operations/authentication/AbstractAuthenticationService.java @@ -1,6 +1,6 @@ package eu.eudat.logic.services.operations.authentication; -import eu.eudat.data.entities.UserInfo; +import eu.eudat.data.old.UserInfo; import eu.eudat.logic.managers.MetricsManager; import eu.eudat.logic.services.ApiContext; import eu.eudat.models.data.security.Principal; diff --git a/dmp-backend/web/src/main/java/eu/eudat/logic/services/operations/authentication/NonVerifiedUserEmailAuthenticationService.java b/dmp-backend/web/src/main/java/eu/eudat/logic/services/operations/authentication/NonVerifiedUserEmailAuthenticationService.java index 12a341fb4..cd7fd5156 100644 --- a/dmp-backend/web/src/main/java/eu/eudat/logic/services/operations/authentication/NonVerifiedUserEmailAuthenticationService.java +++ b/dmp-backend/web/src/main/java/eu/eudat/logic/services/operations/authentication/NonVerifiedUserEmailAuthenticationService.java @@ -1,8 +1,6 @@ package eu.eudat.logic.services.operations.authentication; -import com.fasterxml.jackson.databind.ObjectMapper; -import eu.eudat.data.entities.UserInfo; -import eu.eudat.data.entities.UserRole; +import eu.eudat.data.old.UserInfo; import eu.eudat.exceptions.security.NullEmailException; import eu.eudat.logic.builders.model.models.PrincipalBuilder; import eu.eudat.logic.managers.MetricsManager; @@ -19,7 +17,6 @@ import java.time.Instant; import java.time.temporal.ChronoUnit; import java.util.Date; import java.util.HashSet; -import java.util.List; import java.util.UUID; @Service("nonVerifiedUserAuthenticationService") diff --git a/dmp-backend/web/src/main/java/eu/eudat/logic/services/operations/authentication/VerifiedUserAuthenticationService.java b/dmp-backend/web/src/main/java/eu/eudat/logic/services/operations/authentication/VerifiedUserAuthenticationService.java index 36e399ae6..2aa2384eb 100644 --- a/dmp-backend/web/src/main/java/eu/eudat/logic/services/operations/authentication/VerifiedUserAuthenticationService.java +++ b/dmp-backend/web/src/main/java/eu/eudat/logic/services/operations/authentication/VerifiedUserAuthenticationService.java @@ -1,8 +1,8 @@ package eu.eudat.logic.services.operations.authentication; import com.fasterxml.jackson.databind.ObjectMapper; -import eu.eudat.data.entities.UserInfo; -import eu.eudat.data.entities.UserRole; +import eu.eudat.data.old.UserInfo; +import eu.eudat.data.old.UserRole; import eu.eudat.exceptions.security.NullEmailException; import eu.eudat.logic.builders.model.models.PrincipalBuilder; import eu.eudat.logic.managers.MetricsManager; diff --git a/dmp-backend/web/src/main/java/eu/eudat/logic/services/utilities/ConfirmationEmailService.java b/dmp-backend/web/src/main/java/eu/eudat/logic/services/utilities/ConfirmationEmailService.java index dfb712d0f..d80e36768 100644 --- a/dmp-backend/web/src/main/java/eu/eudat/logic/services/utilities/ConfirmationEmailService.java +++ b/dmp-backend/web/src/main/java/eu/eudat/logic/services/utilities/ConfirmationEmailService.java @@ -1,7 +1,7 @@ package eu.eudat.logic.services.utilities; import eu.eudat.data.dao.entities.EmailConfirmationDao; -import eu.eudat.data.entities.EmailConfirmation; +import eu.eudat.data.old.EmailConfirmation; import eu.eudat.models.data.security.Principal; import java.util.UUID; diff --git a/dmp-backend/web/src/main/java/eu/eudat/logic/services/utilities/ConfirmationEmailServiceImpl.java b/dmp-backend/web/src/main/java/eu/eudat/logic/services/utilities/ConfirmationEmailServiceImpl.java index 52400bc01..912a17606 100644 --- a/dmp-backend/web/src/main/java/eu/eudat/logic/services/utilities/ConfirmationEmailServiceImpl.java +++ b/dmp-backend/web/src/main/java/eu/eudat/logic/services/utilities/ConfirmationEmailServiceImpl.java @@ -4,7 +4,7 @@ import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.core.type.TypeReference; import com.fasterxml.jackson.databind.ObjectMapper; import eu.eudat.data.dao.entities.EmailConfirmationDao; -import eu.eudat.data.entities.EmailConfirmation; +import eu.eudat.data.old.EmailConfirmation; import eu.eudat.models.data.mail.SimpleMail; import eu.eudat.models.data.security.Principal; import org.slf4j.Logger; diff --git a/dmp-backend/web/src/main/java/eu/eudat/logic/services/utilities/InvitationService.java b/dmp-backend/web/src/main/java/eu/eudat/logic/services/utilities/InvitationService.java index 5c0ba9e37..cb40ea5c7 100644 --- a/dmp-backend/web/src/main/java/eu/eudat/logic/services/utilities/InvitationService.java +++ b/dmp-backend/web/src/main/java/eu/eudat/logic/services/utilities/InvitationService.java @@ -3,20 +3,22 @@ package eu.eudat.logic.services.utilities; import eu.eudat.data.dao.entities.DMPDao; import eu.eudat.data.dao.entities.InvitationDao; -import eu.eudat.data.entities.DMP; -import eu.eudat.data.entities.Invitation; +import eu.eudat.data.old.DMP; +import eu.eudat.data.old.Invitation; +import eu.eudat.data.old.UserDMP; +import eu.eudat.data.old.UserInfo; import jakarta.mail.MessagingException; import java.util.List; import java.util.concurrent.CompletableFuture; public interface InvitationService { - void assignToDmp(DMPDao dmpDao, List users, DMP dmp); + void assignToDmp(DMPDao dmpDao, List users, DMP dmp); - void assignToDmp(DMPDao dmpDao, eu.eudat.data.entities.UserDMP user, DMP dmp); + void assignToDmp(DMPDao dmpDao, UserDMP user, DMP dmp); - void createInvitations(InvitationDao invitationDao, MailService mailService, List users, DMP dmp, Integer role, eu.eudat.data.entities.UserInfo creator) throws MessagingException; + void createInvitations(InvitationDao invitationDao, MailService mailService, List users, DMP dmp, Integer role, UserInfo creator) throws MessagingException; CompletableFuture sendInvitationAsync(DMP dmp, Invitation invitation, String recipient, MailService mailService, Integer role) throws MessagingException; } diff --git a/dmp-backend/web/src/main/java/eu/eudat/logic/services/utilities/InvitationServiceImpl.java b/dmp-backend/web/src/main/java/eu/eudat/logic/services/utilities/InvitationServiceImpl.java index 7aa4067aa..de5c8a462 100644 --- a/dmp-backend/web/src/main/java/eu/eudat/logic/services/utilities/InvitationServiceImpl.java +++ b/dmp-backend/web/src/main/java/eu/eudat/logic/services/utilities/InvitationServiceImpl.java @@ -3,9 +3,10 @@ package eu.eudat.logic.services.utilities; import eu.eudat.data.dao.entities.DMPDao; import eu.eudat.data.dao.entities.InvitationDao; -import eu.eudat.data.entities.DMP; -import eu.eudat.data.entities.Invitation; -import eu.eudat.data.entities.UserDMP; +import eu.eudat.data.old.DMP; +import eu.eudat.data.old.Invitation; +import eu.eudat.data.old.UserDMP; +import eu.eudat.data.old.UserInfo; import eu.eudat.models.data.invitation.Properties; import eu.eudat.models.data.mail.SimpleMail; import org.slf4j.Logger; @@ -35,15 +36,15 @@ public class InvitationServiceImpl implements InvitationService { } @Override - public void assignToDmp(DMPDao dmpDao, List users, DMP dmp) { - for (eu.eudat.data.entities.UserDMP user : users) { + public void assignToDmp(DMPDao dmpDao, List users, DMP dmp) { + for (UserDMP user : users) { dmp.getUsers().add(user); } dmpDao.createOrUpdate(dmp); } @Override - public void assignToDmp(DMPDao dmpDao, eu.eudat.data.entities.UserDMP user, DMP dmp) { + public void assignToDmp(DMPDao dmpDao, UserDMP user, DMP dmp) { if (!dmp.getUsers().stream().map(x -> x.getUser().getId()).collect(Collectors.toList()).contains(user.getId())) { dmp.getUsers().add(user); dmpDao.createOrUpdate(dmp); @@ -51,8 +52,8 @@ public class InvitationServiceImpl implements InvitationService { } @Override - public void createInvitations(InvitationDao invitationDao, MailService mailService, List users, DMP dmp, Integer role, eu.eudat.data.entities.UserInfo creator) throws MessagingException { - for (eu.eudat.data.entities.UserInfo userInfo : users) { + public void createInvitations(InvitationDao invitationDao, MailService mailService, List users, DMP dmp, Integer role, UserInfo creator) throws MessagingException { + for (UserInfo userInfo : users) { Invitation invitation = new Invitation(); invitation.setDmp(dmp); invitation.setInvitationEmail(userInfo.getEmail()); diff --git a/dmp-backend/web/src/main/java/eu/eudat/logic/utilities/documents/word/WordBuilder.java b/dmp-backend/web/src/main/java/eu/eudat/logic/utilities/documents/word/WordBuilder.java index dea584ddd..39693ba22 100644 --- a/dmp-backend/web/src/main/java/eu/eudat/logic/utilities/documents/word/WordBuilder.java +++ b/dmp-backend/web/src/main/java/eu/eudat/logic/utilities/documents/word/WordBuilder.java @@ -3,10 +3,10 @@ package eu.eudat.logic.utilities.documents.word; import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.databind.DeserializationFeature; import com.fasterxml.jackson.databind.ObjectMapper; -import eu.eudat.data.entities.DMP; -import eu.eudat.data.entities.Dataset; -import eu.eudat.data.entities.Organisation; -import eu.eudat.data.entities.Researcher; +import eu.eudat.data.old.DMP; +import eu.eudat.data.old.Dataset; +import eu.eudat.data.old.Organisation; +import eu.eudat.data.old.Researcher; import eu.eudat.logic.proxy.config.configloaders.ConfigLoader; import eu.eudat.logic.services.forms.VisibilityRuleService; import eu.eudat.logic.utilities.documents.types.ParagraphStyle; @@ -14,7 +14,6 @@ import eu.eudat.logic.utilities.interfaces.ApplierWithValue; import eu.eudat.logic.utilities.json.JavaToJson; import eu.eudat.models.data.components.commons.datafield.*; import eu.eudat.models.data.pid.PidLink; -import eu.eudat.models.data.pid.PidLinks; import eu.eudat.models.data.user.components.datasetprofile.Field; import eu.eudat.models.data.user.components.datasetprofile.FieldSet; import eu.eudat.models.data.user.components.datasetprofile.Section; diff --git a/dmp-backend/web/src/main/java/eu/eudat/logic/utilities/documents/xml/datasetProfileXml/datasetProfileModel/DatasetProfile.java b/dmp-backend/web/src/main/java/eu/eudat/logic/utilities/documents/xml/datasetProfileXml/datasetProfileModel/DatasetProfile.java index 2ada5ed33..3bef7e122 100644 --- a/dmp-backend/web/src/main/java/eu/eudat/logic/utilities/documents/xml/datasetProfileXml/datasetProfileModel/DatasetProfile.java +++ b/dmp-backend/web/src/main/java/eu/eudat/logic/utilities/documents/xml/datasetProfileXml/datasetProfileModel/DatasetProfile.java @@ -1,7 +1,7 @@ package eu.eudat.logic.utilities.documents.xml.datasetProfileXml.datasetProfileModel; -import eu.eudat.data.entities.DescriptionTemplate; +import eu.eudat.data.old.DescriptionTemplate; import jakarta.xml.bind.annotation.XmlAttribute; import jakarta.xml.bind.annotation.XmlElement; diff --git a/dmp-backend/web/src/main/java/eu/eudat/logic/utilities/documents/xml/dmpXml/dmpBlueprintModel/DmpBlueprint.java b/dmp-backend/web/src/main/java/eu/eudat/logic/utilities/documents/xml/dmpXml/dmpBlueprintModel/DmpBlueprint.java index bf21ffd08..3de7cbe6a 100644 --- a/dmp-backend/web/src/main/java/eu/eudat/logic/utilities/documents/xml/dmpXml/dmpBlueprintModel/DmpBlueprint.java +++ b/dmp-backend/web/src/main/java/eu/eudat/logic/utilities/documents/xml/dmpXml/dmpBlueprintModel/DmpBlueprint.java @@ -1,6 +1,6 @@ package eu.eudat.logic.utilities.documents.xml.dmpXml.dmpBlueprintModel; -import eu.eudat.data.entities.DMPProfile; +import eu.eudat.data.old.DMPProfile; import jakarta.xml.bind.annotation.XmlElement; import jakarta.xml.bind.annotation.XmlRootElement; diff --git a/dmp-backend/web/src/main/java/eu/eudat/logic/utilities/schedule/notification/NotificationScheduleJob.java b/dmp-backend/web/src/main/java/eu/eudat/logic/utilities/schedule/notification/NotificationScheduleJob.java index 60a6ef393..f1518e1b1 100644 --- a/dmp-backend/web/src/main/java/eu/eudat/logic/utilities/schedule/notification/NotificationScheduleJob.java +++ b/dmp-backend/web/src/main/java/eu/eudat/logic/utilities/schedule/notification/NotificationScheduleJob.java @@ -1,8 +1,8 @@ package eu.eudat.logic.utilities.schedule.notification; -import eu.eudat.data.entities.Notification; -import eu.eudat.data.enumeration.notification.ActiveStatus; -import eu.eudat.data.enumeration.notification.NotifyState; +import eu.eudat.data.old.Notification; +import eu.eudat.commons.enums.old.notification.ActiveStatus; +import eu.eudat.commons.enums.old.notification.NotifyState; import eu.eudat.logic.managers.NotificationManager; import eu.eudat.logic.services.ApiContext; import org.slf4j.Logger; diff --git a/dmp-backend/web/src/main/java/eu/eudat/models/data/dashboard/recent/model/RecentDatasetModel.java b/dmp-backend/web/src/main/java/eu/eudat/models/data/dashboard/recent/model/RecentDatasetModel.java index 4037b3f13..d0304d0f2 100644 --- a/dmp-backend/web/src/main/java/eu/eudat/models/data/dashboard/recent/model/RecentDatasetModel.java +++ b/dmp-backend/web/src/main/java/eu/eudat/models/data/dashboard/recent/model/RecentDatasetModel.java @@ -1,6 +1,6 @@ package eu.eudat.models.data.dashboard.recent.model; -import eu.eudat.data.entities.Dataset; +import eu.eudat.data.old.Dataset; import eu.eudat.models.data.datasetprofile.DatasetProfileOverviewModel; import eu.eudat.models.data.listingmodels.UserInfoListingModel; diff --git a/dmp-backend/web/src/main/java/eu/eudat/models/data/dashboard/recent/model/RecentDmpModel.java b/dmp-backend/web/src/main/java/eu/eudat/models/data/dashboard/recent/model/RecentDmpModel.java index a8c62e188..537f0558f 100644 --- a/dmp-backend/web/src/main/java/eu/eudat/models/data/dashboard/recent/model/RecentDmpModel.java +++ b/dmp-backend/web/src/main/java/eu/eudat/models/data/dashboard/recent/model/RecentDmpModel.java @@ -1,6 +1,6 @@ package eu.eudat.models.data.dashboard.recent.model; -import eu.eudat.data.entities.DMP; +import eu.eudat.data.old.DMP; import eu.eudat.models.data.listingmodels.UserInfoListingModel; import eu.eudat.models.data.urls.DatasetUrlListing; diff --git a/dmp-backend/web/src/main/java/eu/eudat/models/data/datarepository/DataRepositoryModel.java b/dmp-backend/web/src/main/java/eu/eudat/models/data/datarepository/DataRepositoryModel.java index fc8b32c26..5023ca212 100644 --- a/dmp-backend/web/src/main/java/eu/eudat/models/data/datarepository/DataRepositoryModel.java +++ b/dmp-backend/web/src/main/java/eu/eudat/models/data/datarepository/DataRepositoryModel.java @@ -1,7 +1,7 @@ package eu.eudat.models.data.datarepository; -import eu.eudat.data.entities.DataRepository; -import eu.eudat.data.entities.UserInfo; +import eu.eudat.data.old.DataRepository; +import eu.eudat.data.old.UserInfo; import eu.eudat.models.DataModel; import java.util.Date; diff --git a/dmp-backend/web/src/main/java/eu/eudat/models/data/dataset/DataRepository.java b/dmp-backend/web/src/main/java/eu/eudat/models/data/dataset/DataRepository.java index 7a17bf7a4..475b9882f 100644 --- a/dmp-backend/web/src/main/java/eu/eudat/models/data/dataset/DataRepository.java +++ b/dmp-backend/web/src/main/java/eu/eudat/models/data/dataset/DataRepository.java @@ -6,7 +6,7 @@ import eu.eudat.logic.utilities.helpers.LabelGenerator; import java.util.Date; import java.util.UUID; -public class DataRepository implements DataModel, LabelGenerator { +public class DataRepository implements DataModel, LabelGenerator { private String id; private String pid; private String name; @@ -80,7 +80,7 @@ public class DataRepository implements DataModel { +public class Dataset implements DataModel { private UUID id; private String label; private String reference; @@ -131,7 +131,7 @@ public class Dataset implements DataModel()); + entity.setRegistries(new HashSet()); for (Registry registry : this.registries) { entity.getRegistries().add(registry.toDataModel()); } @@ -170,7 +170,7 @@ public class Dataset implements DataModel()); for (DataRepository dataRepositoryModel : this.dataRepositories) { DatasetDataRepository datasetDataRepository = new DatasetDataRepository(); - eu.eudat.data.entities.DataRepository dataRepository = dataRepositoryModel.toDataModel(); + eu.eudat.data.old.DataRepository dataRepository = dataRepositoryModel.toDataModel(); datasetDataRepository.setDataRepository(dataRepository); entity.getDatasetDataRepositories().add(datasetDataRepository); } @@ -179,7 +179,7 @@ public class Dataset implements DataModel()); for (Service serviceModel : this.services) { - eu.eudat.data.entities.Service service = serviceModel.toDataModel(); + eu.eudat.data.old.Service service = serviceModel.toDataModel(); DatasetService datasetService = new DatasetService(); datasetService.setService(service); entity.getServices().add(datasetService); diff --git a/dmp-backend/web/src/main/java/eu/eudat/models/data/dataset/DatasetOverviewModel.java b/dmp-backend/web/src/main/java/eu/eudat/models/data/dataset/DatasetOverviewModel.java index 4091988ae..b989a8083 100644 --- a/dmp-backend/web/src/main/java/eu/eudat/models/data/dataset/DatasetOverviewModel.java +++ b/dmp-backend/web/src/main/java/eu/eudat/models/data/dataset/DatasetOverviewModel.java @@ -1,6 +1,6 @@ package eu.eudat.models.data.dataset; -import eu.eudat.data.entities.Dataset; +import eu.eudat.data.old.Dataset; import eu.eudat.models.DataModel; import eu.eudat.models.data.datasetprofile.DatasetProfileOverviewModel; import eu.eudat.models.data.grant.GrantOverviewModel; diff --git a/dmp-backend/web/src/main/java/eu/eudat/models/data/dataset/Registry.java b/dmp-backend/web/src/main/java/eu/eudat/models/data/dataset/Registry.java index 1c035e6a3..89fd7b774 100644 --- a/dmp-backend/web/src/main/java/eu/eudat/models/data/dataset/Registry.java +++ b/dmp-backend/web/src/main/java/eu/eudat/models/data/dataset/Registry.java @@ -6,7 +6,7 @@ import eu.eudat.logic.utilities.helpers.LabelGenerator; import java.util.Date; import java.util.UUID; -public class Registry implements DataModel, LabelGenerator { +public class Registry implements DataModel, LabelGenerator { private UUID id; private String label; private String abbreviation; @@ -68,7 +68,7 @@ public class Registry implements DataModel, LabelGenerator { +public class Service implements DataModel, LabelGenerator { private UUID id; private String label; @@ -65,7 +65,7 @@ public class Service implements DataModel()); for (DataRepository dataRepositoryModel : this.dataRepositories) { - eu.eudat.data.entities.DataRepository dataRepository = dataRepositoryModel.toDataModel(); + eu.eudat.data.old.DataRepository dataRepository = dataRepositoryModel.toDataModel(); DatasetDataRepository datasetDataRepository = new DatasetDataRepository(); datasetDataRepository.setDataRepository(dataRepository); Map> data = new HashMap<>(); @@ -283,7 +283,7 @@ public class DatasetWizardModel implements DataModel()); for (Service serviceModel : this.services) { - eu.eudat.data.entities.Service service = serviceModel.toDataModel(); + eu.eudat.data.old.Service service = serviceModel.toDataModel(); DatasetService datasetService = new DatasetService(); datasetService.setService(service); entity.getServices().add(datasetService); diff --git a/dmp-backend/web/src/main/java/eu/eudat/models/data/dmp/AssociatedProfile.java b/dmp-backend/web/src/main/java/eu/eudat/models/data/dmp/AssociatedProfile.java index 13343fa5b..0fc98b443 100644 --- a/dmp-backend/web/src/main/java/eu/eudat/models/data/dmp/AssociatedProfile.java +++ b/dmp-backend/web/src/main/java/eu/eudat/models/data/dmp/AssociatedProfile.java @@ -1,6 +1,6 @@ package eu.eudat.models.data.dmp; -import eu.eudat.data.entities.DescriptionTemplate; +import eu.eudat.data.old.DescriptionTemplate; import eu.eudat.logic.utilities.interfaces.XmlSerializable; import org.w3c.dom.Document; import org.w3c.dom.Element; diff --git a/dmp-backend/web/src/main/java/eu/eudat/models/data/dmp/DataManagementPlan.java b/dmp-backend/web/src/main/java/eu/eudat/models/data/dmp/DataManagementPlan.java index cf9905ffd..e2913fdf3 100644 --- a/dmp-backend/web/src/main/java/eu/eudat/models/data/dmp/DataManagementPlan.java +++ b/dmp-backend/web/src/main/java/eu/eudat/models/data/dmp/DataManagementPlan.java @@ -2,13 +2,11 @@ package eu.eudat.models.data.dmp; import com.fasterxml.jackson.core.type.TypeReference; import com.fasterxml.jackson.databind.ObjectMapper; -import eu.eudat.data.entities.*; -import eu.eudat.logic.utilities.builders.XmlBuilder; +import eu.eudat.data.old.*; import eu.eudat.models.DataModel; import eu.eudat.models.data.datasetwizard.DatasetWizardModel; import eu.eudat.models.data.doi.Doi; import eu.eudat.models.data.dynamicfields.DynamicFieldWithValue; -import eu.eudat.models.data.entities.xmlmodels.dmpprofiledefinition.DataManagementPlanProfile; import eu.eudat.models.data.funder.Funder; import eu.eudat.models.data.helpermodels.Tuple; import eu.eudat.models.data.listingmodels.UserInfoListingModel; diff --git a/dmp-backend/web/src/main/java/eu/eudat/models/data/dmp/DataManagementPlanEditorModel.java b/dmp-backend/web/src/main/java/eu/eudat/models/data/dmp/DataManagementPlanEditorModel.java index c23ad1f14..c7e6fae0f 100644 --- a/dmp-backend/web/src/main/java/eu/eudat/models/data/dmp/DataManagementPlanEditorModel.java +++ b/dmp-backend/web/src/main/java/eu/eudat/models/data/dmp/DataManagementPlanEditorModel.java @@ -2,12 +2,10 @@ package eu.eudat.models.data.dmp; import com.fasterxml.jackson.core.type.TypeReference; import com.fasterxml.jackson.databind.ObjectMapper; -import eu.eudat.data.entities.*; -import eu.eudat.logic.utilities.builders.XmlBuilder; +import eu.eudat.data.old.*; import eu.eudat.models.DataModel; import eu.eudat.models.data.datasetwizard.DatasetWizardModel; import eu.eudat.models.data.dynamicfields.DynamicFieldWithValue; -import eu.eudat.models.data.entities.xmlmodels.dmpprofiledefinition.DataManagementPlanProfile; import eu.eudat.models.data.funder.FunderDMPEditorModel; import eu.eudat.models.data.helpermodels.Tuple; import eu.eudat.models.data.listingmodels.UserInfoListingModel; diff --git a/dmp-backend/web/src/main/java/eu/eudat/models/data/dmp/DataManagementPlanNewVersionModel.java b/dmp-backend/web/src/main/java/eu/eudat/models/data/dmp/DataManagementPlanNewVersionModel.java index 19f336111..796e8ef06 100644 --- a/dmp-backend/web/src/main/java/eu/eudat/models/data/dmp/DataManagementPlanNewVersionModel.java +++ b/dmp-backend/web/src/main/java/eu/eudat/models/data/dmp/DataManagementPlanNewVersionModel.java @@ -1,7 +1,7 @@ package eu.eudat.models.data.dmp; import com.fasterxml.jackson.databind.ObjectMapper; -import eu.eudat.data.entities.*; +import eu.eudat.data.old.*; import eu.eudat.models.DataModel; import eu.eudat.models.data.dataset.Dataset; import eu.eudat.models.data.funder.FunderDMPEditorModel; @@ -176,10 +176,10 @@ public class DataManagementPlanNewVersionModel implements DataModel datasets = new LinkedList<>(); + List datasets = new LinkedList<>(); if (this.datasets != null) { for (Dataset dataset : this.datasets) { - eu.eudat.data.entities.Dataset entityDataset = new eu.eudat.data.entities.Dataset(); + eu.eudat.data.old.Dataset entityDataset = new eu.eudat.data.old.Dataset(); entityDataset.setId(dataset.getId()); datasets.add(entityDataset); } @@ -197,11 +197,11 @@ public class DataManagementPlanNewVersionModel implements DataModel, LabelGenerator { +public class Organisation implements DataModel, LabelGenerator { private String label; private String name; private String id; @@ -66,7 +66,7 @@ public class Organisation implements DataModel, LabelGenerator { +public class Researcher implements DataModel, LabelGenerator { private static final Logger logger = LoggerFactory.getLogger(Researcher.class); private String label; private String name; @@ -70,7 +70,7 @@ public class Researcher implements DataModel { +public class Funder implements DataModel { private UUID id; private String label; @@ -89,7 +90,7 @@ public class Funder implements DataModel } @Override - public Funder fromDataModel(eu.eudat.data.entities.Funder entity) { + public Funder fromDataModel(eu.eudat.data.old.Funder entity) { this.id = entity.getId(); this.label = entity.getLabel(); this.reference = entity.getReference(); @@ -111,8 +112,8 @@ public class Funder implements DataModel } @Override - public eu.eudat.data.entities.Funder toDataModel() { - eu.eudat.data.entities.Funder entity = new eu.eudat.data.entities.Funder(); + public eu.eudat.data.old.Funder toDataModel() { + eu.eudat.data.old.Funder entity = new eu.eudat.data.old.Funder(); if (this.getId() != null) { entity.setId(this.getId()); } else { @@ -137,7 +138,7 @@ public class Funder implements DataModel } entity.setDefinition(this.definition); entity.setCreated(this.created == null ? new Date() : this.created); - entity.setStatus(this.status != null ? this.getStatus() : eu.eudat.data.entities.Grant.Status.ACTIVE.getValue()); + entity.setStatus(this.status != null ? this.getStatus() : Grant.Status.ACTIVE.getValue()); entity.setModified(new Date()); return entity; } diff --git a/dmp-backend/web/src/main/java/eu/eudat/models/data/funder/FunderOverviewModel.java b/dmp-backend/web/src/main/java/eu/eudat/models/data/funder/FunderOverviewModel.java index 75e16a118..77bfa049c 100644 --- a/dmp-backend/web/src/main/java/eu/eudat/models/data/funder/FunderOverviewModel.java +++ b/dmp-backend/web/src/main/java/eu/eudat/models/data/funder/FunderOverviewModel.java @@ -1,6 +1,6 @@ package eu.eudat.models.data.funder; -import eu.eudat.data.entities.Funder; +import eu.eudat.data.old.Funder; import eu.eudat.models.DataModel; import java.util.UUID; diff --git a/dmp-backend/web/src/main/java/eu/eudat/models/data/grant/Grant.java b/dmp-backend/web/src/main/java/eu/eudat/models/data/grant/Grant.java index 798b3a6ab..b7ed79bbf 100644 --- a/dmp-backend/web/src/main/java/eu/eudat/models/data/grant/Grant.java +++ b/dmp-backend/web/src/main/java/eu/eudat/models/data/grant/Grant.java @@ -1,7 +1,7 @@ package eu.eudat.models.data.grant; -import eu.eudat.data.entities.Funder; -import eu.eudat.data.entities.UserInfo; +import eu.eudat.data.old.Funder; +import eu.eudat.data.old.UserInfo; import eu.eudat.models.DataModel; import eu.eudat.models.data.dmp.DataManagementPlan; import eu.eudat.models.data.files.ContentFile; @@ -12,7 +12,7 @@ import java.util.List; import java.util.UUID; -public class Grant implements DataModel { +public class Grant implements DataModel { private UUID id; private List dmps; @@ -24,7 +24,7 @@ public class Grant implements DataModel { private String definition; private Date startDate; private Date endDate; - private eu.eudat.data.entities.Grant.Status status; + private eu.eudat.data.old.Grant.Status status; private UserInfo creationUser; private Date created; private Date modified; @@ -108,7 +108,7 @@ public class Grant implements DataModel { return status.getValue(); } public void setStatus(Short status) { - this.status = eu.eudat.data.entities.Grant.Status.fromInteger(status); + this.status = eu.eudat.data.old.Grant.Status.fromInteger(status); } public UserInfo getCreationUser() { @@ -168,7 +168,7 @@ public class Grant implements DataModel { } @Override - public Grant fromDataModel(eu.eudat.data.entities.Grant entity) { + public Grant fromDataModel(eu.eudat.data.old.Grant entity) { this.id = entity.getId(); this.label = entity.getLabel(); this.abbreviation = entity.getAbbreviation(); @@ -198,8 +198,8 @@ public class Grant implements DataModel { } @Override - public eu.eudat.data.entities.Grant toDataModel() { - eu.eudat.data.entities.Grant entity = new eu.eudat.data.entities.Grant(); + public eu.eudat.data.old.Grant toDataModel() { + eu.eudat.data.old.Grant entity = new eu.eudat.data.old.Grant(); if (this.getId() != null) { entity.setId(this.getId()); } else { @@ -223,7 +223,7 @@ public class Grant implements DataModel { entity.setStartdate(this.startDate); entity.setCreated(this.created == null ? new Date() : this.created); entity.setEnddate(this.endDate); - entity.setStatus(this.status != null ? this.getStatus() : eu.eudat.data.entities.Grant.Status.ACTIVE.getValue()); + entity.setStatus(this.status != null ? this.getStatus() : eu.eudat.data.old.Grant.Status.ACTIVE.getValue()); entity.setModified(new Date()); entity.setDescription(this.description); if (this.funderId != null) { diff --git a/dmp-backend/web/src/main/java/eu/eudat/models/data/grant/GrantCriteriaModel.java b/dmp-backend/web/src/main/java/eu/eudat/models/data/grant/GrantCriteriaModel.java index 3b1a4d01e..7eff562fa 100644 --- a/dmp-backend/web/src/main/java/eu/eudat/models/data/grant/GrantCriteriaModel.java +++ b/dmp-backend/web/src/main/java/eu/eudat/models/data/grant/GrantCriteriaModel.java @@ -1,12 +1,12 @@ package eu.eudat.models.data.grant; -import eu.eudat.data.entities.Grant; +import eu.eudat.data.old.Grant; import eu.eudat.models.DataModel; import java.util.UUID; -public class GrantCriteriaModel implements DataModel { +public class GrantCriteriaModel implements DataModel { private UUID id; public UUID getId() { diff --git a/dmp-backend/web/src/main/java/eu/eudat/models/data/grant/GrantListingModel.java b/dmp-backend/web/src/main/java/eu/eudat/models/data/grant/GrantListingModel.java index 89851c9b9..905d1faf2 100644 --- a/dmp-backend/web/src/main/java/eu/eudat/models/data/grant/GrantListingModel.java +++ b/dmp-backend/web/src/main/java/eu/eudat/models/data/grant/GrantListingModel.java @@ -1,7 +1,7 @@ package eu.eudat.models.data.grant; -import eu.eudat.data.entities.Grant; -import eu.eudat.data.entities.UserInfo; +import eu.eudat.data.old.Grant; +import eu.eudat.data.old.UserInfo; import eu.eudat.models.DataModel; import eu.eudat.models.data.files.ContentFile; import eu.eudat.models.data.urls.DataManagementPlanUrlListing; @@ -13,7 +13,7 @@ import java.util.UUID; import java.util.stream.Collectors; -public class GrantListingModel implements DataModel { +public class GrantListingModel implements DataModel { private UUID id; @@ -171,13 +171,13 @@ public class GrantListingModel implements DataModel { diff --git a/dmp-backend/web/src/main/java/eu/eudat/models/data/lock/Lock.java b/dmp-backend/web/src/main/java/eu/eudat/models/data/lock/Lock.java index c8a078057..46d8e5e9c 100644 --- a/dmp-backend/web/src/main/java/eu/eudat/models/data/lock/Lock.java +++ b/dmp-backend/web/src/main/java/eu/eudat/models/data/lock/Lock.java @@ -6,7 +6,7 @@ import eu.eudat.models.data.userinfo.UserInfo; import java.util.Date; import java.util.UUID; -public class Lock implements DataModel { +public class Lock implements DataModel { private UUID id; private UUID target; private UserInfo lockedBy; @@ -54,7 +54,7 @@ public class Lock implements DataModel { } @Override - public Lock fromDataModel(eu.eudat.data.entities.Lock entity) { + public Lock fromDataModel(eu.eudat.data.old.Lock entity) { this.id = entity.getId(); this.target = entity.getTarget(); this.lockedBy = new UserInfo().fromDataModel(entity.getLockedBy()); @@ -64,8 +64,8 @@ public class Lock implements DataModel { } @Override - public eu.eudat.data.entities.Lock toDataModel() throws Exception { - eu.eudat.data.entities.Lock entity = new eu.eudat.data.entities.Lock(); + public eu.eudat.data.old.Lock toDataModel() throws Exception { + eu.eudat.data.old.Lock entity = new eu.eudat.data.old.Lock(); entity.setId(this.getId()); entity.setTarget(this.getTarget()); entity.setLockedAt(this.getLockedAt()); diff --git a/dmp-backend/web/src/main/java/eu/eudat/models/data/notiication/Notification.java b/dmp-backend/web/src/main/java/eu/eudat/models/data/notiication/Notification.java index 4ee5d13f4..44897e010 100644 --- a/dmp-backend/web/src/main/java/eu/eudat/models/data/notiication/Notification.java +++ b/dmp-backend/web/src/main/java/eu/eudat/models/data/notiication/Notification.java @@ -1,16 +1,16 @@ package eu.eudat.models.data.notiication; -import eu.eudat.data.enumeration.notification.ActiveStatus; -import eu.eudat.data.enumeration.notification.ContactType; -import eu.eudat.data.enumeration.notification.NotificationType; -import eu.eudat.data.enumeration.notification.NotifyState; +import eu.eudat.commons.enums.old.notification.ActiveStatus; +import eu.eudat.commons.enums.old.notification.ContactType; +import eu.eudat.commons.enums.old.notification.NotificationType; +import eu.eudat.commons.enums.old.notification.NotifyState; import eu.eudat.models.DataModel; import eu.eudat.models.data.userinfo.UserInfo; import java.util.Date; import java.util.UUID; -public class Notification implements DataModel { +public class Notification implements DataModel { private UUID id; private UserInfo userId; @@ -122,7 +122,7 @@ public class Notification implements DataModel { +public class Project implements DataModel { private UUID id; private List dmps; @@ -158,7 +159,7 @@ public class Project implements DataModel { diff --git a/dmp-backend/web/src/main/java/eu/eudat/models/data/researcher/Researcher.java b/dmp-backend/web/src/main/java/eu/eudat/models/data/researcher/Researcher.java index f84c204bf..57f9314bc 100644 --- a/dmp-backend/web/src/main/java/eu/eudat/models/data/researcher/Researcher.java +++ b/dmp-backend/web/src/main/java/eu/eudat/models/data/researcher/Researcher.java @@ -7,7 +7,7 @@ import java.util.Date; /** * Created by ikalyvas on 2/5/2018. */ -public class Researcher implements DataModel { +public class Researcher implements DataModel { private String firstName; @@ -30,13 +30,13 @@ public class Researcher implements DataModel { +public class UserInfo implements DataModel { private UUID id; private String email = null; @@ -97,7 +97,7 @@ public class UserInfo implements DataModel { +public class UserInfoInvitationModel implements DataModel { private UUID id; private String email; private String name; @@ -36,7 +36,7 @@ public class UserInfoInvitationModel implements DataModel { +public class UserListingModel implements DataModel { private static final Logger logger = LoggerFactory.getLogger(UserListingModel.class); private UUID id; diff --git a/dmp-backend/web/src/main/java/eu/eudat/models/data/userinfo/UserProfile.java b/dmp-backend/web/src/main/java/eu/eudat/models/data/userinfo/UserProfile.java index c6f04af26..85e4ea6dc 100644 --- a/dmp-backend/web/src/main/java/eu/eudat/models/data/userinfo/UserProfile.java +++ b/dmp-backend/web/src/main/java/eu/eudat/models/data/userinfo/UserProfile.java @@ -1,24 +1,20 @@ package eu.eudat.models.data.userinfo; -import com.fasterxml.jackson.core.JsonParser; import com.fasterxml.jackson.databind.ObjectMapper; -import eu.eudat.data.entities.*; -import eu.eudat.data.entities.UserInfo; +import eu.eudat.data.old.UserInfo; import eu.eudat.models.DataModel; import eu.eudat.models.data.dmp.DataManagementPlan; import eu.eudat.models.data.dmp.Organisation; -import net.minidev.json.parser.JSONParser; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import java.io.IOException; import java.util.*; -import java.util.stream.Collectors; /** * Created by ikalyvas on 8/24/2018. */ -public class UserProfile implements DataModel { +public class UserProfile implements DataModel { private static final Logger logger = LoggerFactory.getLogger(UserProfile.class); private UUID id; diff --git a/dmp-backend/web/src/main/java/eu/eudat/models/rda/mapper/ContactRDAMapper.java b/dmp-backend/web/src/main/java/eu/eudat/models/rda/mapper/ContactRDAMapper.java index 45d1248ec..d2999d6c4 100644 --- a/dmp-backend/web/src/main/java/eu/eudat/models/rda/mapper/ContactRDAMapper.java +++ b/dmp-backend/web/src/main/java/eu/eudat/models/rda/mapper/ContactRDAMapper.java @@ -1,8 +1,7 @@ package eu.eudat.models.rda.mapper; -import eu.eudat.data.entities.UserInfo; +import eu.eudat.data.old.UserInfo; import eu.eudat.models.rda.Contact; -import eu.eudat.models.rda.ContactId; public class ContactRDAMapper { diff --git a/dmp-backend/web/src/main/java/eu/eudat/models/rda/mapper/ContributorRDAMapper.java b/dmp-backend/web/src/main/java/eu/eudat/models/rda/mapper/ContributorRDAMapper.java index 2c2f1bcf0..88d41802e 100644 --- a/dmp-backend/web/src/main/java/eu/eudat/models/rda/mapper/ContributorRDAMapper.java +++ b/dmp-backend/web/src/main/java/eu/eudat/models/rda/mapper/ContributorRDAMapper.java @@ -1,8 +1,8 @@ package eu.eudat.models.rda.mapper; import com.fasterxml.jackson.databind.ObjectMapper; -import eu.eudat.data.entities.Researcher; -import eu.eudat.data.entities.UserDMP; +import eu.eudat.data.old.Researcher; +import eu.eudat.data.old.UserDMP; import eu.eudat.models.rda.Contributor; import eu.eudat.models.rda.ContributorId; import org.slf4j.Logger; diff --git a/dmp-backend/web/src/main/java/eu/eudat/models/rda/mapper/DatasetRDAMapper.java b/dmp-backend/web/src/main/java/eu/eudat/models/rda/mapper/DatasetRDAMapper.java index 71b7df1b0..6b5bc6ac9 100644 --- a/dmp-backend/web/src/main/java/eu/eudat/models/rda/mapper/DatasetRDAMapper.java +++ b/dmp-backend/web/src/main/java/eu/eudat/models/rda/mapper/DatasetRDAMapper.java @@ -3,7 +3,7 @@ package eu.eudat.models.rda.mapper; import com.fasterxml.jackson.databind.JsonNode; import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.databind.node.ArrayNode; -import eu.eudat.data.entities.DescriptionTemplate; +import eu.eudat.data.old.DescriptionTemplate; import eu.eudat.elastic.criteria.DatasetCriteria; import eu.eudat.elastic.entities.Tag; import eu.eudat.logic.managers.DatasetManager; @@ -43,7 +43,7 @@ public class DatasetRDAMapper { } @Transactional - public Dataset toRDA(eu.eudat.data.entities.Dataset dataset, eu.eudat.models.rda.Dmp dmp) { + public Dataset toRDA(eu.eudat.data.old.Dataset dataset, eu.eudat.models.rda.Dmp dmp) { Dataset rda = new Dataset(); // rda.setDatasetId(DatasetIdRDAMapper.toRDA(dataset.getId())); if (dataset.getLabel() == null) { @@ -280,8 +280,8 @@ public class DatasetRDAMapper { } - public eu.eudat.data.entities.Dataset toEntity(Dataset rda, DescriptionTemplate defaultProfile) { - eu.eudat.data.entities.Dataset entity = new eu.eudat.data.entities.Dataset(); + public eu.eudat.data.old.Dataset toEntity(Dataset rda, DescriptionTemplate defaultProfile) { + eu.eudat.data.old.Dataset entity = new eu.eudat.data.old.Dataset(); entity.setLabel(rda.getTitle()); entity.setDescription(rda.getDescription()); try { diff --git a/dmp-backend/web/src/main/java/eu/eudat/models/rda/mapper/DmpRDAMapper.java b/dmp-backend/web/src/main/java/eu/eudat/models/rda/mapper/DmpRDAMapper.java index 219f3399f..e93aa35fd 100644 --- a/dmp-backend/web/src/main/java/eu/eudat/models/rda/mapper/DmpRDAMapper.java +++ b/dmp-backend/web/src/main/java/eu/eudat/models/rda/mapper/DmpRDAMapper.java @@ -1,6 +1,6 @@ package eu.eudat.models.rda.mapper; -import eu.eudat.data.entities.*; +import eu.eudat.data.old.*; import eu.eudat.logic.services.ApiContext; import eu.eudat.logic.utilities.helpers.StreamDistinctBy; import eu.eudat.models.rda.Dmp; diff --git a/dmp-backend/web/src/main/java/eu/eudat/models/rda/mapper/FundingRDAMapper.java b/dmp-backend/web/src/main/java/eu/eudat/models/rda/mapper/FundingRDAMapper.java index 2e692478f..3fea3d499 100644 --- a/dmp-backend/web/src/main/java/eu/eudat/models/rda/mapper/FundingRDAMapper.java +++ b/dmp-backend/web/src/main/java/eu/eudat/models/rda/mapper/FundingRDAMapper.java @@ -1,8 +1,8 @@ package eu.eudat.models.rda.mapper; import eu.eudat.data.dao.criteria.GrantCriteria; -import eu.eudat.data.entities.Funder; -import eu.eudat.data.entities.Grant; +import eu.eudat.data.old.Funder; +import eu.eudat.data.old.Grant; import eu.eudat.logic.services.ApiContext; import eu.eudat.models.rda.Funding; diff --git a/dmp-backend/web/src/main/java/eu/eudat/models/rda/mapper/ProjectRDAMapper.java b/dmp-backend/web/src/main/java/eu/eudat/models/rda/mapper/ProjectRDAMapper.java index 2eccb27c7..bea495085 100644 --- a/dmp-backend/web/src/main/java/eu/eudat/models/rda/mapper/ProjectRDAMapper.java +++ b/dmp-backend/web/src/main/java/eu/eudat/models/rda/mapper/ProjectRDAMapper.java @@ -1,7 +1,6 @@ package eu.eudat.models.rda.mapper; -import eu.eudat.data.entities.Funder; -import eu.eudat.data.entities.Grant; +import eu.eudat.data.old.Grant; import eu.eudat.logic.services.ApiContext; import eu.eudat.models.rda.Project; import org.slf4j.Logger; @@ -14,7 +13,7 @@ public class ProjectRDAMapper { private final static Logger logger = LoggerFactory.getLogger(ProjectRDAMapper.class); @Transactional - public static Project toRDA(eu.eudat.data.entities.Project project, Grant grant) { + public static Project toRDA(eu.eudat.data.old.Project project, Grant grant) { Project rda = new Project(); try { rda.setTitle(project.getLabel()); @@ -40,17 +39,17 @@ public class ProjectRDAMapper { public static Map toEntity(Project rda, ApiContext apiContext) { Map entities = new HashMap<>(); - entities.put("project", new eu.eudat.data.entities.Project()); - ((eu.eudat.data.entities.Project) entities.get("project")).setLabel(rda.getTitle()); - ((eu.eudat.data.entities.Project) entities.get("project")).setDescription(rda.getDescription()); - ((eu.eudat.data.entities.Project) entities.get("project")).setId(UUID.randomUUID()); - ((eu.eudat.data.entities.Project) entities.get("project")).setStatus((short)1); - ((eu.eudat.data.entities.Project) entities.get("project")).setCreated(new Date()); - ((eu.eudat.data.entities.Project) entities.get("project")).setModified(new Date()); - ((eu.eudat.data.entities.Project) entities.get("project")).setStartdate(new Date()); - ((eu.eudat.data.entities.Project) entities.get("project")).setEnddate(new Date()); - ((eu.eudat.data.entities.Project) entities.get("project")).setType(0); - apiContext.getOperationsContext().getDatabaseRepository().getProjectDao().createOrUpdate(((eu.eudat.data.entities.Project) entities.get("project"))); + entities.put("project", new eu.eudat.data.old.Project()); + ((eu.eudat.data.old.Project) entities.get("project")).setLabel(rda.getTitle()); + ((eu.eudat.data.old.Project) entities.get("project")).setDescription(rda.getDescription()); + ((eu.eudat.data.old.Project) entities.get("project")).setId(UUID.randomUUID()); + ((eu.eudat.data.old.Project) entities.get("project")).setStatus((short)1); + ((eu.eudat.data.old.Project) entities.get("project")).setCreated(new Date()); + ((eu.eudat.data.old.Project) entities.get("project")).setModified(new Date()); + ((eu.eudat.data.old.Project) entities.get("project")).setStartdate(new Date()); + ((eu.eudat.data.old.Project) entities.get("project")).setEnddate(new Date()); + ((eu.eudat.data.old.Project) entities.get("project")).setType(0); + apiContext.getOperationsContext().getDatabaseRepository().getProjectDao().createOrUpdate(((eu.eudat.data.old.Project) entities.get("project"))); for (int i = 0; i < rda.getFunding().size(); i++) { entities.put("grant" + (i + 1), FundingRDAMapper.toEntity(rda.getFunding().get(i), apiContext)); } diff --git a/dmp-backend/web/src/main/java/eu/eudat/models/v2/AccountBuilder.java b/dmp-backend/web/src/main/java/eu/eudat/models/v2/AccountBuilder.java index ad1a31b50..c4398a63f 100644 --- a/dmp-backend/web/src/main/java/eu/eudat/models/v2/AccountBuilder.java +++ b/dmp-backend/web/src/main/java/eu/eudat/models/v2/AccountBuilder.java @@ -1,8 +1,8 @@ package eu.eudat.models.v2; import eu.eudat.commons.scope.user.UserScope; -import eu.eudat.data.entities.UserInfo; -import eu.eudat.data.entities.UserRole; +import eu.eudat.data.old.UserInfo; +import eu.eudat.data.old.UserRole; import eu.eudat.logic.services.ApiContext; import gr.cite.commons.web.authz.configuration.AuthorizationConfiguration; import gr.cite.commons.web.oidc.principal.CurrentPrincipalResolver; diff --git a/dmp-backend/web/src/main/java/eu/eudat/models/validators/GrantModelValidator.java b/dmp-backend/web/src/main/java/eu/eudat/models/validators/GrantModelValidator.java index 7c2a80d34..8e0588071 100644 --- a/dmp-backend/web/src/main/java/eu/eudat/models/validators/GrantModelValidator.java +++ b/dmp-backend/web/src/main/java/eu/eudat/models/validators/GrantModelValidator.java @@ -9,7 +9,7 @@ import org.springframework.stereotype.Component; public class GrantModelValidator extends FluentValidator { public GrantModelValidator() { - ruleFor(x -> x.getType()).compareAs((x -> eu.eudat.data.entities.Grant.GrantType.EXTERNAL.getValue()), (leftItem, rightItem) -> leftItem == rightItem) + ruleFor(x -> x.getType()).compareAs((x -> eu.eudat.data.old.Grant.GrantType.EXTERNAL.getValue()), (leftItem, rightItem) -> leftItem == rightItem) .withName("type").withMessage("grant.external.edit"); ruleFor(x -> x.getStartDate()).compareAs((x -> x.getEndDate()), (leftItem, rightItem) -> leftItem.after(rightItem)) .withName("startDate").withMessage("grant.startDate.overlapping") diff --git a/dmp-backend/web/src/main/java/eu/eudat/publicapi/criteria/dataset/DatasetPublicCriteria.java b/dmp-backend/web/src/main/java/eu/eudat/publicapi/criteria/dataset/DatasetPublicCriteria.java index fd3f210b1..16e63d2b0 100644 --- a/dmp-backend/web/src/main/java/eu/eudat/publicapi/criteria/dataset/DatasetPublicCriteria.java +++ b/dmp-backend/web/src/main/java/eu/eudat/publicapi/criteria/dataset/DatasetPublicCriteria.java @@ -1,7 +1,7 @@ package eu.eudat.publicapi.criteria.dataset; import eu.eudat.data.dao.criteria.Criteria; -import eu.eudat.data.entities.Dataset; +import eu.eudat.data.old.Dataset; import eu.eudat.elastic.entities.Tag; import io.swagger.annotations.ApiModelProperty; diff --git a/dmp-backend/web/src/main/java/eu/eudat/publicapi/criteria/dmp/DataManagementPlanPublicCriteria.java b/dmp-backend/web/src/main/java/eu/eudat/publicapi/criteria/dmp/DataManagementPlanPublicCriteria.java index 6a430deb1..9c2cc721c 100644 --- a/dmp-backend/web/src/main/java/eu/eudat/publicapi/criteria/dmp/DataManagementPlanPublicCriteria.java +++ b/dmp-backend/web/src/main/java/eu/eudat/publicapi/criteria/dmp/DataManagementPlanPublicCriteria.java @@ -1,7 +1,7 @@ package eu.eudat.publicapi.criteria.dmp; import eu.eudat.data.dao.criteria.Criteria; -import eu.eudat.data.entities.DMP; +import eu.eudat.data.old.DMP; import io.swagger.annotations.ApiModelProperty; import java.util.Date; diff --git a/dmp-backend/web/src/main/java/eu/eudat/publicapi/managers/DataManagementPlanPublicManager.java b/dmp-backend/web/src/main/java/eu/eudat/publicapi/managers/DataManagementPlanPublicManager.java index bf8a6339d..d92c98324 100644 --- a/dmp-backend/web/src/main/java/eu/eudat/publicapi/managers/DataManagementPlanPublicManager.java +++ b/dmp-backend/web/src/main/java/eu/eudat/publicapi/managers/DataManagementPlanPublicManager.java @@ -1,6 +1,6 @@ package eu.eudat.publicapi.managers; -import eu.eudat.data.entities.DMP; +import eu.eudat.data.old.DMP; import eu.eudat.exceptions.security.ForbiddenException; import eu.eudat.logic.managers.PaginationManager; import eu.eudat.logic.services.ApiContext; diff --git a/dmp-backend/web/src/main/java/eu/eudat/publicapi/managers/DatasetPublicManager.java b/dmp-backend/web/src/main/java/eu/eudat/publicapi/managers/DatasetPublicManager.java index d2b27919d..5b3f92790 100644 --- a/dmp-backend/web/src/main/java/eu/eudat/publicapi/managers/DatasetPublicManager.java +++ b/dmp-backend/web/src/main/java/eu/eudat/publicapi/managers/DatasetPublicManager.java @@ -1,7 +1,7 @@ package eu.eudat.publicapi.managers; -import eu.eudat.data.entities.Dataset; -import eu.eudat.data.entities.DescriptionTemplate; +import eu.eudat.data.old.Dataset; +import eu.eudat.data.old.DescriptionTemplate; import eu.eudat.data.query.definition.helpers.ColumnOrderings; import eu.eudat.elastic.criteria.DatasetCriteria; import eu.eudat.elastic.repository.DatasetRepository; diff --git a/dmp-backend/web/src/main/java/eu/eudat/publicapi/models/associatedprofile/AssociatedProfilePublicModel.java b/dmp-backend/web/src/main/java/eu/eudat/publicapi/models/associatedprofile/AssociatedProfilePublicModel.java index b04f57678..f3232baa3 100644 --- a/dmp-backend/web/src/main/java/eu/eudat/publicapi/models/associatedprofile/AssociatedProfilePublicModel.java +++ b/dmp-backend/web/src/main/java/eu/eudat/publicapi/models/associatedprofile/AssociatedProfilePublicModel.java @@ -1,6 +1,6 @@ package eu.eudat.publicapi.models.associatedprofile; -import eu.eudat.data.entities.DescriptionTemplate; +import eu.eudat.data.old.DescriptionTemplate; import eu.eudat.logic.utilities.interfaces.XmlSerializable; import org.w3c.dom.Document; import org.w3c.dom.Element; diff --git a/dmp-backend/web/src/main/java/eu/eudat/publicapi/models/datasetprofile/DatasetProfilePublicModel.java b/dmp-backend/web/src/main/java/eu/eudat/publicapi/models/datasetprofile/DatasetProfilePublicModel.java index 3bcd38302..bb9d2f486 100644 --- a/dmp-backend/web/src/main/java/eu/eudat/publicapi/models/datasetprofile/DatasetProfilePublicModel.java +++ b/dmp-backend/web/src/main/java/eu/eudat/publicapi/models/datasetprofile/DatasetProfilePublicModel.java @@ -1,6 +1,6 @@ package eu.eudat.publicapi.models.datasetprofile; -import eu.eudat.data.entities.DescriptionTemplate; +import eu.eudat.data.old.DescriptionTemplate; import eu.eudat.models.DataModel; import java.util.UUID; diff --git a/dmp-backend/web/src/main/java/eu/eudat/publicapi/models/datasetwizard/DataRepositoryPublicModel.java b/dmp-backend/web/src/main/java/eu/eudat/publicapi/models/datasetwizard/DataRepositoryPublicModel.java index a99af2a20..d922c7447 100644 --- a/dmp-backend/web/src/main/java/eu/eudat/publicapi/models/datasetwizard/DataRepositoryPublicModel.java +++ b/dmp-backend/web/src/main/java/eu/eudat/publicapi/models/datasetwizard/DataRepositoryPublicModel.java @@ -1,6 +1,6 @@ package eu.eudat.publicapi.models.datasetwizard; -import eu.eudat.data.entities.DataRepository; +import eu.eudat.data.old.DataRepository; import eu.eudat.logic.utilities.helpers.LabelGenerator; import eu.eudat.models.DataModel; diff --git a/dmp-backend/web/src/main/java/eu/eudat/publicapi/models/datasetwizard/ExternalDatasetPublicListingModel.java b/dmp-backend/web/src/main/java/eu/eudat/publicapi/models/datasetwizard/ExternalDatasetPublicListingModel.java index e625eff85..13e8f2239 100644 --- a/dmp-backend/web/src/main/java/eu/eudat/publicapi/models/datasetwizard/ExternalDatasetPublicListingModel.java +++ b/dmp-backend/web/src/main/java/eu/eudat/publicapi/models/datasetwizard/ExternalDatasetPublicListingModel.java @@ -1,6 +1,6 @@ package eu.eudat.publicapi.models.datasetwizard; -import eu.eudat.data.entities.ExternalDataset; +import eu.eudat.data.old.ExternalDataset; import eu.eudat.models.DataModel; import eu.eudat.types.externalsourcetype.ExternalDatasetType; diff --git a/dmp-backend/web/src/main/java/eu/eudat/publicapi/models/datasetwizard/RegistryPublicModel.java b/dmp-backend/web/src/main/java/eu/eudat/publicapi/models/datasetwizard/RegistryPublicModel.java index 8fbfa8329..9e6a5a34f 100644 --- a/dmp-backend/web/src/main/java/eu/eudat/publicapi/models/datasetwizard/RegistryPublicModel.java +++ b/dmp-backend/web/src/main/java/eu/eudat/publicapi/models/datasetwizard/RegistryPublicModel.java @@ -1,6 +1,6 @@ package eu.eudat.publicapi.models.datasetwizard; -import eu.eudat.data.entities.Registry; +import eu.eudat.data.old.Registry; import eu.eudat.logic.utilities.helpers.LabelGenerator; import eu.eudat.models.DataModel; diff --git a/dmp-backend/web/src/main/java/eu/eudat/publicapi/models/datasetwizard/ServicePublicModel.java b/dmp-backend/web/src/main/java/eu/eudat/publicapi/models/datasetwizard/ServicePublicModel.java index 8ff8184f2..6e9359da5 100644 --- a/dmp-backend/web/src/main/java/eu/eudat/publicapi/models/datasetwizard/ServicePublicModel.java +++ b/dmp-backend/web/src/main/java/eu/eudat/publicapi/models/datasetwizard/ServicePublicModel.java @@ -1,6 +1,6 @@ package eu.eudat.publicapi.models.datasetwizard; -import eu.eudat.data.entities.Service; +import eu.eudat.data.old.Service; import eu.eudat.logic.utilities.helpers.LabelGenerator; import eu.eudat.models.DataModel; diff --git a/dmp-backend/web/src/main/java/eu/eudat/publicapi/models/doi/DoiPublicModel.java b/dmp-backend/web/src/main/java/eu/eudat/publicapi/models/doi/DoiPublicModel.java index 4b8c5dbae..ec0b12d52 100644 --- a/dmp-backend/web/src/main/java/eu/eudat/publicapi/models/doi/DoiPublicModel.java +++ b/dmp-backend/web/src/main/java/eu/eudat/publicapi/models/doi/DoiPublicModel.java @@ -1,6 +1,6 @@ package eu.eudat.publicapi.models.doi; -import eu.eudat.data.entities.EntityDoi; +import eu.eudat.data.old.EntityDoi; import eu.eudat.logic.utilities.helpers.LabelGenerator; import eu.eudat.models.DataModel; diff --git a/dmp-backend/web/src/main/java/eu/eudat/publicapi/models/funder/FunderPublicOverviewModel.java b/dmp-backend/web/src/main/java/eu/eudat/publicapi/models/funder/FunderPublicOverviewModel.java index 86accf613..c64eac892 100644 --- a/dmp-backend/web/src/main/java/eu/eudat/publicapi/models/funder/FunderPublicOverviewModel.java +++ b/dmp-backend/web/src/main/java/eu/eudat/publicapi/models/funder/FunderPublicOverviewModel.java @@ -1,6 +1,6 @@ package eu.eudat.publicapi.models.funder; -import eu.eudat.data.entities.Funder; +import eu.eudat.data.old.Funder; import eu.eudat.models.DataModel; import java.util.UUID; diff --git a/dmp-backend/web/src/main/java/eu/eudat/publicapi/models/grant/GrantPublicOverviewModel.java b/dmp-backend/web/src/main/java/eu/eudat/publicapi/models/grant/GrantPublicOverviewModel.java index 75f17c937..04fb519cf 100644 --- a/dmp-backend/web/src/main/java/eu/eudat/publicapi/models/grant/GrantPublicOverviewModel.java +++ b/dmp-backend/web/src/main/java/eu/eudat/publicapi/models/grant/GrantPublicOverviewModel.java @@ -1,6 +1,6 @@ package eu.eudat.publicapi.models.grant; -import eu.eudat.data.entities.Grant; +import eu.eudat.data.old.Grant; import eu.eudat.models.DataModel; import eu.eudat.publicapi.models.funder.FunderPublicOverviewModel; diff --git a/dmp-backend/web/src/main/java/eu/eudat/publicapi/models/listingmodels/DataManagementPlanPublicListingModel.java b/dmp-backend/web/src/main/java/eu/eudat/publicapi/models/listingmodels/DataManagementPlanPublicListingModel.java index b8750a85d..a2ec2b725 100644 --- a/dmp-backend/web/src/main/java/eu/eudat/publicapi/models/listingmodels/DataManagementPlanPublicListingModel.java +++ b/dmp-backend/web/src/main/java/eu/eudat/publicapi/models/listingmodels/DataManagementPlanPublicListingModel.java @@ -1,7 +1,7 @@ package eu.eudat.publicapi.models.listingmodels; -import eu.eudat.data.entities.DMP; -import eu.eudat.data.entities.Grant; +import eu.eudat.data.old.DMP; +import eu.eudat.data.old.Grant; import eu.eudat.models.DataModel; import eu.eudat.publicapi.models.researcher.ResearcherPublicModel; import eu.eudat.publicapi.models.user.UserInfoPublicModel; diff --git a/dmp-backend/web/src/main/java/eu/eudat/publicapi/models/listingmodels/DatasetPublicListingModel.java b/dmp-backend/web/src/main/java/eu/eudat/publicapi/models/listingmodels/DatasetPublicListingModel.java index 5a9685d26..9744fb82b 100644 --- a/dmp-backend/web/src/main/java/eu/eudat/publicapi/models/listingmodels/DatasetPublicListingModel.java +++ b/dmp-backend/web/src/main/java/eu/eudat/publicapi/models/listingmodels/DatasetPublicListingModel.java @@ -1,8 +1,8 @@ package eu.eudat.publicapi.models.listingmodels; -import eu.eudat.data.entities.DMP; -import eu.eudat.data.entities.Dataset; -import eu.eudat.data.entities.Grant; +import eu.eudat.data.old.DMP; +import eu.eudat.data.old.Dataset; +import eu.eudat.data.old.Grant; import eu.eudat.models.DataModel; import eu.eudat.publicapi.models.datasetprofile.DatasetProfilePublicModel; import eu.eudat.publicapi.models.user.UserInfoPublicModel; diff --git a/dmp-backend/web/src/main/java/eu/eudat/publicapi/models/organisation/OrganizationPublicModel.java b/dmp-backend/web/src/main/java/eu/eudat/publicapi/models/organisation/OrganizationPublicModel.java index 05042d65e..05157ceba 100644 --- a/dmp-backend/web/src/main/java/eu/eudat/publicapi/models/organisation/OrganizationPublicModel.java +++ b/dmp-backend/web/src/main/java/eu/eudat/publicapi/models/organisation/OrganizationPublicModel.java @@ -1,6 +1,6 @@ package eu.eudat.publicapi.models.organisation; -import eu.eudat.data.entities.Organisation; +import eu.eudat.data.old.Organisation; import eu.eudat.logic.utilities.helpers.LabelGenerator; import eu.eudat.models.DataModel; diff --git a/dmp-backend/web/src/main/java/eu/eudat/publicapi/models/overviewmodels/DataManagementPlanPublicModel.java b/dmp-backend/web/src/main/java/eu/eudat/publicapi/models/overviewmodels/DataManagementPlanPublicModel.java index fb71677c5..8f280c1ff 100644 --- a/dmp-backend/web/src/main/java/eu/eudat/publicapi/models/overviewmodels/DataManagementPlanPublicModel.java +++ b/dmp-backend/web/src/main/java/eu/eudat/publicapi/models/overviewmodels/DataManagementPlanPublicModel.java @@ -2,13 +2,12 @@ package eu.eudat.publicapi.models.overviewmodels; import com.fasterxml.jackson.core.type.TypeReference; import com.fasterxml.jackson.databind.ObjectMapper; -import eu.eudat.data.entities.DMP; -import eu.eudat.data.entities.DMPDatasetProfile; -import eu.eudat.data.entities.Dataset; -import eu.eudat.data.entities.DescriptionTemplate; +import eu.eudat.data.old.DMP; +import eu.eudat.data.old.DMPDatasetProfile; +import eu.eudat.data.old.Dataset; +import eu.eudat.data.old.DescriptionTemplate; import eu.eudat.logic.utilities.builders.XmlBuilder; import eu.eudat.models.DataModel; -import eu.eudat.models.data.dmp.AssociatedProfile; import eu.eudat.models.data.user.composite.PagedDatasetProfile; import eu.eudat.publicapi.models.associatedprofile.AssociatedProfilePublicModel; import eu.eudat.publicapi.models.doi.DoiPublicModel; diff --git a/dmp-backend/web/src/main/java/eu/eudat/publicapi/models/overviewmodels/DatasetPublicModel.java b/dmp-backend/web/src/main/java/eu/eudat/publicapi/models/overviewmodels/DatasetPublicModel.java index aa3ae7779..ec0ca0d59 100644 --- a/dmp-backend/web/src/main/java/eu/eudat/publicapi/models/overviewmodels/DatasetPublicModel.java +++ b/dmp-backend/web/src/main/java/eu/eudat/publicapi/models/overviewmodels/DatasetPublicModel.java @@ -1,6 +1,6 @@ package eu.eudat.publicapi.models.overviewmodels; -import eu.eudat.data.entities.*; +import eu.eudat.data.old.*; import eu.eudat.elastic.entities.Tag; import eu.eudat.models.DataModel; import eu.eudat.models.data.user.composite.PagedDatasetProfile; diff --git a/dmp-backend/web/src/main/java/eu/eudat/publicapi/models/researcher/ResearcherPublicModel.java b/dmp-backend/web/src/main/java/eu/eudat/publicapi/models/researcher/ResearcherPublicModel.java index 0630ffd12..bf57f8423 100644 --- a/dmp-backend/web/src/main/java/eu/eudat/publicapi/models/researcher/ResearcherPublicModel.java +++ b/dmp-backend/web/src/main/java/eu/eudat/publicapi/models/researcher/ResearcherPublicModel.java @@ -1,7 +1,7 @@ package eu.eudat.publicapi.models.researcher; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import eu.eudat.data.entities.Researcher; +import eu.eudat.data.old.Researcher; import eu.eudat.logic.utilities.helpers.LabelGenerator; import eu.eudat.models.DataModel; import org.slf4j.Logger; diff --git a/dmp-backend/web/src/main/java/eu/eudat/publicapi/models/user/UserInfoPublicModel.java b/dmp-backend/web/src/main/java/eu/eudat/publicapi/models/user/UserInfoPublicModel.java index 8e08fab36..c553644e2 100644 --- a/dmp-backend/web/src/main/java/eu/eudat/publicapi/models/user/UserInfoPublicModel.java +++ b/dmp-backend/web/src/main/java/eu/eudat/publicapi/models/user/UserInfoPublicModel.java @@ -1,7 +1,7 @@ package eu.eudat.publicapi.models.user; -import eu.eudat.data.entities.UserDMP; -import eu.eudat.data.entities.UserInfo; +import eu.eudat.data.old.UserDMP; +import eu.eudat.data.old.UserInfo; import eu.eudat.models.DataModel; import java.util.UUID; diff --git a/dmp-backend/web/src/main/java/eu/eudat/publicapi/request/dataset/DatasetPublicTableRequest.java b/dmp-backend/web/src/main/java/eu/eudat/publicapi/request/dataset/DatasetPublicTableRequest.java index 44f096e89..73e61ff8e 100644 --- a/dmp-backend/web/src/main/java/eu/eudat/publicapi/request/dataset/DatasetPublicTableRequest.java +++ b/dmp-backend/web/src/main/java/eu/eudat/publicapi/request/dataset/DatasetPublicTableRequest.java @@ -1,6 +1,6 @@ package eu.eudat.publicapi.request.dataset; -import eu.eudat.data.entities.Dataset; +import eu.eudat.data.old.Dataset; import eu.eudat.data.query.definition.TableQuery; import eu.eudat.publicapi.criteria.dataset.DatasetPublicCriteria; import eu.eudat.queryable.QueryableList; diff --git a/dmp-backend/web/src/main/java/eu/eudat/publicapi/request/dmp/DataManagmentPlanPublicTableRequest.java b/dmp-backend/web/src/main/java/eu/eudat/publicapi/request/dmp/DataManagmentPlanPublicTableRequest.java index c28bf6040..133be1a93 100644 --- a/dmp-backend/web/src/main/java/eu/eudat/publicapi/request/dmp/DataManagmentPlanPublicTableRequest.java +++ b/dmp-backend/web/src/main/java/eu/eudat/publicapi/request/dmp/DataManagmentPlanPublicTableRequest.java @@ -1,6 +1,6 @@ package eu.eudat.publicapi.request.dmp; -import eu.eudat.data.entities.DMP; +import eu.eudat.data.old.DMP; import eu.eudat.data.query.PaginationService; import eu.eudat.data.query.definition.TableQuery; import eu.eudat.publicapi.criteria.dmp.DataManagementPlanPublicCriteria; @@ -10,7 +10,6 @@ import eu.eudat.queryable.types.SelectionField; import jakarta.persistence.criteria.Predicate; import java.util.*; -import java.util.stream.Collectors; public class DataManagmentPlanPublicTableRequest extends TableQuery {