Method | Description | |
---|---|---|
CreateTreeNode ( string id, FormDataCollection queryStrings, string title, string editorUrl ) : |
Helper method to create tree nodes and automatically generate the json url
|
|
CreateTreeNode ( string id, FormDataCollection queryStrings, string title, string editorUrl, bool hasChildren ) : |
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 ) : |
Helper method to create tree nodes and automatically generate the json url
|
|
CreateTreeNode ( string id, FormDataCollection queryStrings, string title, string editorUrl, string action ) : |
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 ) : |
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 ) : |
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 ) : |
Helper method to create tree nodes and automatically generate the json url
|
Method | Description | |
---|---|---|
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.
|
|
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 ) : |
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 |
Method | Description | |
---|---|---|
GetNodes ( string id, FormDataCollection queryStrings ) : TreeNodeCollection |
protected AddQueryStringsToAdditionalData ( |
||
node | ||
queryStrings | FormDataCollection | |
return | void |
protected AddRootNodeToCollection ( string id, FormDataCollection queryStrings ) : bool | ||
id | string | |
queryStrings | FormDataCollection | |
return | bool |
protected CreateRootNode ( FormDataCollection queryStrings ) : |
||
queryStrings | FormDataCollection | |
return |
public CreateTreeNode ( string id, FormDataCollection queryStrings, string title, string editorUrl ) : |
||
id | string | |
queryStrings | FormDataCollection | |
title | string | |
editorUrl | string | |
return |
public CreateTreeNode ( string id, FormDataCollection queryStrings, string title, string editorUrl, bool hasChildren ) : |
||
id | string | |
queryStrings | FormDataCollection | |
title | string | |
editorUrl | string | |
hasChildren | bool | |
return |
public CreateTreeNode ( string id, FormDataCollection queryStrings, string title, string editorUrl, bool hasChildren, string icon ) : |
||
id | string | |
queryStrings | FormDataCollection | |
title | string | |
editorUrl | string | |
hasChildren | bool | |
icon | string | |
return |
public CreateTreeNode ( string id, FormDataCollection queryStrings, string title, string editorUrl, string action ) : |
||
id | string | |
queryStrings | FormDataCollection | |
title | string | |
editorUrl | string | |
action | string | |
return |
public CreateTreeNode ( string id, FormDataCollection queryStrings, string title, string editorUrl, string action, bool hasChildren ) : |
||
id | string | |
queryStrings | FormDataCollection | |
title | string | |
editorUrl | string | |
action | string | |
hasChildren | bool | |
return |
public CreateTreeNode ( string id, FormDataCollection queryStrings, string title, string editorUrl, string action, bool hasChildren, string icon ) : |
||
id | string | |
queryStrings | FormDataCollection | |
title | string | |
editorUrl | string | |
action | string | |
hasChildren | bool | |
icon | string | |
return |
public CreateTreeNode ( string id, FormDataCollection queryStrings, string title, string editorUrl, string action, string icon ) : |
||
id | string | |
queryStrings | FormDataCollection | |
title | string | |
editorUrl | string | |
action | string | |
icon | string | |
return |
protected abstract GetTreeData ( string id, FormDataCollection queryStrings ) : TreeNodeCollection | ||
id | string | |
queryStrings | FormDataCollection | /// All of the query string parameters passed from jsTree /// |
return | TreeNodeCollection |
protected Initialize ( global controllerContext ) : void | ||
controllerContext | global | |
return | void |