Search in sources :

Example 1 with ExpressionEvaluatorProfileType

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

the class ExpressionProfileCompiler method compileEvaluatorProfile.

private ExpressionEvaluatorProfile compileEvaluatorProfile(ExpressionEvaluatorProfileType evaluatorType, List<ExpressionPermissionProfile> permissionProfiles) throws SchemaException {
    ExpressionEvaluatorProfile profile = new ExpressionEvaluatorProfile(evaluatorType.getType());
    profile.setDecision(AccessDecision.translate(evaluatorType.getDecision()));
    for (ScriptExpressionProfileType scriptType : evaluatorType.getScript()) {
        profile.add(compileScriptProfile(scriptType, permissionProfiles));
    }
    return profile;
}
Also used : ScriptExpressionProfileType(com.evolveum.midpoint.xml.ns._public.common.common_3.ScriptExpressionProfileType) ExpressionEvaluatorProfile(com.evolveum.midpoint.schema.expression.ExpressionEvaluatorProfile)

Example 2 with ExpressionEvaluatorProfileType

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

the class ExpressionProfileCompiler method compileExpressionProfile.

private ExpressionProfile compileExpressionProfile(ExpressionProfileType expressionProfileType, List<ExpressionPermissionProfile> permissionProfiles) throws SchemaException {
    ExpressionProfile profile = new ExpressionProfile(expressionProfileType.getIdentifier());
    profile.setDecision(AccessDecision.translate(expressionProfileType.getDecision()));
    for (ExpressionEvaluatorProfileType evaluatorType : expressionProfileType.getEvaluator()) {
        profile.add(compileEvaluatorProfile(evaluatorType, permissionProfiles));
    }
    return profile;
}
Also used : ExpressionEvaluatorProfileType(com.evolveum.midpoint.xml.ns._public.common.common_3.ExpressionEvaluatorProfileType) ScriptExpressionProfile(com.evolveum.midpoint.schema.expression.ScriptExpressionProfile) ExpressionProfile(com.evolveum.midpoint.schema.expression.ExpressionProfile)

Aggregations

ExpressionEvaluatorProfile (com.evolveum.midpoint.schema.expression.ExpressionEvaluatorProfile)1 ExpressionProfile (com.evolveum.midpoint.schema.expression.ExpressionProfile)1 ScriptExpressionProfile (com.evolveum.midpoint.schema.expression.ScriptExpressionProfile)1 ExpressionEvaluatorProfileType (com.evolveum.midpoint.xml.ns._public.common.common_3.ExpressionEvaluatorProfileType)1 ScriptExpressionProfileType (com.evolveum.midpoint.xml.ns._public.common.common_3.ScriptExpressionProfileType)1