public abstract class AbstractUserPropertyValidator extends java.lang.Object implements OfflineDBValidationManager.Validator
| Constructor and Description | 
|---|
AbstractUserPropertyValidator()  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
validateObject(OfflineDBObjectProvider pro, DBObject original, DBObject update, java.lang.String property)
Validates the given object change for the given provider. 
 | 
abstract void | 
validateUserPropertyValue(OfflineDBObjectProvider pro, DBObject original, DBObject update, java.lang.String userPropertyName, java.lang.String userPropertyValue)
Implementations of this method will be called to allow validation of User Property Values. 
 | 
public final void validateObject(OfflineDBObjectProvider pro, DBObject original, DBObject update, java.lang.String property) throws ValidationException
OfflineDBValidationManager.ValidatorvalidateObject in interface OfflineDBValidationManager.Validatorpro - the offline database the validation is fororiginal - the original object if this is an update, or null if it is a createupdate - the object definition to be validated - i.e. the new version for an update, or the new object that's being created.property - the specific property to validate, or null if all properties are the be validated.ValidationExceptionpublic abstract void validateUserPropertyValue(OfflineDBObjectProvider pro, DBObject original, DBObject update, java.lang.String userPropertyName, java.lang.String userPropertyValue) throws ValidationException
pro - The Offline Database Provideroriginal - The original object if an update is being peformed or null if a new object is being created.update - The updated (or new) object whose properties are being validateduserPropertyName - The name of the User PropertyuserPropertyValue - The value of the user PropertyValidationException