org.davesag.generica.controller
Interface HomepageChooser

All Superinterfaces:
ActionController, Controller

public interface HomepageChooser
extends ActionController

An implementation of the HomepageChooser interface must be able to direct the user to the appropriate forward based on the kind of user they are.

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

Method Summary
 String chooseForward(User user)
          Which homepage you are directed to will depend entirely on the class of the user provided.
 
Methods inherited from interface org.davesag.generica.controller.ActionController
setAction
 
Methods inherited from interface org.davesag.generica.controller.Controller
setForm, setRequest, setResponse
 

Method Detail

chooseForward

public String chooseForward(User user)
                     throws Exception
Which homepage you are directed to will depend entirely on the class of the user provided.

Parameters:
user - The user.
Returns:
the name of the correct forward.
Throws:
Exception - if anything goes wrong.


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