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. This class may also generate value fitting for that property. TODO: generalize to all object types, not just user In that case we may need to move this class to the model-impl User template will be probably needed for this- Author:
- semancik
-
-
Field Summary
Fields Modifier and Type Field Description static String
OPERATION_VALIDATE_VALUE
-
Constructor Summary
Constructors Constructor Description ObjectValuePolicyEvaluator(PrismContext prismContext)
-
Method Summary
-
-
-
Field Detail
-
OPERATION_VALIDATE_VALUE
public static final String OPERATION_VALIDATE_VALUE
-
-
Constructor Detail
-
ObjectValuePolicyEvaluator
public ObjectValuePolicyEvaluator(@NotNull PrismContext prismContext)
-
-
Method Detail
-
getProtector
public Protector getProtector()
-
setProtector
public void setProtector(Protector protector)
-
getValuePolicyProcessor
public ValuePolicyProcessor getValuePolicyProcessor()
-
setValuePolicyProcessor
public void setValuePolicyProcessor(ValuePolicyProcessor valuePolicyProcessor)
-
getSecurityPolicy
public SecurityPolicyType getSecurityPolicy()
-
setSecurityPolicy
public void setSecurityPolicy(SecurityPolicyType securityPolicy)
-
setValuePolicy
public void setValuePolicy(ValuePolicyType valuePolicy)
-
getNow
public XMLGregorianCalendar getNow()
-
setNow
public void setNow(XMLGregorianCalendar now)
-
getValueItemPath
public ItemPath getValueItemPath()
-
setValueItemPath
public void setValueItemPath(ItemPath valueItemPath)
-
getOriginResolver
public AbstractValuePolicyOriginResolver getOriginResolver()
-
setOriginResolver
public void setOriginResolver(AbstractValuePolicyOriginResolver originResolver)
-
getOldCredentialType
public AbstractCredentialType getOldCredentialType()
-
setOldCredentialType
public void setOldCredentialType(AbstractCredentialType oldCredentialType)
-
getShortDesc
public String getShortDesc()
-
setShortDesc
public void setShortDesc(String shortDesc)
-
getTask
public Task getTask()
-
setTask
public void setTask(Task task)
-
validateProtectedStringValue
public OperationResult validateProtectedStringValue(ProtectedStringType value) throws SchemaException, ObjectNotFoundException, ExpressionEvaluationException, CommunicationException, ConfigurationException, SecurityViolationException
-
validateStringValue
public OperationResult validateStringValue(String clearValue) throws SchemaException, ObjectNotFoundException, ExpressionEvaluationException, CommunicationException, ConfigurationException, SecurityViolationException
-
validateMinOccurs
public OperationResult validateMinOccurs(int values) throws SchemaException
- Throws:
SchemaException
-
-