From aacf723ba9964ed478c833686dd3e00b7e59849e Mon Sep 17 00:00:00 2001 From: Fabio Sinibaldi Date: Thu, 27 Oct 2022 17:18:05 +0200 Subject: [PATCH] protected info --- .../cms/plugins/implementations/Default3PhaseManager.java | 4 ++-- .../cms/plugins/implementations/SimpleLifeCycleManager.java | 6 +++++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/cms-plugin-framework/src/main/java/org/gcube/application/cms/plugins/implementations/Default3PhaseManager.java b/cms-plugin-framework/src/main/java/org/gcube/application/cms/plugins/implementations/Default3PhaseManager.java index 6eb0835..b1a81eb 100644 --- a/cms-plugin-framework/src/main/java/org/gcube/application/cms/plugins/implementations/Default3PhaseManager.java +++ b/cms-plugin-framework/src/main/java/org/gcube/application/cms/plugins/implementations/Default3PhaseManager.java @@ -27,13 +27,13 @@ import java.util.Collections; @Slf4j public class Default3PhaseManager extends SimpleLifeCycleManager implements LifecycleManager { - private static class Phases { + protected static class Phases { public static final String PENDING_APPROVAL="Pending Approval"; public static final String PUBLISHED="Published"; } - private static class STEPS{ + protected static class STEPS{ public static final OperationDescriptor SUBMIT=new OperationDescriptor("SUBMIT-FOR-REVIEW","Submits the Draft for reviewing"); public static final OperationDescriptor REJECT=new OperationDescriptor("REJECT-DRAFT","Rejects the submitted Draft"); public static final OperationDescriptor APPROVE=new OperationDescriptor("APPROVE-SUBMITTED","Approves the submitted Draft"); diff --git a/cms-plugin-framework/src/main/java/org/gcube/application/cms/plugins/implementations/SimpleLifeCycleManager.java b/cms-plugin-framework/src/main/java/org/gcube/application/cms/plugins/implementations/SimpleLifeCycleManager.java index 610de5c..87e07cf 100644 --- a/cms-plugin-framework/src/main/java/org/gcube/application/cms/plugins/implementations/SimpleLifeCycleManager.java +++ b/cms-plugin-framework/src/main/java/org/gcube/application/cms/plugins/implementations/SimpleLifeCycleManager.java @@ -2,6 +2,10 @@ package org.gcube.application.cms.plugins.implementations; import lombok.extern.slf4j.Slf4j; import org.bson.Document; +import org.gcube.application.cms.implementations.faults.InvalidUserRoleException; +import org.gcube.application.cms.implementations.faults.ProjectNotFoundException; +import org.gcube.application.cms.implementations.faults.RegistrationException; +import org.gcube.application.cms.implementations.faults.UnauthorizedAccess; import org.gcube.application.cms.plugins.IndexerPluginInterface; import org.gcube.application.cms.plugins.LifecycleManager; import org.gcube.application.cms.plugins.MaterializationPlugin; @@ -244,7 +248,7 @@ public class SimpleLifeCycleManager extends AbstractLifeCycleManager implements } - protected Document evaluateAdditionalIndexParameters(IndexDocumentRequest request){return request.getCallParameters();} + protected Document evaluateAdditionalIndexParameters(IndexDocumentRequest request) throws InvalidUserRoleException, RegistrationException, ProjectNotFoundException, ConfigurationException, UnauthorizedAccess {return request.getCallParameters();} protected T materializeDocument(T report,MaterializationPlugin plugin,Document parameters) throws InvalidPluginRequestException, MaterializationException {