ERDEditPassword Class Reference

Inherits er::directtoweb::components::ERDCustomEditComponent.

Collaboration diagram for ERDEditPassword:

Collaboration graph
[legend]

List of all members.

Public Member Functions

void appendToResponse (WOResponse r, WOContext c)
 ERDEditPassword (WOContext context)
void fail (String errorCode)
String password ()
boolean passwordConfirmationValidates ()
boolean passwordExists ()
void setObject (EOEnterpriseObject newObject)
void setPassword (String value)
boolean synchronizesVariablesWithBindings ()
void takeValuesFromRequest (WORequest r, WOContext c)

Static Public Attributes

static final String passwordPropertyKey = "ERDEditPassword.propertyKey"

Protected Member Functions

void updateContextValues ()

Protected Attributes

String _password
Boolean _passwordConfirmationValidates

Static Private Attributes

static final Logger log = Logger.getLogger(ERDEditPassword.class)


Detailed Description

Provides a edit "password" service. Should be used in conjunction with ERDEditPasswordConfirmation, as it puts the the password value into the context.mutableUserInfo. From where it can be confirmed against a second edit field. In case you don't need a second field, then the routine is: if no password is set or it is set and there is a value given, then the object is asked to validate this value. This behaviour prevents having to enter the password multiple times.

object the object to edit propertyKey the key of the object to edit length the length of the text field passwordConfirmationValidates if true, then the property key validation is left to the confirmation component. Otherwise the validation occurs here. length the length of the text field

Author:
ak on Sun Aug 17 2003 ERDirectToWeb

Constructor & Destructor Documentation

ERDEditPassword ( WOContext  context  ) 

Public constructor

Parameters:
context the context


Member Function Documentation

void appendToResponse ( WOResponse  response,
WOContext  context 
)

Calls resetCachedBindingsInStatefulComponent prior to super.appendToResponse.

Parameters:
response to which we are appending
context context of the response

Reimplemented from ERDCustomComponent.

void fail ( String  errorCode  ) 

String password (  ) 

boolean passwordConfirmationValidates (  ) 

boolean passwordExists (  ) 

void setObject ( EOEnterpriseObject  newObject  ) 

Reimplemented from ERDCustomEditComponent.

void setPassword ( String  value  ) 

boolean synchronizesVariablesWithBindings (  ) 

Overridden from superclass to turn on component synching, which is the default.

Reimplemented from ERDCustomEditComponent.

void takeValuesFromRequest ( WORequest  request,
WOContext  context 
)

Calls resetCachedBindingsInStatefulComponent prior to super.takeValuesFromRequest.

Parameters:
request from which the values will be taken
context of the request

Reimplemented from ERXNonSynchronizingComponent.

void updateContextValues (  )  [protected]


Member Data Documentation

String _password [protected]

Boolean _passwordConfirmationValidates [protected]

final Logger log = Logger.getLogger(ERDEditPassword.class) [static, private]

logging support

Reimplemented from ERDCustomEditComponent.

final String passwordPropertyKey = "ERDEditPassword.propertyKey" [static]


The documentation for this class was generated from the following file:

Generated on Sat May 26 06:42:53 2012 for Project Wonder by  doxygen 1.5.8