C# Class N2.Web.Mvc.ControllerMapper

Inheritance: IControllerMapper
Afficher le fichier Open project: Earthware/n2cms

Private Properties

Свойство Type Description
FindControllers IList
GetControllerFor IAdapterDescriptor

Méthodes publiques

Méthode 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

Méthode Description
FindControllers ( ITypeFinder typeFinder ) : IList
GetControllerFor ( Type itemType, IList controllerDefinitions ) : IAdapterDescriptor

Method Details

ControllerHasAction() public méthode

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.
Résultat bool

ControllerMapper() public méthode

public ControllerMapper ( ITypeFinder typeFinder, IDefinitionManager definitionManager ) : System
typeFinder ITypeFinder
definitionManager IDefinitionManager
Résultat System

GetControllerName() public méthode

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

IsContentController() public méthode

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