org.davesag.generica.controller
Interface UserRegistrationController

All Superinterfaces:
ActionController, Controller

public interface UserRegistrationController
extends ActionController

An implementation of the UserLoginController interface must be able to check to see if the username provided is in use, and register the new user based on the supplied form details.

Since:
Generica 1.0
Version:
CVS Revision $Id: UserRegistrationController.java,v 1.3 2004/03/30 13:00:40 davesag Exp $
Author:
Dave Sag http://www.davesag.com

Method Summary
 boolean isUsernameInUse()
          Tests to see if the username in the form set above is unique to the application.
 User register()
          Registers the user based on details in the form set above.
 
Methods inherited from interface org.davesag.generica.controller.ActionController
setAction
 
Methods inherited from interface org.davesag.generica.controller.Controller
setForm, setRequest, setResponse
 

Method Detail

isUsernameInUse

public boolean isUsernameInUse()
                        throws Exception
Tests to see if the username in the form set above is unique to the application.

Returns:
true if the username is unique.
Throws:
Exception - if anything went seriously wrong.

register

public User register()
              throws Exception
Registers the user based on details in the form set above.

Returns:
The registered user object.
Throws:
Exception - if anything went seriously wrong.


Dave Sag Generica API version 0.5.9 - (prerelease) Copyright 2003 - 2004 Dave Sag.