diff options
author | Jim Hahn <jrh3@att.com> | 2021-07-20 17:34:22 -0400 |
---|---|---|
committer | Jim Hahn <jrh3@att.com> | 2021-07-23 09:44:59 -0400 |
commit | 27c0d0c0a925e4fa0fed41fd7cf794b02be15595 (patch) | |
tree | ca89bbc9a6385450c9b08dd20de86edbbff2c774 /controlloop/common/eventmanager/src/main/java | |
parent | a6df9cd99cd97a0b0a3cca4a77e7c1e1a00a7105 (diff) |
Use new xacml actor in drools-apps
Modified drools-apps to use actor.xacml instead of actor.guard.
This included updating property files.
Issue-ID: POLICY-3503
Change-Id: I25c5586c59a2adaae9f4f0f5ca66e14b12b0c18a
Signed-off-by: Jim Hahn <jrh3@att.com>
Diffstat (limited to 'controlloop/common/eventmanager/src/main/java')
2 files changed, 8 insertions, 8 deletions
diff --git a/controlloop/common/eventmanager/src/main/java/org/onap/policy/controlloop/eventmanager/ControlLoopEventManager.java b/controlloop/common/eventmanager/src/main/java/org/onap/policy/controlloop/eventmanager/ControlLoopEventManager.java index 3a7531c03..354567cd8 100644 --- a/controlloop/common/eventmanager/src/main/java/org/onap/policy/controlloop/eventmanager/ControlLoopEventManager.java +++ b/controlloop/common/eventmanager/src/main/java/org/onap/policy/controlloop/eventmanager/ControlLoopEventManager.java @@ -68,7 +68,7 @@ public class ControlLoopEventManager implements StepContext, Serializable { */ private static final OperationHistoryDataManager STUB_DATA_MANAGER = new OperationHistoryDataManagerStub(); - private static final String GUARD_DISABLED_PROPERTY = "guard.disabled"; + public static final String GUARD_DISABLED_PROPERTY = "guard.disabled"; /** * Counts the number of these objects that have been created. This is used by junit diff --git a/controlloop/common/eventmanager/src/main/java/org/onap/policy/controlloop/eventmanager/EventManagerServices.java b/controlloop/common/eventmanager/src/main/java/org/onap/policy/controlloop/eventmanager/EventManagerServices.java index 4fef9f9d4..3271267e7 100644 --- a/controlloop/common/eventmanager/src/main/java/org/onap/policy/controlloop/eventmanager/EventManagerServices.java +++ b/controlloop/common/eventmanager/src/main/java/org/onap/policy/controlloop/eventmanager/EventManagerServices.java @@ -25,10 +25,10 @@ import java.util.Properties; import lombok.Getter; import org.onap.policy.common.parameters.ValidationResult; import org.onap.policy.common.utils.properties.PropertyObjectUtils; -import org.onap.policy.controlloop.actor.guard.DecisionOperation; -import org.onap.policy.controlloop.actor.guard.DecisionOperator; -import org.onap.policy.controlloop.actor.guard.GuardActor; -import org.onap.policy.controlloop.actor.guard.GuardConfig; +import org.onap.policy.controlloop.actor.xacml.DecisionConfig; +import org.onap.policy.controlloop.actor.xacml.DecisionOperator; +import org.onap.policy.controlloop.actor.xacml.GuardOperation; +import org.onap.policy.controlloop.actor.xacml.XacmlActor; import org.onap.policy.controlloop.actorserviceprovider.ActorService; import org.onap.policy.controlloop.actorserviceprovider.Util; import org.onap.policy.controlloop.ophistory.OperationHistoryDataManager; @@ -103,14 +103,14 @@ public class EventManagerServices { */ public boolean isGuardEnabled() { try { - DecisionOperator guard = (DecisionOperator) getActorService().getActor(GuardActor.NAME) - .getOperator(DecisionOperation.NAME); + DecisionOperator guard = (DecisionOperator) getActorService().getActor(XacmlActor.NAME) + .getOperator(GuardOperation.NAME); if (!guard.isConfigured()) { logger.warn("cannot check 'disabled' property in GUARD actor - assuming disabled"); return false; } - GuardConfig config = (GuardConfig) guard.getCurrentConfig(); + DecisionConfig config = (DecisionConfig) guard.getCurrentConfig(); if (config.isDisabled()) { logger.warn("guard disabled"); return false; |