Class ObjectValuePolicyEvaluator
java.lang.Object
com.evolveum.midpoint.model.common.stringpolicy.ObjectValuePolicyEvaluator
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
-
Method Summary
Modifier and TypeMethodDescriptiongetNow()
getTask()
validateMinOccurs
(int valuesCount, OperationResult parentResult) validateProtectedStringValue
(ProtectedStringType value, OperationResult parentResult) validateStringValue
(String clearValue, OperationResult parentResult)
-
Method Details
-
getProtector
-
getValuePolicyProcessor
-
getSecurityPolicy
-
getNow
-
getShortDesc
-
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
-