C# Класс Rebel.Cms.Web.PropertyEditors.NodeSelector.NodeSelectorContentTreeController

Наследование: Rebel.Cms.Web.Trees.ContentTreeController, INodeSelectorDataSource
Показать файл Открыть проект

Открытые методы

Метод Описание
GetEntity ( HiveId nodeId ) : TypedEntity

Returns an entity given a HiveId

GetMediaUrl ( HiveId id, System.Guid treeId, string propertyAlias ) : string

Returns the url for the media item

GetNodeSelectorItemModel ( HiveId id, System.Guid treeId ) : SelectedItemModel

Returns the model for each NodeSelector persisted item

GetPaths ( HiveId id, System.Guid treeId ) : EntityPathCollection

Returns the paths for the specified HiveId

GetRootNodeId ( ) : HiveId

Returns the root node id defined by the tree

GetTooltipContents ( HiveId id, System.Guid treeId ) : TooltipContents

Returns the content to display in the tooltip

NodeSelectorContentTreeController ( IBackOfficeRequestContext requestContext ) : System

Защищенные методы

Метод Описание
CreateRootNode ( System.Web.Mvc.FormCollection queryStrings ) : TreeNode

Overrides creating the root node so we can ensure the correct metadata is applied to it.

GetTreeData ( HiveId parentId, System.Web.Mvc.FormCollection queryStrings ) : RebelTreeResult

Returns the tree data for the specified node taking into account if a TreeQueryStringParameters.RenderParent is set to true.

Приватные методы

Метод Описание
EnsureInitialized ( ) : void

Used by the INodeSelectorDataSource because it executes in a context outside of a normal request, so we need to ensure this controller is initialized so we resolve the current request from IoC and manually initialize.

Описание методов

CreateRootNode() защищенный Метод

Overrides creating the root node so we can ensure the correct metadata is applied to it.
protected CreateRootNode ( System.Web.Mvc.FormCollection queryStrings ) : TreeNode
queryStrings System.Web.Mvc.FormCollection
Результат TreeNode

GetEntity() публичный Метод

Returns an entity given a HiveId
public GetEntity ( HiveId nodeId ) : TypedEntity
nodeId HiveId
Результат TypedEntity

GetMediaUrl() публичный Метод

Returns the url for the media item
public GetMediaUrl ( HiveId id, System.Guid treeId, string propertyAlias ) : string
id HiveId
treeId System.Guid
propertyAlias string
Результат string

GetNodeSelectorItemModel() публичный Метод

Returns the model for each NodeSelector persisted item
public GetNodeSelectorItemModel ( HiveId id, System.Guid treeId ) : SelectedItemModel
id HiveId
treeId System.Guid
Результат SelectedItemModel

GetPaths() публичный Метод

Returns the paths for the specified HiveId
public GetPaths ( HiveId id, System.Guid treeId ) : EntityPathCollection
id HiveId
treeId System.Guid
Результат EntityPathCollection

GetRootNodeId() публичный Метод

Returns the root node id defined by the tree
public GetRootNodeId ( ) : HiveId
Результат HiveId

GetTooltipContents() публичный Метод

Returns the content to display in the tooltip
public GetTooltipContents ( HiveId id, System.Guid treeId ) : TooltipContents
id HiveId
treeId System.Guid
Результат TooltipContents

GetTreeData() защищенный Метод

Returns the tree data for the specified node taking into account if a TreeQueryStringParameters.RenderParent is set to true.
protected GetTreeData ( HiveId parentId, System.Web.Mvc.FormCollection queryStrings ) : RebelTreeResult
parentId HiveId
queryStrings System.Web.Mvc.FormCollection
Результат RebelTreeResult

NodeSelectorContentTreeController() публичный Метод

public NodeSelectorContentTreeController ( IBackOfficeRequestContext requestContext ) : System
requestContext IBackOfficeRequestContext
Результат System