C# Класс Castle.MonoRail.Framework.WizardActionProvider

Provide easy to use Wizard-like support.
MonoRail uses the DynamicAction infrastructure to provide wizard support so we dont force the programmer to inherit from a specific Controller which can be quite undesirable in real world projects.

Nevertheless we do require that the programmer implements IWizardController on the wizard controller.

Наследование: IDynamicActionProvider, IDynamicAction
Показать файл Открыть проект

Открытые методы

Метод Описание
Execute ( Controller controller ) : void

Invoked as "start" action

IncludeActions ( Controller controller ) : void

Implementation of IDynamicActionProvider.

Grab all steps related to the wizard and register them as dynamic actions.

WizardActionProvider ( ) : System

Initializes a new instance of the WizardActionProvider class.

Защищенные методы

Метод Описание
EmptyAction ( Controller controller ) : void

Represents an empty (no-op) action.

HasRequiredSessionData ( Controller controller ) : bool

Determines whether all wizard specific information is on the user session.

ResetSteps ( Controller controller ) : void

Resets the steps by invoking WizardStepPage.Reset on all steps instances.

StartWizard ( Controller controller, bool redirect ) : void

Starts the wizard by adding the required information to the session and invoking IWizardController.OnWizardStart and detecting the first step.

Приватные методы

Метод Описание
ObtainRequestedAction ( String action, String &innerAction ) : String
OnStepActionRequested ( Controller controller ) : void

Invoked when a step is accessed on the url, i.e. http://host/mywizard/firststep.rails and when an inner action is invoked like http://host/mywizard/firststep-save.rails

SetUpWizardHelper ( Controller controller ) : void

Описание методов

EmptyAction() защищенный Метод

Represents an empty (no-op) action.
protected EmptyAction ( Controller controller ) : void
controller Controller The controller.
Результат void

Execute() публичный Метод

Invoked as "start" action
public Execute ( Controller controller ) : void
controller Controller
Результат void

HasRequiredSessionData() защищенный Метод

Determines whether all wizard specific information is on the user session.
protected HasRequiredSessionData ( Controller controller ) : bool
controller Controller The controller.
Результат bool

IncludeActions() публичный Метод

Implementation of IDynamicActionProvider.

Grab all steps related to the wizard and register them as dynamic actions.

public IncludeActions ( Controller controller ) : void
controller Controller Wizard controller (must implement
Результат void

ResetSteps() защищенный Метод

Resets the steps by invoking WizardStepPage.Reset on all steps instances.
protected ResetSteps ( Controller controller ) : void
controller Controller The controller.
Результат void

StartWizard() защищенный Метод

Starts the wizard by adding the required information to the session and invoking IWizardController.OnWizardStart and detecting the first step.
protected StartWizard ( Controller controller, bool redirect ) : void
controller Controller The controller.
redirect bool if set to true, a redirect /// will be issued to the first step.
Результат void

WizardActionProvider() публичный Метод

Initializes a new instance of the WizardActionProvider class.
public WizardActionProvider ( ) : System
Результат System