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
파일 보기 프로젝트 열기: nats/castle-1.0.3-mono

공개 메소드들

메소드 설명
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