Merge branch 'dmp-refactoring' of https://code-repo.d4science.org/MaDgiK-CITE/argos into dmp-refactoring

This commit is contained in:
Sofia Papacharalampous 2024-06-05 17:35:50 +03:00
commit 9d01ab25d1
78 changed files with 86 additions and 86 deletions

View File

@ -39,7 +39,7 @@ permissions:
roles: roles:
- Admin - Admin
clients: [ ] clients: [ ]
allowAnonymous: true allowAnonymous: false
allowAuthenticated: false allowAuthenticated: false
EditUser: EditUser:
roles: [ ] roles: [ ]
@ -59,7 +59,7 @@ permissions:
- TenantAdmin - TenantAdmin
entityAffiliated: true entityAffiliated: true
clients: [ ] clients: [ ]
allowAnonymous: true allowAnonymous: false
allowAuthenticated: false allowAuthenticated: false
NewAnnotation: NewAnnotation:
roles: roles:
@ -67,14 +67,14 @@ permissions:
- TenantAdmin - TenantAdmin
entityAffiliated: true entityAffiliated: true
clients: [ ] clients: [ ]
allowAnonymous: true allowAnonymous: false
allowAuthenticated: false allowAuthenticated: false
EditAnnotation: EditAnnotation:
roles: roles:
- Admin - Admin
- TenantAdmin - TenantAdmin
clients: [ ] clients: [ ]
allowAnonymous: true allowAnonymous: false
allowAuthenticated: false allowAuthenticated: false
DeleteAnnotation: DeleteAnnotation:
roles: roles:

View File

@ -180,7 +180,7 @@ public class AnnotationQuery extends QueryBase<AnnotationEntity> {
} }
public AnnotationQuery disableTracking() { public AnnotationQuery disableTracking() {
this.noTracking = false; this.noTracking = true;
return this; return this;
} }

View File

@ -113,7 +113,7 @@ public class EntityUserQuery extends QueryBase<EntityUserEntity> {
} }
public EntityUserQuery disableTracking() { public EntityUserQuery disableTracking() {
this.noTracking = false; this.noTracking = true;
return this; return this;
} }

View File

@ -126,7 +126,7 @@ public class QueueInboxQuery extends QueryBase<QueueInboxEntity> {
} }
public QueueInboxQuery disableTracking() { public QueueInboxQuery disableTracking() {
this.noTracking = false; this.noTracking = true;
return this; return this;
} }

View File

@ -131,7 +131,7 @@ public class QueueOutboxQuery extends QueryBase<QueueOutboxEntity> {
} }
public QueueOutboxQuery disableTracking() { public QueueOutboxQuery disableTracking() {
this.noTracking = false; this.noTracking = true;
return this; return this;
} }

View File

@ -74,7 +74,7 @@ public class TenantQuery extends QueryBase<TenantEntity> {
} }
public TenantQuery disableTracking() { public TenantQuery disableTracking() {
this.noTracking = false; this.noTracking = true;
return this; return this;
} }

View File

@ -120,7 +120,7 @@ public class TenantUserQuery extends QueryBase<TenantUserEntity> {
} }
public TenantUserQuery disableTracking() { public TenantUserQuery disableTracking() {
this.noTracking = false; this.noTracking = true;
return this; return this;
} }

View File

@ -131,7 +131,7 @@ public class UserCredentialQuery extends QueryBase<UserCredentialEntity> {
} }
public UserCredentialQuery disableTracking() { public UserCredentialQuery disableTracking() {
this.noTracking = false; this.noTracking = true;
return this; return this;
} }

View File

@ -90,7 +90,7 @@ public class UserQuery extends QueryBase<UserEntity> {
} }
public UserQuery disableTracking() { public UserQuery disableTracking() {
this.noTracking = false; this.noTracking = true;
return this; return this;
} }

View File

@ -164,7 +164,7 @@ public class ActionConfirmationQuery extends QueryBase<ActionConfirmationEntity>
} }
public ActionConfirmationQuery disableTracking() { public ActionConfirmationQuery disableTracking() {
this.noTracking = false; this.noTracking = true;
return this; return this;
} }

View File

@ -217,7 +217,7 @@ public class DescriptionQuery extends QueryBase<DescriptionEntity> {
} }
public DescriptionQuery disableTracking() { public DescriptionQuery disableTracking() {
this.noTracking = false; this.noTracking = true;
return this; return this;
} }

View File

@ -132,7 +132,7 @@ public class DescriptionReferenceQuery extends QueryBase<DescriptionReferenceEnt
} }
public DescriptionReferenceQuery disableTracking() { public DescriptionReferenceQuery disableTracking() {
this.noTracking = false; this.noTracking = true;
return this; return this;
} }

View File

@ -121,7 +121,7 @@ public class DescriptionTagQuery extends QueryBase<DescriptionTagEntity> {
} }
public DescriptionTagQuery disableTracking() { public DescriptionTagQuery disableTracking() {
this.noTracking = false; this.noTracking = true;
return this; return this;
} }

View File

@ -218,7 +218,7 @@ public class DescriptionTemplateQuery extends QueryBase<DescriptionTemplateEntit
} }
public DescriptionTemplateQuery disableTracking() { public DescriptionTemplateQuery disableTracking() {
this.noTracking = false; this.noTracking = true;
return this; return this;
} }

View File

@ -111,7 +111,7 @@ public class DescriptionTemplateTypeQuery extends QueryBase<DescriptionTemplateT
} }
public DescriptionTemplateTypeQuery disableTracking() { public DescriptionTemplateTypeQuery disableTracking() {
this.noTracking = false; this.noTracking = true;
return this; return this;
} }

View File

@ -164,7 +164,7 @@ public class DmpBlueprintQuery extends QueryBase<DmpBlueprintEntity> {
} }
public DmpBlueprintQuery disableTracking() { public DmpBlueprintQuery disableTracking() {
this.noTracking = false; this.noTracking = true;
return this; return this;
} }

View File

@ -156,7 +156,7 @@ public class DmpDescriptionTemplateQuery extends QueryBase<DmpDescriptionTemplat
} }
public DmpDescriptionTemplateQuery disableTracking() { public DmpDescriptionTemplateQuery disableTracking() {
this.noTracking = false; this.noTracking = true;
return this; return this;
} }

View File

@ -247,7 +247,7 @@ public class DmpQuery extends QueryBase<DmpEntity> {
} }
public DmpQuery disableTracking() { public DmpQuery disableTracking() {
this.noTracking = false; this.noTracking = true;
return this; return this;
} }

View File

@ -122,7 +122,7 @@ public class DmpReferenceQuery extends QueryBase<DmpReferenceEntity> {
} }
public DmpReferenceQuery disableTracking() { public DmpReferenceQuery disableTracking() {
this.noTracking = false; this.noTracking = true;
return this; return this;
} }

View File

@ -168,7 +168,7 @@ public class DmpUserQuery extends QueryBase<DmpUserEntity> {
} }
public DmpUserQuery disableTracking() { public DmpUserQuery disableTracking() {
this.noTracking = false; this.noTracking = true;
return this; return this;
} }

View File

@ -166,7 +166,7 @@ public class EntityDoiQuery extends QueryBase<EntityDoiEntity> {
} }
public EntityDoiQuery disableTracking() { public EntityDoiQuery disableTracking() {
this.noTracking = false; this.noTracking = true;
return this; return this;
} }

View File

@ -110,7 +110,7 @@ public class LanguageQuery extends QueryBase<LanguageEntity> {
} }
public LanguageQuery disableTracking() { public LanguageQuery disableTracking() {
this.noTracking = false; this.noTracking = true;
return this; return this;
} }

View File

@ -144,7 +144,7 @@ public class LockQuery extends QueryBase<LockEntity> {
} }
public LockQuery disableTracking() { public LockQuery disableTracking() {
this.noTracking = false; this.noTracking = true;
return this; return this;
} }

View File

@ -93,7 +93,7 @@ public class PrefillingSourceQuery extends QueryBase<PrefillingSourceEntity> {
} }
public PrefillingSourceQuery disableTracking() { public PrefillingSourceQuery disableTracking() {
this.noTracking = false; this.noTracking = true;
return this; return this;
} }

View File

@ -126,7 +126,7 @@ public class QueueInboxQuery extends QueryBase<QueueInboxEntity> {
} }
public QueueInboxQuery disableTracking() { public QueueInboxQuery disableTracking() {
this.noTracking = false; this.noTracking = true;
return this; return this;
} }

View File

@ -132,7 +132,7 @@ public class QueueOutboxQuery extends QueryBase<QueueOutboxEntity> {
} }
public QueueOutboxQuery disableTracking() { public QueueOutboxQuery disableTracking() {
this.noTracking = false; this.noTracking = true;
return this; return this;
} }

View File

@ -184,7 +184,7 @@ public class ReferenceQuery extends QueryBase<ReferenceEntity> {
} }
public ReferenceQuery disableTracking() { public ReferenceQuery disableTracking() {
this.noTracking = false; this.noTracking = true;
return this; return this;
} }

View File

@ -111,7 +111,7 @@ public class ReferenceTypeQuery extends QueryBase<ReferenceTypeEntity> {
} }
public ReferenceTypeQuery disableTracking() { public ReferenceTypeQuery disableTracking() {
this.noTracking = false; this.noTracking = true;
return this; return this;
} }

View File

@ -118,7 +118,7 @@ public class StorageFileQuery extends QueryBase<StorageFileEntity> {
} }
public StorageFileQuery disableTracking() { public StorageFileQuery disableTracking() {
this.noTracking = false; this.noTracking = true;
return this; return this;
} }

View File

@ -128,7 +128,7 @@ public class SupportiveMaterialQuery extends QueryBase<SupportiveMaterialEntity>
} }
public SupportiveMaterialQuery disableTracking() { public SupportiveMaterialQuery disableTracking() {
this.noTracking = false; this.noTracking = true;
return this; return this;
} }

View File

@ -164,7 +164,7 @@ public class TagQuery extends QueryBase<TagEntity> {
} }
public TagQuery disableTracking() { public TagQuery disableTracking() {
this.noTracking = false; this.noTracking = true;
return this; return this;
} }

View File

@ -126,7 +126,7 @@ public class TenantConfigurationQuery extends QueryBase<TenantConfigurationEntit
} }
public TenantConfigurationQuery disableTracking() { public TenantConfigurationQuery disableTracking() {
this.noTracking = false; this.noTracking = true;
return this; return this;
} }

View File

@ -113,7 +113,7 @@ public class TenantQuery extends QueryBase<TenantEntity> {
} }
public TenantQuery disableTracking() { public TenantQuery disableTracking() {
this.noTracking = false; this.noTracking = true;
return this; return this;
} }

View File

@ -118,7 +118,7 @@ public class TenantUserQuery extends QueryBase<TenantUserEntity> {
} }
public TenantUserQuery disableTracking() { public TenantUserQuery disableTracking() {
this.noTracking = false; this.noTracking = true;
return this; return this;
} }

View File

@ -139,7 +139,7 @@ public class UserContactInfoQuery extends QueryBase<UserContactInfoEntity> {
} }
public UserContactInfoQuery disableTracking() { public UserContactInfoQuery disableTracking() {
this.noTracking = false; this.noTracking = true;
return this; return this;
} }

View File

@ -102,7 +102,7 @@ public class UserCredentialQuery extends QueryBase<UserCredentialEntity> {
} }
public UserCredentialQuery disableTracking() { public UserCredentialQuery disableTracking() {
this.noTracking = false; this.noTracking = true;
return this; return this;
} }

View File

@ -127,7 +127,7 @@ public class UserDescriptionTemplateQuery extends QueryBase<UserDescriptionTempl
} }
public UserDescriptionTemplateQuery disableTracking() { public UserDescriptionTemplateQuery disableTracking() {
this.noTracking = false; this.noTracking = true;
return this; return this;
} }

View File

@ -131,7 +131,7 @@ public class UserQuery extends QueryBase<UserEntity> {
} }
public UserQuery disableTracking() { public UserQuery disableTracking() {
this.noTracking = false; this.noTracking = true;
return this; return this;
} }

View File

@ -129,7 +129,7 @@ public class UserRoleQuery extends QueryBase<UserRoleEntity> {
} }
public UserRoleQuery disableTracking() { public UserRoleQuery disableTracking() {
this.noTracking = false; this.noTracking = true;
return this; return this;
} }

View File

@ -133,7 +133,7 @@ public class UserSettingsQuery extends QueryBase<UserSettingsEntity> {
} }
public UserSettingsQuery disableTracking() { public UserSettingsQuery disableTracking() {
this.noTracking = false; this.noTracking = true;
return this; return this;
} }

View File

@ -235,7 +235,7 @@ public class FileTransformerServiceImpl implements FileTransformerService {
@Override @Override
public org.opencdmp.model.file.FileEnvelope exportDmp(UUID dmpId, String repositoryId, String format) throws InvalidAlgorithmParameterException, NoSuchPaddingException, IllegalBlockSizeException, InvalidApplicationException, NoSuchAlgorithmException, BadPaddingException, InvalidKeyException { public org.opencdmp.model.file.FileEnvelope exportDmp(UUID dmpId, String repositoryId, String format) throws InvalidAlgorithmParameterException, NoSuchPaddingException, IllegalBlockSizeException, InvalidApplicationException, NoSuchAlgorithmException, BadPaddingException, InvalidKeyException {
this.authorizationService.authorizeForce(Permission.EditDmp); this.authorizationService.authorizeForce(Permission.ExportDmp);
//GK: First get the right client //GK: First get the right client
FileTransformerRepository repository = this.getRepository(repositoryId); FileTransformerRepository repository = this.getRepository(repositoryId);
if (repository == null) throw new MyNotFoundException(this.messageSource.getMessage("General_ItemNotFound", new Object[]{format, FileTransformerRepository.class.getSimpleName()}, LocaleContextHolder.getLocale())); if (repository == null) throw new MyNotFoundException(this.messageSource.getMessage("General_ItemNotFound", new Object[]{format, FileTransformerRepository.class.getSimpleName()}, LocaleContextHolder.getLocale()));
@ -255,7 +255,7 @@ public class FileTransformerServiceImpl implements FileTransformerService {
@Override @Override
public org.opencdmp.model.file.FileEnvelope exportDescription(UUID descriptionId, String repositoryId, String format) throws InvalidAlgorithmParameterException, NoSuchPaddingException, IllegalBlockSizeException, InvalidApplicationException, NoSuchAlgorithmException, BadPaddingException, InvalidKeyException { public org.opencdmp.model.file.FileEnvelope exportDescription(UUID descriptionId, String repositoryId, String format) throws InvalidAlgorithmParameterException, NoSuchPaddingException, IllegalBlockSizeException, InvalidApplicationException, NoSuchAlgorithmException, BadPaddingException, InvalidKeyException {
this.authorizationService.authorizeForce(Permission.EditDmp); this.authorizationService.authorizeForce(Permission.ExportDescription);
//GK: First get the right client //GK: First get the right client
FileTransformerRepository repository = this.getRepository(repositoryId); FileTransformerRepository repository = this.getRepository(repositoryId);
if (repository == null) throw new MyNotFoundException(this.messageSource.getMessage("General_ItemNotFound", new Object[]{format, FileTransformerRepository.class.getSimpleName()}, LocaleContextHolder.getLocale())); if (repository == null) throw new MyNotFoundException(this.messageSource.getMessage("General_ItemNotFound", new Object[]{format, FileTransformerRepository.class.getSimpleName()}, LocaleContextHolder.getLocale()));

View File

@ -32,7 +32,7 @@ permissions:
roles: roles:
- Admin - Admin
clients: [ ] clients: [ ]
allowAnonymous: true allowAnonymous: false
allowAuthenticated: false allowAuthenticated: false
EditUser: EditUser:
roles: [] roles: []
@ -51,7 +51,7 @@ permissions:
- Admin - Admin
- InstallationAdmin - InstallationAdmin
clients: [ "opencdmp-api-dev" ] clients: [ "opencdmp-api-dev" ]
allowAnonymous: true allowAnonymous: false
allowAuthenticated: false allowAuthenticated: false
EditUserContactInfo: EditUserContactInfo:
roles: roles:
@ -73,13 +73,13 @@ permissions:
roles: roles:
- Admin - Admin
clients: [ ] clients: [ ]
allowAnonymous: true allowAnonymous: false
allowAuthenticated: false allowAuthenticated: false
EditNotification: EditNotification:
roles: roles:
- Admin - Admin
clients: [ ] clients: [ ]
allowAnonymous: true allowAnonymous: false
allowAuthenticated: false allowAuthenticated: false
DeleteNotification: DeleteNotification:
roles: roles:
@ -115,7 +115,7 @@ permissions:
roles: roles:
- Admin - Admin
clients: [ ] clients: [ ]
allowAnonymous: true allowAnonymous: false
allowAuthenticated: false allowAuthenticated: false
EditUserNotificationPreference: EditUserNotificationPreference:
roles: roles:

View File

@ -1 +1 @@
ARGOS - Description Finalised OpenCDMP - Description Finalised

View File

@ -1 +1 @@
ARGOS - Description Finalised OpenCDMP - Description Finalised

View File

@ -1 +1 @@
ARGOS - Description Modified OpenCDMP - Description Modified

View File

@ -1 +1 @@
ARGOS - Description Modified OpenCDMP - Description Modified

View File

@ -1 +1 @@
ARGOS - Description Template Invite OpenCDMP - Description Template Invite

View File

@ -1 +1 @@
ARGOS - Description Template Invite OpenCDMP - Description Template Invite

View File

@ -1 +1 @@
ARGOS - Merge Account Confirmation OpenCDMP - Merge Account Confirmation

View File

@ -1 +1 @@
ARGOS - Merge Account Confirmation OpenCDMP - Merge Account Confirmation

View File

@ -1 +1 @@
ARGOS - Data Management Plan Invite OpenCDMP - Plan Invite

View File

@ -1 +1 @@
ARGOS - Data Management Plan Invite OpenCDMP - Plan Invite

View File

@ -1 +1 @@
ARGOS - Data Management Plan Invite OpenCDMP - Plan Invite

View File

@ -1 +1 @@
ARGOS - Unlink Email Confirmation OpenCDMP - Unlink Email Confirmation

View File

@ -1 +1 @@
ARGOS - Unlink Email Confirmation OpenCDMP - Unlink Email Confirmation

View File

@ -162,7 +162,7 @@ public class InAppNotificationQuery extends QueryBase<InAppNotificationEntity> {
} }
public InAppNotificationQuery disableTracking() { public InAppNotificationQuery disableTracking() {
this.noTracking = false; this.noTracking = true;
return this; return this;
} }

View File

@ -212,7 +212,7 @@ public class NotificationQuery extends QueryBase<NotificationEntity> {
} }
public NotificationQuery disableTracking() { public NotificationQuery disableTracking() {
this.noTracking = false; this.noTracking = true;
return this; return this;
} }

View File

@ -151,7 +151,7 @@ public class NotificationTemplateQuery extends QueryBase<NotificationTemplateEnt
} }
public NotificationTemplateQuery disableTracking() { public NotificationTemplateQuery disableTracking() {
this.noTracking = false; this.noTracking = true;
return this; return this;
} }

View File

@ -126,7 +126,7 @@ public class QueueInboxQuery extends QueryBase<QueueInboxEntity> {
} }
public QueueInboxQuery disableTracking() { public QueueInboxQuery disableTracking() {
this.noTracking = false; this.noTracking = true;
return this; return this;
} }

View File

@ -132,7 +132,7 @@ public class QueueOutboxQuery extends QueryBase<QueueOutboxEntity> {
} }
public QueueOutboxQuery disableTracking() { public QueueOutboxQuery disableTracking() {
this.noTracking = false; this.noTracking = true;
return this; return this;
} }

View File

@ -125,7 +125,7 @@ public class TenantConfigurationQuery extends QueryBase<TenantConfigurationEntit
} }
public TenantConfigurationQuery disableTracking() { public TenantConfigurationQuery disableTracking() {
this.noTracking = false; this.noTracking = true;
return this; return this;
} }

View File

@ -69,7 +69,7 @@ public class TenantQuery extends QueryBase<TenantEntity> {
} }
public TenantQuery disableTracking() { public TenantQuery disableTracking() {
this.noTracking = false; this.noTracking = true;
return this; return this;
} }

View File

@ -120,7 +120,7 @@ public class TenantUserQuery extends QueryBase<TenantUserEntity> {
} }
public TenantUserQuery disableTracking() { public TenantUserQuery disableTracking() {
this.noTracking = false; this.noTracking = true;
return this; return this;
} }

View File

@ -160,7 +160,7 @@ public class UserContactInfoQuery extends QueryBase<UserContactInfoEntity> {
} }
public UserContactInfoQuery disableTracking() { public UserContactInfoQuery disableTracking() {
this.noTracking = false; this.noTracking = true;
return this; return this;
} }

View File

@ -114,7 +114,7 @@ public class UserCredentialQuery extends QueryBase<UserCredentialEntity> {
} }
public UserCredentialQuery disableTracking() { public UserCredentialQuery disableTracking() {
this.noTracking = false; this.noTracking = true;
return this; return this;
} }

View File

@ -133,7 +133,7 @@ public class UserNotificationPreferenceQuery extends QueryBase<UserNotificationP
} }
public UserNotificationPreferenceQuery disableTracking() { public UserNotificationPreferenceQuery disableTracking() {
this.noTracking = false; this.noTracking = true;
return this; return this;
} }

View File

@ -83,7 +83,7 @@ public class UserQuery extends QueryBase<UserEntity> {
public UserQuery enableTracking() { public UserQuery enableTracking() {
this.noTracking = false; this.noTracking = true;
return this; return this;
} }

View File

@ -131,7 +131,7 @@ public class UserRoleQuery extends QueryBase<UserRoleEntity> {
} }
public UserRoleQuery disableTracking() { public UserRoleQuery disableTracking() {
this.noTracking = false; this.noTracking = true;
return this; return this;
} }