C# Class Rebel.Cms.Web.PropertyEditors.NodeSelector.NodeSelectorContentTreeController

Inheritance: Rebel.Cms.Web.Trees.ContentTreeController, INodeSelectorDataSource
Datei anzeigen Open project: RebelCMS/rebelcmsxu5

Public Methods

Method Description
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

Protected Methods

Method Description
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.

Private Methods

Method Description
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.

Method Details

CreateRootNode() protected method

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
return TreeNode

GetEntity() public method

Returns an entity given a HiveId
public GetEntity ( HiveId nodeId ) : TypedEntity
nodeId HiveId
return TypedEntity

GetMediaUrl() public method

Returns the url for the media item
public GetMediaUrl ( HiveId id, System.Guid treeId, string propertyAlias ) : string
id HiveId
treeId System.Guid
propertyAlias string
return string

GetNodeSelectorItemModel() public method

Returns the model for each NodeSelector persisted item
public GetNodeSelectorItemModel ( HiveId id, System.Guid treeId ) : SelectedItemModel
id HiveId
treeId System.Guid
return SelectedItemModel

GetPaths() public method

Returns the paths for the specified HiveId
public GetPaths ( HiveId id, System.Guid treeId ) : EntityPathCollection
id HiveId
treeId System.Guid
return EntityPathCollection

GetRootNodeId() public method

Returns the root node id defined by the tree
public GetRootNodeId ( ) : HiveId
return HiveId

GetTooltipContents() public method

Returns the content to display in the tooltip
public GetTooltipContents ( HiveId id, System.Guid treeId ) : TooltipContents
id HiveId
treeId System.Guid
return TooltipContents

GetTreeData() protected method

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
return RebelTreeResult

NodeSelectorContentTreeController() public method

public NodeSelectorContentTreeController ( IBackOfficeRequestContext requestContext ) : System
requestContext IBackOfficeRequestContext
return System