Class MidpointFormValidatorImpl
java.lang.Object
com.evolveum.midpoint.web.util.validation.MidpointFormValidatorImpl
- All Implemented Interfaces:
MidpointFormValidator
,Serializable
public class MidpointFormValidatorImpl
extends Object
implements MidpointFormValidator, Serializable
This is a simple implementation of MidpointFormValidator interface
- Author:
- shood
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvalidateAssignment
(AssignmentType assignment) Performs a validation on an instance of AssignmentType that represents an assignment in midPoint.validateObject
(PrismObject<? extends ObjectType> object, Collection<ObjectDelta<? extends ObjectType>> deltas) Performs a validation on an instance of object.
-
Constructor Details
-
MidpointFormValidatorImpl
public MidpointFormValidatorImpl()
-
-
Method Details
-
validateObject
public Collection<SimpleValidationError> validateObject(PrismObject<? extends ObjectType> object, Collection<ObjectDelta<? extends ObjectType>> deltas) Description copied from interface:MidpointFormValidator
Performs a validation on an instance of object. Entire data of the object are accessible for validation purposes as well as a collection of ObjectDelta instances - the collection of current changes made by user prior to validation.- Specified by:
validateObject
in interfaceMidpointFormValidator
- Parameters:
object
- An object to validatedeltas
- A collection of ObjectDelta instances - a representation of changes made by user- Returns:
- A collection of SimpleValidationError instances
-
validateAssignment
Description copied from interface:MidpointFormValidator
Performs a validation on an instance of AssignmentType that represents an assignment in midPoint.- Specified by:
validateAssignment
in interfaceMidpointFormValidator
- Parameters:
assignment
- An object to validate- Returns:
- A collection of SimpleValidationError instances
-