View Source
Class ContentTreeController
Inheritance
System.Object
Assembly: Umbraco.Web.dll
Syntax
[Tree("content", "content")]
[PluginController("UmbracoTrees")]
[SearchableTree("searchResultFormatter", "configureContentResult", 10)]
public class ContentTreeController : ContentTreeControllerBase, ISearchableTree, IDiscoverable
Constructors
View Source
ContentTreeController(UmbracoTreeSearcher, ActionCollection, IGlobalSettings, IUmbracoContextAccessor, ISqlContext, ServiceContext, AppCaches, IProfilingLogger, IRuntimeState, UmbracoHelper)
Declaration
public ContentTreeController(UmbracoTreeSearcher treeSearcher, ActionCollection actions, IGlobalSettings globalSettings, IUmbracoContextAccessor umbracoContextAccessor, ISqlContext sqlContext, ServiceContext services, AppCaches appCaches, IProfilingLogger logger, IRuntimeState runtimeState, UmbracoHelper umbracoHelper)
Parameters
Properties
View Source
RecycleBinId
Declaration
protected override int RecycleBinId { get; }
Property Value
Type |
Description |
System.Int32 |
|
View Source
RecycleBinSmells
Declaration
protected override bool RecycleBinSmells { get; }
Property Value
Type |
Description |
System.Boolean |
|
View Source
UmbracoObjectType
Declaration
protected override UmbracoObjectTypes UmbracoObjectType { get; }
Property Value
View Source
UserStartNodes
Declaration
protected override int[] UserStartNodes { get; }
Property Value
Type |
Description |
System.Int32[] |
|
Methods
View Source
Returns a collection of all menu items that can be on a content node
Declaration
protected MenuItemCollection GetAllNodeMenuItems(IUmbracoEntity item)
Parameters
Returns
View Source
GetChildEntities(String, FormDataCollection)
Declaration
protected override IEnumerable<IEntitySlim> GetChildEntities(string id, FormDataCollection queryStrings)
Parameters
Type |
Name |
Description |
System.String |
id |
|
FormDataCollection |
queryStrings |
|
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<IEntitySlim> |
|
View Source
Returns a collection of all menu items that can be on a deleted (in recycle bin) content node
Declaration
protected MenuItemCollection GetNodeMenuItemsForDeletedContent(IUmbracoEntity item)
Parameters
Returns
View Source
GetSingleTreeNode(IEntitySlim, String, FormDataCollection)
Declaration
protected override TreeNode GetSingleTreeNode(IEntitySlim entity, string parentId, FormDataCollection queryStrings)
Parameters
Type |
Name |
Description |
IEntitySlim |
entity |
|
System.String |
parentId |
|
FormDataCollection |
queryStrings |
|
Returns
View Source
HasPathAccess(String, FormDataCollection)
Returns true or false if the current user has access to the node based on the user's allowed start node (path) access
Declaration
protected override bool HasPathAccess(string id, FormDataCollection queryStrings)
Parameters
Type |
Name |
Description |
System.String |
id |
|
FormDataCollection |
queryStrings |
|
Returns
Type |
Description |
System.Boolean |
|
View Source
Declaration
protected override MenuItemCollection PerformGetMenuForNode(string id, FormDataCollection queryStrings)
Parameters
Type |
Name |
Description |
System.String |
id |
|
FormDataCollection |
queryStrings |
|
Returns
View Source
Search(String, Int32, Int64, out Int64, String)
Declaration
public IEnumerable<SearchResultEntity> Search(string query, int pageSize, long pageIndex, out long totalFound, string searchFrom = null)
Parameters
Type |
Name |
Description |
System.String |
query |
|
System.Int32 |
pageSize |
|
System.Int64 |
pageIndex |
|
System.Int64 |
totalFound |
|
System.String |
searchFrom |
|
Returns