Class XFormUnknownActionHandlerBase

Inheritance
System.Object
XFormUnknownActionHandlerBase
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.Web.Mvc.XForms
Assembly: EPiServer.dll
Version: 8.11.0
Syntax
public abstract class XFormUnknownActionHandlerBase : IUnknownActionHandler

Constructors

XFormUnknownActionHandlerBase()

Declaration
protected XFormUnknownActionHandlerBase()

Properties

ActionName

XFormPost action

Declaration
public string ActionName { get; }
Property Value
Type Description
System.String

Methods

GetXForm(Controller)

Gets the XForm from a controller context

Declaration
protected virtual XForm GetXForm(Controller controller)
Parameters
Type Name Description
System.Web.Mvc.Controller controller

The controller

Returns
Type Description
XForm

An XForm definition

GetXFormPostedData(Controller, String)

Get Posted XForm data from a controller

Declaration
protected virtual XFormPostedData GetXFormPostedData(Controller controller, string actionName)
Parameters
Type Name Description
System.Web.Mvc.Controller controller

The controller

System.String actionName

Action name of the controller

Returns
Type Description
XFormPostedData

Posted data from the XForm

HandleAction(Controller)

Handles unknown action when an action hasn't been found by the controller

Declaration
public ActionResult HandleAction(Controller controller)
Parameters
Type Name Description
System.Web.Mvc.Controller controller

The controller

Returns
Type Description
System.Web.Mvc.ActionResult

ActionResult if handled otherwise null

InvokeFailedAction(XForm, XFormPostedData, Controller)

Invokes the failed action. If the validation or ProcessXFormAction is not passed then the be InvokeFailedAction called

Declaration
protected abstract ActionResult InvokeFailedAction(XForm form, XFormPostedData xformPostedData, Controller controller)
Parameters
Type Name Description
XForm form

The form.

XFormPostedData xformPostedData

The xform posted data.

System.Web.Mvc.Controller controller

The controller.

Returns
Type Description
System.Web.Mvc.ActionResult

InvokeSuccessAction(XForm, XFormPostedData, Controller)

Invokes the success action. When the validation and ProcessXFormAction is passed then the InvokeSuccessAction be called

Declaration
protected abstract ActionResult InvokeSuccessAction(XForm form, XFormPostedData xformPostedData, Controller controller)
Parameters
Type Name Description
XForm form

The form.

XFormPostedData xformPostedData

The xform posted data.

System.Web.Mvc.Controller controller

The controller.

Returns
Type Description
System.Web.Mvc.ActionResult

ProcessXFormAction(Controller, XFormPostedData)

Processes the XForm action. Calls After validation of XFormPosted binding data

Declaration
protected abstract bool ProcessXFormAction(Controller controller, XFormPostedData xformPostedData)
Parameters
Type Name Description
System.Web.Mvc.Controller controller

The controller.

XFormPostedData xformPostedData

The xform posted data.

Returns
Type Description
System.Boolean

Implements

Extension Methods