Class ObjectValuePolicyEvaluator
- java.lang.Object
-
- com.evolveum.midpoint.model.common.stringpolicy.ObjectValuePolicyEvaluator
-
public class ObjectValuePolicyEvaluator extends Object
Evaluator that validates the value of any object property. The validation means a checks whether the value is a valid for that property. It usually applies to credentials such as passwords. But it can be used also for other properties. (We may need to move this class to the model-impl. User template will be probably needed for this.) This class is directly responsible for "meta" checking like minOccurs, minAge, history. Specific "string syntax" checks like length, number of special characters and so on are delegated to ValuePolicyProcessor. Methods for validation provided here have a bit unusual treating of OperationResult: they add their subresult to the parent result (as usual) but also return it to the caller.- Author:
- semancik
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ObjectValuePolicyEvaluator.Builder
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description XMLGregorianCalendar
getNow()
Protector
getProtector()
SecurityPolicyType
getSecurityPolicy()
String
getShortDesc()
Task
getTask()
ValuePolicyProcessor
getValuePolicyProcessor()
OperationResult
validateMinOccurs(int valuesCount, OperationResult parentResult)
OperationResult
validateProtectedStringValue(ProtectedStringType value, OperationResult parentResult)
OperationResult
validateStringValue(String clearValue, OperationResult parentResult)
-
-
-
Method Detail
-
getProtector
public Protector getProtector()
-
getValuePolicyProcessor
public ValuePolicyProcessor getValuePolicyProcessor()
-
getSecurityPolicy
public SecurityPolicyType getSecurityPolicy()
-
getNow
public XMLGregorianCalendar getNow()
-
getShortDesc
public String getShortDesc()
-
getTask
public Task getTask()
-
validateProtectedStringValue
public OperationResult validateProtectedStringValue(ProtectedStringType value, OperationResult parentResult) throws SchemaException, ObjectNotFoundException, ExpressionEvaluationException, CommunicationException, ConfigurationException, SecurityViolationException
-
validateStringValue
public OperationResult validateStringValue(String clearValue, OperationResult parentResult) throws SchemaException, ObjectNotFoundException, ExpressionEvaluationException, CommunicationException, ConfigurationException, SecurityViolationException
-
validateMinOccurs
public OperationResult validateMinOccurs(int valuesCount, OperationResult parentResult)
-
-