C# 클래스 Umbraco.Belle.System.Trees.TreeApiController

The base controller for all tree requests
상속: Umbraco.Web.WebApi.UmbracoApiController
파일 보기 프로젝트 열기: umbraco/Belle

공개 메소드들

메소드 설명
CreateTreeNode ( string id, FormDataCollection queryStrings, string title, string editorUrl ) : TreeNode

Helper method to create tree nodes and automatically generate the json url

CreateTreeNode ( string id, FormDataCollection queryStrings, string title, string editorUrl, bool hasChildren ) : TreeNode

Helper method to create tree nodes and automatically generate the json url

CreateTreeNode ( string id, FormDataCollection queryStrings, string title, string editorUrl, bool hasChildren, string icon ) : TreeNode

Helper method to create tree nodes and automatically generate the json url

CreateTreeNode ( string id, FormDataCollection queryStrings, string title, string editorUrl, string action ) : TreeNode

Helper method to create tree nodes and automatically generate the json url

CreateTreeNode ( string id, FormDataCollection queryStrings, string title, string editorUrl, string action, bool hasChildren ) : TreeNode

Helper method to create tree nodes and automatically generate the json url

CreateTreeNode ( string id, FormDataCollection queryStrings, string title, string editorUrl, string action, bool hasChildren, string icon ) : TreeNode

Helper method to create tree nodes and automatically generate the json url

CreateTreeNode ( string id, FormDataCollection queryStrings, string title, string editorUrl, string action, string icon ) : TreeNode

Helper method to create tree nodes and automatically generate the json url

보호된 메소드들

메소드 설명
AddQueryStringsToAdditionalData ( TreeNode node, FormDataCollection queryStrings ) : void

The AdditionalData of a node is always populated with the query string data, this method performs this operation and ensures that special values are not inserted or that duplicate keys are not added.

AddRootNodeToCollection ( string id, FormDataCollection queryStrings ) : bool

Checks if the node Id is the root node and if so creates the root node and appends it to the NodeCollection based on the standard tree parameters

This method ensure that all of the correct meta data is set for the root node so that the Umbraco application works as expected. Meta data such as 'treeId' and 'searchable'

CreateRootNode ( FormDataCollection queryStrings ) : TreeNode

Helper method to create a root model for a tree

GetTreeData ( string id, FormDataCollection queryStrings ) : TreeNodeCollection

The method called to render the contents of the tree structure

We are allowing an arbitrary number of query strings to be pased in so that developers are able to persist custom data from the front-end to the back end to be used in the query for model data.

Initialize ( global controllerContext ) : void

Remove the xml formatter... only support JSON!

TreeApiController ( ) : System

비공개 메소드들

메소드 설명
GetNodes ( string id, FormDataCollection queryStrings ) : TreeNodeCollection

메소드 상세

AddQueryStringsToAdditionalData() 보호된 메소드

The AdditionalData of a node is always populated with the query string data, this method performs this operation and ensures that special values are not inserted or that duplicate keys are not added.
protected AddQueryStringsToAdditionalData ( TreeNode node, FormDataCollection queryStrings ) : void
node TreeNode
queryStrings FormDataCollection
리턴 void

AddRootNodeToCollection() 보호된 메소드

Checks if the node Id is the root node and if so creates the root node and appends it to the NodeCollection based on the standard tree parameters
This method ensure that all of the correct meta data is set for the root node so that the Umbraco application works as expected. Meta data such as 'treeId' and 'searchable'
protected AddRootNodeToCollection ( string id, FormDataCollection queryStrings ) : bool
id string
queryStrings FormDataCollection
리턴 bool

CreateRootNode() 보호된 메소드

Helper method to create a root model for a tree
protected CreateRootNode ( FormDataCollection queryStrings ) : TreeNode
queryStrings FormDataCollection
리턴 TreeNode

CreateTreeNode() 공개 메소드

Helper method to create tree nodes and automatically generate the json url
public CreateTreeNode ( string id, FormDataCollection queryStrings, string title, string editorUrl ) : TreeNode
id string
queryStrings FormDataCollection
title string
editorUrl string
리턴 TreeNode

CreateTreeNode() 공개 메소드

Helper method to create tree nodes and automatically generate the json url
public CreateTreeNode ( string id, FormDataCollection queryStrings, string title, string editorUrl, bool hasChildren ) : TreeNode
id string
queryStrings FormDataCollection
title string
editorUrl string
hasChildren bool
리턴 TreeNode

CreateTreeNode() 공개 메소드

Helper method to create tree nodes and automatically generate the json url
public CreateTreeNode ( string id, FormDataCollection queryStrings, string title, string editorUrl, bool hasChildren, string icon ) : TreeNode
id string
queryStrings FormDataCollection
title string
editorUrl string
hasChildren bool
icon string
리턴 TreeNode

CreateTreeNode() 공개 메소드

Helper method to create tree nodes and automatically generate the json url
public CreateTreeNode ( string id, FormDataCollection queryStrings, string title, string editorUrl, string action ) : TreeNode
id string
queryStrings FormDataCollection
title string
editorUrl string
action string
리턴 TreeNode

CreateTreeNode() 공개 메소드

Helper method to create tree nodes and automatically generate the json url
public CreateTreeNode ( string id, FormDataCollection queryStrings, string title, string editorUrl, string action, bool hasChildren ) : TreeNode
id string
queryStrings FormDataCollection
title string
editorUrl string
action string
hasChildren bool
리턴 TreeNode

CreateTreeNode() 공개 메소드

Helper method to create tree nodes and automatically generate the json url
public CreateTreeNode ( string id, FormDataCollection queryStrings, string title, string editorUrl, string action, bool hasChildren, string icon ) : TreeNode
id string
queryStrings FormDataCollection
title string
editorUrl string
action string
hasChildren bool
icon string
리턴 TreeNode

CreateTreeNode() 공개 메소드

Helper method to create tree nodes and automatically generate the json url
public CreateTreeNode ( string id, FormDataCollection queryStrings, string title, string editorUrl, string action, string icon ) : TreeNode
id string
queryStrings FormDataCollection
title string
editorUrl string
action string
icon string
리턴 TreeNode

GetTreeData() 보호된 추상적인 메소드

The method called to render the contents of the tree structure
We are allowing an arbitrary number of query strings to be pased in so that developers are able to persist custom data from the front-end to the back end to be used in the query for model data.
protected abstract GetTreeData ( string id, FormDataCollection queryStrings ) : TreeNodeCollection
id string
queryStrings FormDataCollection /// All of the query string parameters passed from jsTree ///
리턴 TreeNodeCollection

Initialize() 보호된 메소드

Remove the xml formatter... only support JSON!
protected Initialize ( global controllerContext ) : void
controllerContext global
리턴 void

TreeApiController() 보호된 메소드

protected TreeApiController ( ) : System
리턴 System