Search in sources :

Example 1 with ScriptExpressionProfileType

use of com.evolveum.midpoint.xml.ns._public.common.common_3.ScriptExpressionProfileType 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)

Aggregations

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