C# Class Rebel.Cms.Web.Trees.ContentTreeController

Inheritance: RecycleBinTreeController
Mostra file Open project: RebelCMS/rebelcmsxu5 Class Usage Examples

Public Methods

Method Description
ContentTreeController ( IBackOfficeRequestContext requestContext ) : System

Protected Methods

Method Description
AddMenuItemsToNode ( TreeNode n, System.Web.Mvc.FormCollection queryStrings ) : void

Adds menu items to each node

AddMenuItemsToNodeInRecycleBin ( TreeNode n, System.Web.Mvc.FormCollection queryStrings ) : void
AddMenuItemsToRootNode ( TreeNode n, System.Web.Mvc.FormCollection queryStrings ) : void

Adds menu items to root node

ConvertEntityToTreeNode ( TypedEntity entity, HiveId parentId, System.Web.Mvc.FormCollection queryStrings, IReadonlyGroupUnit uow ) : TreeNode
CreateRootNode ( System.Web.Mvc.FormCollection queryStrings ) : TreeNode

Customize the root node

GetChildContentIds ( HiveId parentId, IReadonlyGroupUnit uow ) : HiveId[]

Gets the child content ids for this tree given a parentId.

GetChildTreeNodes ( HiveId parentId, System.Web.Mvc.FormCollection queryStrings ) : IEnumerable

Get the child tree nodes for the id specified

GetHiveProvider ( HiveId parentId, System.Web.Mvc.FormCollection queryStrings ) : ReadonlyGroupUnitFactory

Returns the Hive provider to be used to query for child nodes

GetTreeNodeAlias ( TypedEntity x ) : string

Private Methods

Method Description
Index ( HiveId id, System.Web.Mvc.FormCollection querystrings ) : RebelTreeResult

Method Details

AddMenuItemsToNode() protected method

Adds menu items to each node
protected AddMenuItemsToNode ( TreeNode n, System.Web.Mvc.FormCollection queryStrings ) : void
n TreeNode
queryStrings System.Web.Mvc.FormCollection
return void

AddMenuItemsToNodeInRecycleBin() protected method

protected AddMenuItemsToNodeInRecycleBin ( TreeNode n, System.Web.Mvc.FormCollection queryStrings ) : void
n TreeNode
queryStrings System.Web.Mvc.FormCollection
return void

AddMenuItemsToRootNode() protected method

Adds menu items to root node
protected AddMenuItemsToRootNode ( TreeNode n, System.Web.Mvc.FormCollection queryStrings ) : void
n TreeNode
queryStrings System.Web.Mvc.FormCollection
return void

ContentTreeController() public method

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

ConvertEntityToTreeNode() protected method

protected ConvertEntityToTreeNode ( TypedEntity entity, HiveId parentId, System.Web.Mvc.FormCollection queryStrings, IReadonlyGroupUnit uow ) : TreeNode
entity TypedEntity
parentId HiveId
queryStrings System.Web.Mvc.FormCollection
uow IReadonlyGroupUnit
return TreeNode

CreateRootNode() protected method

Customize the root node
protected CreateRootNode ( System.Web.Mvc.FormCollection queryStrings ) : TreeNode
queryStrings System.Web.Mvc.FormCollection
return TreeNode

GetChildContentIds() protected method

Gets the child content ids for this tree given a parentId.
protected GetChildContentIds ( HiveId parentId, IReadonlyGroupUnit uow ) : HiveId[]
parentId HiveId The parent id.
uow IReadonlyGroupUnit The uow.
return HiveId[]

GetChildTreeNodes() protected method

Get the child tree nodes for the id specified
protected GetChildTreeNodes ( HiveId parentId, System.Web.Mvc.FormCollection queryStrings ) : IEnumerable
parentId HiveId
queryStrings System.Web.Mvc.FormCollection
return IEnumerable

GetHiveProvider() protected method

Returns the Hive provider to be used to query for child nodes
protected GetHiveProvider ( HiveId parentId, System.Web.Mvc.FormCollection queryStrings ) : ReadonlyGroupUnitFactory
parentId HiveId
queryStrings System.Web.Mvc.FormCollection
return ReadonlyGroupUnitFactory

GetTreeNodeAlias() protected method

protected GetTreeNodeAlias ( TypedEntity x ) : string
x TypedEntity
return string