Search Results for

    Show / Hide Table of Contents
    View Source

    Class MediaTreeController

    Inheritance
    System.Object
    Microsoft.AspNetCore.Mvc.ControllerBase
    UmbracoApiControllerBase
    UmbracoApiController
    UmbracoAuthorizedApiController
    TreeControllerBase
    TreeController
    ContentTreeControllerBase
    Namespace: Umbraco.Cms.Web.BackOffice.Trees
    Assembly: Umbraco.Web.BackOffice.dll
    Syntax
    [Authorize(Policy = "SectionAccessForMediaTree")]
    public class MediaTreeController : ContentTreeControllerBase, ITreeNodeController

    Constructors

    View Source

    MediaTreeController(ILocalizedTextService, UmbracoApiControllerTypeCollection, IMenuItemCollectionFactory, IEntityService, IBackOfficeSecurityAccessor, ILogger<MediaTreeController>, ActionCollection, IUserService, IDataTypeService, UmbracoTreeSearcher, IMediaService, IEventAggregator, AppCaches)

    Declaration
    public MediaTreeController(ILocalizedTextService localizedTextService, UmbracoApiControllerTypeCollection umbracoApiControllerTypeCollection, IMenuItemCollectionFactory menuItemCollectionFactory, IEntityService entityService, IBackOfficeSecurityAccessor backofficeSecurityAccessor, ILogger<MediaTreeController> logger, ActionCollection actionCollection, IUserService userService, IDataTypeService dataTypeService, UmbracoTreeSearcher treeSearcher, IMediaService mediaService, IEventAggregator eventAggregator, AppCaches appCaches)
    Parameters
    Type Name Description
    ILocalizedTextService localizedTextService
    UmbracoApiControllerTypeCollection umbracoApiControllerTypeCollection
    IMenuItemCollectionFactory menuItemCollectionFactory
    IEntityService entityService
    IBackOfficeSecurityAccessor backofficeSecurityAccessor
    Microsoft.Extensions.Logging.ILogger<MediaTreeController> logger
    ActionCollection actionCollection
    IUserService userService
    IDataTypeService dataTypeService
    UmbracoTreeSearcher treeSearcher
    IMediaService mediaService
    IEventAggregator eventAggregator
    AppCaches appCaches

    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
    Type Description
    UmbracoObjectTypes
    View Source

    UserStartNodes

    Declaration
    protected override int[] UserStartNodes { get; }
    Property Value
    Type Description
    System.Int32[]

    Methods

    View Source

    GetSingleTreeNode(IEntitySlim, String, FormCollection)

    Creates a tree node for a content item based on an UmbracoEntity

    Declaration
    protected override TreeNode GetSingleTreeNode(IEntitySlim entity, string parentId, FormCollection queryStrings)
    Parameters
    Type Name Description
    IEntitySlim entity
    System.String parentId
    Microsoft.AspNetCore.Http.FormCollection queryStrings
    Returns
    Type Description
    TreeNode
    View Source

    HasPathAccess(String, FormCollection)

    Returns true or false if the current user has access to the node based on the user's allowed start node (path) access access

    Declaration
    protected override bool HasPathAccess(string id, FormCollection queryStrings)
    Parameters
    Type Name Description
    System.String id
    Microsoft.AspNetCore.Http.FormCollection queryStrings
    Returns
    Type Description
    System.Boolean
    View Source

    PerformGetMenuForNode(String, FormCollection)

    Declaration
    protected override ActionResult<MenuItemCollection> PerformGetMenuForNode(string id, FormCollection queryStrings)
    Parameters
    Type Name Description
    System.String id
    Microsoft.AspNetCore.Http.FormCollection queryStrings
    Returns
    Type Description
    Microsoft.AspNetCore.Mvc.ActionResult<MenuItemCollection>
    View Source

    SearchAsync(String, Int32, Int64, String)

    Declaration
    public async Task<EntitySearchResults> SearchAsync(string query, int pageSize, long pageIndex, string searchFrom = null)
    Parameters
    Type Name Description
    System.String query
    System.Int32 pageSize
    System.Int64 pageIndex
    System.String searchFrom
    Returns
    Type Description
    Task<EntitySearchResults>
    • Improve this Doc
    • View Source
    In This Article
    • Constructors
      • MediaTreeController(ILocalizedTextService, UmbracoApiControllerTypeCollection, IMenuItemCollectionFactory, IEntityService, IBackOfficeSecurityAccessor, ILogger<MediaTreeController>, ActionCollection, IUserService, IDataTypeService, UmbracoTreeSearcher, IMediaService, IEventAggregator, AppCaches)
    • Properties
      • RecycleBinId
      • RecycleBinSmells
      • UmbracoObjectType
      • UserStartNodes
    • Methods
      • GetSingleTreeNode(IEntitySlim, String, FormCollection)
      • HasPathAccess(String, FormCollection)
      • PerformGetMenuForNode(String, FormCollection)
      • SearchAsync(String, Int32, Int64, String)
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX