View Source
Inheritance
System.Object
Assembly: Umbraco.Web.dll
[Tree("media", "media")]
[PluginController("UmbracoTrees")]
[SearchableTree("searchResultFormatter", "configureMediaResult", 20)]
public class MediaTreeController : ContentTreeControllerBase, ISearchableTree, IDiscoverable
Constructors
View Source
MediaTreeController(UmbracoTreeSearcher, IGlobalSettings, IUmbracoContextAccessor, ISqlContext, ServiceContext, AppCaches, IProfilingLogger, IRuntimeState, UmbracoHelper)
Declaration
public MediaTreeController(UmbracoTreeSearcher treeSearcher, IGlobalSettings globalSettings, IUmbracoContextAccessor umbracoContextAccessor, ISqlContext sqlContext, ServiceContext services, AppCaches appCaches, IProfilingLogger logger, IRuntimeState runtimeState, UmbracoHelper umbracoHelper)
Parameters
Properties
View Source
Declaration
protected override int RecycleBinId { get; }
Property Value
Type |
Description |
System.Int32 |
|
View Source
Declaration
protected override bool RecycleBinSmells { get; }
Property Value
Type |
Description |
System.Boolean |
|
View Source
Declaration
protected override UmbracoObjectTypes UmbracoObjectType { get; }
Property Value
View Source
Declaration
protected override int[] UserStartNodes { get; }
Property Value
Type |
Description |
System.Int32[] |
|
Methods
View Source
Creates a tree node for a content item based on an UmbracoEntity
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
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
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