Jive Forums API (5.5.20.2-oracle) Core Javadocs

com.jivesoftware.profiles.validator
Interface ProfileFieldValidator


public interface ProfileFieldValidator

Profile field validator validate a profile field value as entered or selected by the end user.

Since:
2.0

Method Summary
 java.lang.String validate(java.lang.String value, User user)
          Performs field validation on user supplied input.
 

Method Detail

validate

java.lang.String validate(java.lang.String value,
                          User user)
Performs field validation on user supplied input. Returns null if validation succeeds or an error string if validation fails.

Parameters:
value - the user supplied value. If no value has been provided by the user then the value should be null.
user - the user supplying the value, or null if anonymous.
Returns:
null if validation succeeds or an error string if validation fails.

Jive Forums Project Page

Copyright © 1999-2006 Jive Software.