com.sri.emo.wizard.wizardgateway
Class WizardGatewayHandler

java.lang.Object
  extended by com.sri.emo.wizard.wizardgateway.WizardGatewayHandler
Direct Known Subclasses:
DoDeleteWizard, EditWizard, ListWizards, PromptDeleteWizard, RunWizard

public abstract class WizardGatewayHandler
extends Object


Field Summary
protected  Controller owner
          The parent controller.
 
Constructor Summary
WizardGatewayHandler(Controller myOwner, WizDefinitionRepository myRepository)
          Constructor for a wizard gateway handler that takes a reference to the controller and the Repository interface
 
Method Summary
protected  Controller getOwner()
          Method that grabs the owning controller.
protected  WizDefinitionRepository getRepository()
          Method that grabs the repository we are to use for accessing wizard definition objects.
protected  WizDefinition getWizDef(ExpressoRequest request)
          Retrieve the wizard definition based upon the parameters in the controller request.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

owner

protected final Controller owner
The parent controller. If we need to redirect to another state inside this particular controller, we use this field.

Constructor Detail

WizardGatewayHandler

public WizardGatewayHandler(Controller myOwner,
                            WizDefinitionRepository myRepository)
Constructor for a wizard gateway handler that takes a reference to the controller and the Repository interface

Parameters:
myOwner - Controller
myRepository - The repository to use for data access methods.
Method Detail

getWizDef

protected WizDefinition getWizDef(ExpressoRequest request)
                           throws DBException
Retrieve the wizard definition based upon the parameters in the controller request.

Parameters:
request - ControllerRequest the ControllerRequest object.
Returns:
WizDefinition the defined wizard definition.
Throws:
DBException - if we are unable to locate it in the database.

getOwner

protected Controller getOwner()
Method that grabs the owning controller.

Returns:
Controller instance. (never null)

getRepository

protected WizDefinitionRepository getRepository()
Method that grabs the repository we are to use for accessing wizard definition objects.

Returns:
WizDefinitionRepository


Copyright © 2004-2006 Codeguild, Inc.. All Rights Reserved.