ZenMagick 0.9.6


org.zenmagick.rp.uip.controller.ZMCreateAccountController

Class ZMCreateAccountController

ZMObject
|
+--ZMController
|
+--ZMCreateAccountController

public class ZMCreateAccountController
extends ZMController

Request controller for account creation page.

The createDefaultAddress property can be used to control whether or not to create a default address entry in the address book. Obviously, the validation rules for the registration form need to be adjusted accordingly.

The property may be set by specifying a controllerDefinition value in the URL mapping like this:

ZMUrlMapper::instance()->setMappingInfo('create_account', array('controllerDefinition' => 'CreateAccountController#createDefaultAddress=false'));

Author:
DerManoMann
Version:
$Id: ZMCreateAccountController.php 2088 2009-03-20 02:06:57Z dermanomann $

Constructor Summary

ZMCreateAccountController()

Create new instance.

Method Summary
void

handleRequest()

{@inheritDoc} /

ZMView

processPost()

Process a HTTP POST request.

void

setCreateDefaultAddress(boolean value)

Set create default address flag.

Methods inherited from org.zenmagick.rp.ZMController
exportGlobal, findView, getFormBean, getGlobal, getGlobals, getId, getView, handleRequest, isFormSubmit, process, processGet, processPost, setContentType, setId, setView, validate, validateFormBean
Methods inherited from org.zenmagick.ZMObject
attachMethod, get, getAttachedMethods, getPropertyNames, set, singleton

Constructor Detail

ZMCreateAccountController

public ZMCreateAccountController()

Create new instance. /


Method Detail

handleRequest

public void handleRequest()

/


processPost

public ZMView processPost()

Process a HTTP POST request.

Returns:
A ZMView that handles presentation or null * if the controller generates the contents itself.

setCreateDefaultAddress

public void setCreateDefaultAddress(boolean value)

Set create default address flag.

Parameters:
value - The new value.

ZenMagick 0.9.6