Search in sources :

Example 1 with EnforcementPolicyActionType

use of com.evolveum.midpoint.xml.ns._public.common.common_3.EnforcementPolicyActionType in project midpoint by Evolveum.

the class PolicyRuleEnforcerHook method isEnforce.

private boolean isEnforce(EvaluatedPolicyRule policyRule) {
    PolicyActionsType actions = policyRule.getActions();
    if (actions == null) {
        // enforce is NO LONGER the default
        return false;
    }
    EnforcementPolicyActionType enforcement = actions.getEnforcement();
    if (enforcement == null) {
        return false;
    }
    return true;
}
Also used : EnforcementPolicyActionType(com.evolveum.midpoint.xml.ns._public.common.common_3.EnforcementPolicyActionType) PolicyActionsType(com.evolveum.midpoint.xml.ns._public.common.common_3.PolicyActionsType)

Aggregations

EnforcementPolicyActionType (com.evolveum.midpoint.xml.ns._public.common.common_3.EnforcementPolicyActionType)1 PolicyActionsType (com.evolveum.midpoint.xml.ns._public.common.common_3.PolicyActionsType)1