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

A helper class that is used by both the Media and Content enabled NodeSelector trees in order to not duplicate a ton of code.
Datei anzeigen Open project: RebelCMS/rebelcmsxu5 Class Usage Examples

Public Methods

Method Description
NodeSelectorContentTreeControllerHelper ( Func getHiveProvider, System.Action ensureInitialized, string>.Func getTreeNodeAlias, IBackOfficeRequestContext backOfficeRequestContext ) : System

Private Methods

Method Description
CreateRootNode ( System.Web.Mvc.FormCollection queryStrings, TreeNode>.Func createRootNode ) : TreeNode

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

GetEntity ( HiveId nodeId ) : TypedEntity

Returns an entity given a HiveId

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

Returns the url for the media item

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

Returns the model for each NodeSelector persisted item

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

Returns the paths for the specified HiveId

GetRootNodeIdForRequest ( Func getRootNodeId ) : HiveId

If a request is received with a querystring directive of TreeQueryStringParameters.RenderParent, then we'll dynamically set the RootNodeId to the one being requested.

GetRootNodeIdForTree ( Func rootNodeId ) : HiveId

Returns the root node id defined by the tree

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

Returns the content to display in the tooltip

GetTreeData ( HiveId parentId, System.Web.Mvc.FormCollection queryStrings, HiveId actualRootNodeId, TreeNodeCollection nodeCollection, TreeNode>.Func createRootNode, Func returnResult, Func returnDefaultResult ) : RebelTreeResult

Check if the querystring directive of TreeQueryStringParameters.RenderParent is true, if so then set the _dynamicRootNodeId value to the one being requested and only return the root node, otherwise proceed as normal.

Method Details

NodeSelectorContentTreeControllerHelper() public method

public NodeSelectorContentTreeControllerHelper ( Func getHiveProvider, System.Action ensureInitialized, string>.Func getTreeNodeAlias, IBackOfficeRequestContext backOfficeRequestContext ) : System
getHiveProvider Func
ensureInitialized System.Action
getTreeNodeAlias string>.Func
backOfficeRequestContext IBackOfficeRequestContext
return System