org.olat.registration
Class PwChangeForm

java.lang.Object
  extended by org.olat.core.gui.components.Component
      extended by org.olat.core.gui.components.form.Form
          extended by org.olat.registration.PwChangeForm

public class PwChangeForm
extends Form

Description:

Author:
Sabina Jeger

Field Summary
 
Fields inherited from class org.olat.core.gui.components.form.Form
CANCEL_IDENTIFICATION, ELEM_BUTTON_COMMAND_ID, EVNT_FORM_CANCELLED, EVNT_VALIDATION_NOK, EVNT_VALIDATION_OK, SUBMIT_IDENTIFICATION
 
Constructor Summary
PwChangeForm(java.lang.String name, Translator translator)
          Password change form.
 
Method Summary
 void init()
          PreferencesForm definition
 boolean saveFormData(Identity s)
          Saves the form data in the user object and the database
 boolean validate()
           
 
Methods inherited from class org.olat.core.gui.components.form.Form
addFormElement, addSubmitKey, addSubmitKey, addVisibilityDependsOnSelectionRule, getCheckBoxElement, getDateElement, getElementCount, getFormElement, getHTMLRendererSingleton, getIntegerElement, getMultipleSelectionElement, getNameIterator, getPasswordElement, getRadioButtonElement, getSelectedSubmitKey, getSingleSelectionElement, getTextAreaElement, getTextElement, getVisibilityDependsOnSelectionRules, getWikiMarkupTextAreaElement, hasMandatoryFields, hasWikiMarkupFields, isDisplayOnly, isValid, removeCancelButton, removeFormElements, setAllFormElements, setCancelButton, setCancelKey, setDisplayOnly, setSubmitKey, validate
 
Methods inherited from class org.olat.core.gui.components.Component
addListener, debuginfoGetListeners, dispatchRequest, getAndClearLatestFiredEvent, getComponentName, getDispatchID, getExtendedDebugInfo, getLatestDispatchedController, getListenerInfo, getParent, getSpanAsDomReplaceable, getTimestamp, getTranslator, isDirty, isDirtyForUser, isDomReplaceable, isEnabled, isVisible, setDirty, setDomReplaceable, setEnabled, setSpanAsDomReplaceable, setVisible, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PwChangeForm

public PwChangeForm(java.lang.String name,
                    Translator translator)
Password change form.

Parameters:
name -
Method Detail

init

public void init()
PreferencesForm definition


validate

public boolean validate()
Specified by:
validate in class Form
Returns:
true: form validates, false: form contains invalid data
See Also:
org.olat.core.gui.components.Form#validate(org.olat.core.gui.UserRequest)

saveFormData

public boolean saveFormData(Identity s)
Saves the form data in the user object and the database

Parameters:
doer - The current identity.
s - The identity to change the password.