C# Class Rebel.Cms.Web.Mvc.ActionFilters.SupportsPathGeneration

A filter to generate a HiveId Json path which is stored in a cookie which is referenced by a query string Id. This path is used to sync the tree in the UI to the path that is generated.
Inheritance: AbstractTempDataCookieFilter
显示文件 Open project: RebelCMS/rebelcmsxu5

Public Methods

Method Description
SupportsPathGeneration ( ) : System

Protected Methods

Method Description
GetBackOfficeRequestContext ( IController controller ) : IRequiresBackOfficeRequestContext

Gets the IRequiresBackOfficeRequestContext type from the filter context's controller instance

GetPathGenerator ( IController controller ) : IGeneratePath

Gets the IGeneratePath type from the filter context's controller instance

GetTempDataKey ( System.Web.Mvc.ControllerContext filterContext ) : string

Uses the IBackOfficeRequestContext request id as the temp data key

GetTempDataValue ( System.Web.Mvc.ControllerContext filterContext ) : object

Returns the path to be stored

Method Details

GetBackOfficeRequestContext() protected method

Gets the IRequiresBackOfficeRequestContext type from the filter context's controller instance
protected GetBackOfficeRequestContext ( IController controller ) : IRequiresBackOfficeRequestContext
controller IController
return IRequiresBackOfficeRequestContext

GetPathGenerator() protected method

Gets the IGeneratePath type from the filter context's controller instance
protected GetPathGenerator ( IController controller ) : IGeneratePath
controller IController
return IGeneratePath

GetTempDataKey() protected method

Uses the IBackOfficeRequestContext request id as the temp data key
protected GetTempDataKey ( System.Web.Mvc.ControllerContext filterContext ) : string
filterContext System.Web.Mvc.ControllerContext
return string

GetTempDataValue() protected method

Returns the path to be stored
protected GetTempDataValue ( System.Web.Mvc.ControllerContext filterContext ) : object
filterContext System.Web.Mvc.ControllerContext
return object

SupportsPathGeneration() public method

public SupportsPathGeneration ( ) : System
return System