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;
}
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;
}
Aggregations