use of com.evolveum.midpoint.model.common.stringpolicy.ObjectValuePolicyEvaluator in project midpoint by Evolveum.
the class CredentialPolicyEvaluator method getObjectValuePolicyEvaluator.
private ObjectValuePolicyEvaluator getObjectValuePolicyEvaluator() {
if (objectValuePolicyEvaluator == null) {
PrismObject<UserType> user = getUser();
objectValuePolicyEvaluator = new ObjectValuePolicyEvaluator();
objectValuePolicyEvaluator.setNow(now);
objectValuePolicyEvaluator.setObject(user);
objectValuePolicyEvaluator.setProtector(protector);
objectValuePolicyEvaluator.setSecurityPolicy(getSecurityPolicy());
objectValuePolicyEvaluator.setShortDesc(getCredentialHumanReadableName() + " for " + user);
objectValuePolicyEvaluator.setTask(task);
objectValuePolicyEvaluator.setValueItemPath(getCredentialValuePath());
objectValuePolicyEvaluator.setValuePolicyProcessor(valuePolicyProcessor);
PrismContainer<R> currentCredentialContainer = getOldCredentialContainer();
if (currentCredentialContainer != null) {
objectValuePolicyEvaluator.setOldCredentialType(currentCredentialContainer.getRealValue());
}
}
return objectValuePolicyEvaluator;
}
Aggregations