|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnl.gx.webmanager.handler.forms.handling.DefaultProfileUpdateHandler
public class DefaultProfileUpdateHandler
Creates or updates a DefaultProfile. It expects a formpart for each profile attribute that needs to be updated. For updates the profile of the user is retrieved based on username. A first attempt is made to retrieve the username from the searchUsername parameter and a second attempt is made for the username under the GX_username sessionkey.
| Variable | Type | Mode | Default | Description |
|---|---|---|---|---|
| insertuser | Parameter | Optional | false | If set to 'true', the a user is created and the profile is inserted rather than updated. |
| searchUsername | Parameter | Optional | -- | If set the profile of this user is updated. |
| username | Parameter | Optional | -- | The username of the user. |
| password | Parameter | Optional | -- | The password of the user. |
| generatedPassword | Parameter | Optional | -- | The generatedPassword of the user. |
| firstName | Parameter | Optional | -- | The firstName of the user. |
| prefix | Parameter | Optional | -- | The prefix of the user. |
| lastName | Parameter | Optional | -- | The lastName of the user. |
| address | Parameter | Optional | -- | The address of the user. |
| housenumber | Parameter | Optional | -- | The housenumber of the user. |
| zipcode | Parameter | Optional | -- | The zipcode of the user. |
| residence | Parameter | Optional | -- | The residence of the user. |
| Parameter | Optional | -- | The email of the user. | |
| birthDate | Parameter | Optional | -- | The birthDate of the user. |
| gender | Parameter | Optional | -- | The gender of the user. |
| mobile | Parameter | Optional | -- | The mobile of the user. |
| telephone | Parameter | Optional | -- | The telephone of the user. |
| lastVisit | Parameter | Optional | -- | The lastVisit of the user. |
| numberOfVisits | Parameter | Optional | -- | The numberOfVisits of the user. |
| hasConfirmed | Parameter | Optional | -- | The hasConfirmed of the user. |
| confirmCode | Parameter | Optional | -- | The confirmCode of the user. |
| Constructor Summary | |
|---|---|
DefaultProfileUpdateHandler()
|
|
| Method Summary | |
|---|---|
void |
doHandle(FormDefinition form,
State formState,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
Processes the form. |
void |
init(FormComponentConfig config)
Passes the initialization parameters to the component. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultProfileUpdateHandler()
| Method Detail |
|---|
public void init(FormComponentConfig config)
throws InitializationException
init in interface FormComponentconfig - The FormComponentConfig object that contains
configutation information for this component.
InitializationException - If initialization failed
public void doHandle(FormDefinition form,
State formState,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
throws HandleException
doHandle in interface Handlerform - The definition of the form for which the submitted values
should be handled.formState - The session values for the formreq - The http requestres - The http response
HandleException - If the form values could not be handled correctly
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||