Search in sources :

Example 1 with ObjectValuePolicyEvaluator

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;
}
Also used : ObjectValuePolicyEvaluator(com.evolveum.midpoint.model.common.stringpolicy.ObjectValuePolicyEvaluator) UserType(com.evolveum.midpoint.xml.ns._public.common.common_3.UserType)

Aggregations

ObjectValuePolicyEvaluator (com.evolveum.midpoint.model.common.stringpolicy.ObjectValuePolicyEvaluator)1 UserType (com.evolveum.midpoint.xml.ns._public.common.common_3.UserType)1