com.sri.emo.wizard.wizardgateway
Class ListWizards

java.lang.Object
  extended by com.sri.emo.wizard.wizardgateway.WizardGatewayHandler
      extended by com.sri.emo.wizard.wizardgateway.ListWizards
All Implemented Interfaces:
StateHandler

public class ListWizards
extends WizardGatewayHandler
implements StateHandler

Lists all wizards available in the system that the person has 'read' permisison for. Also provides the appropriate links to manage/edit/delete the wizard.

Author:
Michael Rimov

Field Summary
static String STATE_DESCRIPTION
          The state description.
static String STATE_NAME
          The state name for listing the wizards.
 
Fields inherited from class com.sri.emo.wizard.wizardgateway.WizardGatewayHandler
owner
 
Constructor Summary
ListWizards(Controller handlerOwner, WizDefinitionRepository myRepository)
          Constructs this particular state handler.
 
Method Summary
 Transition getPermissionManagerTransition(RowSecuredDBObject obj)
          Retrieve the permission transition for the row secured dbobject.
 void handleRequest(ExpressoRequest request, ExpressoResponse response)
          Called to handle the request.
 
Methods inherited from class com.sri.emo.wizard.wizardgateway.WizardGatewayHandler
getOwner, getRepository, getWizDef
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

STATE_NAME

public static final String STATE_NAME
The state name for listing the wizards.

See Also:
Constant Field Values

STATE_DESCRIPTION

public static final String STATE_DESCRIPTION
The state description.

See Also:
Constant Field Values
Constructor Detail

ListWizards

public ListWizards(Controller handlerOwner,
                   WizDefinitionRepository myRepository)
Constructs this particular state handler.

Parameters:
handlerOwner - Controller the controller that is the parent of this state handler.
myRepository - WizDefinitionRepository the repository to use for data access methods.
Method Detail

handleRequest

public void handleRequest(ExpressoRequest request,
                          ExpressoResponse response)
                   throws DBException,
                          ControllerException
Called to handle the request.

Specified by:
handleRequest in interface StateHandler
Parameters:
request - ControllerRequest The Function's ControllerRequest object.
response - ControllerResponse The Function's ControllerResponse object.
Throws:
DBException - upon underlying database exception error.
ControllerException - upon underlying ControllerException error.

getPermissionManagerTransition

public Transition getPermissionManagerTransition(RowSecuredDBObject obj)
Retrieve the permission transition for the row secured dbobject.

Parameters:
obj - RowSecuredDBObject the object to get the transition for.
Returns:
Transition the transition for permissions.


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