net.sf.doolin.gui.validation
Class ConfirmPasswordValidator<B>

java.lang.Object
  extended by net.sf.doolin.gui.validation.AbstractValidator<B>
      extended by net.sf.doolin.gui.validation.ConfirmPasswordValidator<B>
Type Parameters:
B - Type of bean for the view
All Implemented Interfaces:
GUIValidator<B>

public class ConfirmPasswordValidator<B>
extends AbstractValidator<B>

Validator used for the validation of a password input.

Author:
Damien Coraboeuf

Constructor Summary
ConfirmPasswordValidator()
           
 
Method Summary
 String getConfirmPasswordPropertyPath()
          Path to the property that contains the confirmation of the password
 String getKey()
          Key that identifies the password field
 String getLabelKey()
          Key for the text that defines the password field
 String getMsgKey()
          Key for the text that defines the validation message
 String getPasswordPropertyPath()
          Path to the property that contains the password
 void setConfirmPasswordPropertyPath(String confirmPasswordPropertyPath)
          Path to the property that contains the confirmation of the password
 void setKey(String key)
          Key that identifies the password field
 void setLabelKey(String labelKey)
          Key for the text that defines the password field
 void setMsgKey(String msgKey)
          Key for the text that defines the validation message.
 void setPasswordPropertyPath(String passwordPropertyPath)
          Path to the property that contains the password
 void subscribe(SubscriberValidator validator, B bean, Runnable runnable)
          Subscribes the validator to the model changes.
protected  void validate(GUIValidation validationResult, B bean)
          Validate.
 
Methods inherited from class net.sf.doolin.gui.validation.AbstractValidator
getMsgMandatoryKey, isNotBlank, isNotNull, setMsgMandatoryKey, validate, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfirmPasswordValidator

public ConfirmPasswordValidator()
Method Detail

validate

protected void validate(GUIValidation validationResult,
                        B bean)
Description copied from class: AbstractValidator
Validate.

Specified by:
validate in class AbstractValidator<B>
Parameters:
validationResult - the validation result
bean - the model to validate

subscribe

public void subscribe(SubscriberValidator validator,
                      B bean,
                      Runnable runnable)
Description copied from interface: GUIValidator
Subscribes the validator to the model changes.

Parameters:
validator - Subscription validator
bean - Model to subscribe to
runnable - Task to subscribe

getPasswordPropertyPath

public String getPasswordPropertyPath()
Path to the property that contains the password

Returns:
Property path

setPasswordPropertyPath

public void setPasswordPropertyPath(String passwordPropertyPath)
Path to the property that contains the password

Parameters:
passwordPropertyPath - Property path

getConfirmPasswordPropertyPath

public String getConfirmPasswordPropertyPath()
Path to the property that contains the confirmation of the password

Returns:
Property path

setConfirmPasswordPropertyPath

public void setConfirmPasswordPropertyPath(String confirmPasswordPropertyPath)
Path to the property that contains the confirmation of the password

Parameters:
confirmPasswordPropertyPath - Property path

getLabelKey

public String getLabelKey()
Key for the text that defines the password field

Returns:
Text key

setLabelKey

public void setLabelKey(String labelKey)
Key for the text that defines the password field

Parameters:
labelKey - Text key

getKey

public String getKey()
Key that identifies the password field

Returns:
Field key

setKey

public void setKey(String key)
Key that identifies the password field

Parameters:
key - Field key

getMsgKey

public String getMsgKey()
Key for the text that defines the validation message

Returns:
Text key

setMsgKey

public void setMsgKey(String msgKey)
Key for the text that defines the validation message. It is set by default to ValidationMsgKeys.MSG_CONFIRM_PASSWORD.

Parameters:
msgKey - Text key


Copyright © 2011. All Rights Reserved.