Search Results for

    Show / Hide Table of Contents
    View Source

    Class FolderTreeControllerBase<TItem>

    Inheritance
    System.Object
    ManagementApiControllerBase
    EntityTreeControllerBase<TItem>
    NamedEntityTreeControllerBase<TItem>
    Namespace: Umbraco.Cms.Api.Management.Controllers.Tree
    Assembly: Umbraco.Cms.Api.Management.dll
    Syntax
    public abstract class FolderTreeControllerBase<TItem> : NamedEntityTreeControllerBase<TItem> where TItem : FolderTreeItemResponseModel, new()
    Type Parameters
    Name Description
    TItem

    Constructors

    View Source

    FolderTreeControllerBase(IEntityService)

    Declaration
    protected FolderTreeControllerBase(IEntityService entityService)
    Parameters
    Type Name Description
    IEntityService entityService

    Properties

    View Source

    FolderObjectType

    Declaration
    protected abstract UmbracoObjectTypes FolderObjectType { get; }
    Property Value
    Type Description
    UmbracoObjectTypes
    View Source

    ItemOrdering

    Declaration
    protected override Ordering ItemOrdering { get; }
    Property Value
    Type Description
    Ordering

    Methods

    View Source

    GetAncestorEntitiesAsync(Guid, Boolean)

    Declaration
    protected override async Task<IEntitySlim[]> GetAncestorEntitiesAsync(Guid descendantKey, bool includeSelf = true)
    Parameters
    Type Name Description
    Guid descendantKey
    System.Boolean includeSelf
    Returns
    Type Description
    Task<IEntitySlim[]>
    View Source

    GetPagedChildEntities(Guid, Int32, Int32, out Int64)

    Declaration
    protected override IEntitySlim[] GetPagedChildEntities(Guid parentKey, int skip, int take, out long totalItems)
    Parameters
    Type Name Description
    Guid parentKey
    System.Int32 skip
    System.Int32 take
    System.Int64 totalItems
    Returns
    Type Description
    IEntitySlim[]
    View Source

    GetPagedRootEntities(Int32, Int32, out Int64)

    Declaration
    protected override IEntitySlim[] GetPagedRootEntities(int skip, int take, out long totalItems)
    Parameters
    Type Name Description
    System.Int32 skip
    System.Int32 take
    System.Int64 totalItems
    Returns
    Type Description
    IEntitySlim[]
    View Source

    MapTreeItemViewModel(Nullable<Guid>, IEntitySlim)

    Declaration
    protected override TItem MapTreeItemViewModel(Guid? parentKey, IEntitySlim entity)
    Parameters
    Type Name Description
    System.Nullable<Guid> parentKey
    IEntitySlim entity
    Returns
    Type Description
    TItem
    View Source

    RenderFoldersOnly(Boolean)

    Declaration
    protected void RenderFoldersOnly(bool foldersOnly)
    Parameters
    Type Name Description
    System.Boolean foldersOnly
    • Improve this Doc
    • View Source
    In This Article
    • Constructors
      • FolderTreeControllerBase(IEntityService)
    • Properties
      • FolderObjectType
      • ItemOrdering
    • Methods
      • GetAncestorEntitiesAsync(Guid, Boolean)
      • GetPagedChildEntities(Guid, Int32, Int32, out Int64)
      • GetPagedRootEntities(Int32, Int32, out Int64)
      • MapTreeItemViewModel(Nullable<Guid>, IEntitySlim)
      • RenderFoldersOnly(Boolean)
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX