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:
- Admin
clients: [ ]
allowAnonymous: true
allowAnonymous: false
allowAuthenticated: false
EditUser:
roles: [ ]
@ -59,7 +59,7 @@ permissions:
- TenantAdmin
entityAffiliated: true
clients: [ ]
allowAnonymous: true
allowAnonymous: false
allowAuthenticated: false
NewAnnotation:
roles:
@ -67,14 +67,14 @@ permissions:
- TenantAdmin
entityAffiliated: true
clients: [ ]
allowAnonymous: true
allowAnonymous: false
allowAuthenticated: false
EditAnnotation:
roles:
- Admin
- TenantAdmin
clients: [ ]
allowAnonymous: true
allowAnonymous: false
allowAuthenticated: false
DeleteAnnotation:
roles:

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -235,7 +235,7 @@ public class FileTransformerServiceImpl implements FileTransformerService {
@Override
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
FileTransformerRepository repository = this.getRepository(repositoryId);
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
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
FileTransformerRepository repository = this.getRepository(repositoryId);
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:
- Admin
clients: [ ]
allowAnonymous: true
allowAnonymous: false
allowAuthenticated: false
EditUser:
roles: []
@ -51,7 +51,7 @@ permissions:
- Admin
- InstallationAdmin
clients: [ "opencdmp-api-dev" ]
allowAnonymous: true
allowAnonymous: false
allowAuthenticated: false
EditUserContactInfo:
roles:
@ -73,13 +73,13 @@ permissions:
roles:
- Admin
clients: [ ]
allowAnonymous: true
allowAnonymous: false
allowAuthenticated: false
EditNotification:
roles:
- Admin
clients: [ ]
allowAnonymous: true
allowAnonymous: false
allowAuthenticated: false
DeleteNotification:
roles:
@ -115,7 +115,7 @@ permissions:
roles:
- Admin
clients: [ ]
allowAnonymous: true
allowAnonymous: false
allowAuthenticated: false
EditUserNotificationPreference:
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() {
this.noTracking = false;
this.noTracking = true;
return this;
}

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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