C# Class N2.Web.Mvc.ControllerMapper

Inheritance: IControllerMapper
ファイルを表示 Open project: Earthware/n2cms

Private Properties

Property Type Description
FindControllers IList
GetControllerFor IAdapterDescriptor

Public Methods

Method Description
ControllerHasAction ( string controllerName, string actionName ) : bool

Returns true if the given controller has the given action.

ControllerMapper ( ITypeFinder typeFinder, IDefinitionManager definitionManager ) : System
GetControllerName ( Type type ) : string

Gets the controller associated with a given content type.

IsContentController ( string controllerName ) : bool

Returns true if the given controller is a controller handling content items.

Private Methods

Method Description
FindControllers ( ITypeFinder typeFinder ) : IList
GetControllerFor ( Type itemType, IList controllerDefinitions ) : IAdapterDescriptor

Method Details

ControllerHasAction() public method

Returns true if the given controller has the given action.
public ControllerHasAction ( string controllerName, string actionName ) : bool
controllerName string The controller to check.
actionName string The action to verify.
return bool

ControllerMapper() public method

public ControllerMapper ( ITypeFinder typeFinder, IDefinitionManager definitionManager ) : System
typeFinder ITypeFinder
definitionManager IDefinitionManager
return System

GetControllerName() public method

Gets the controller associated with a given content type.
public GetControllerName ( Type type ) : string
type System.Type
return string

IsContentController() public method

Returns true if the given controller is a controller handling content items.
public IsContentController ( string controllerName ) : bool
controllerName string The controller to check.
return bool