Search Results for

    Show / Hide Table of Contents
    View Source

    Class TrackedReferencesService

    Inheritance
    object
    Namespace: Umbraco.Cms.Core.Services
    Assembly: Umbraco.Core.dll
    Syntax
    public class TrackedReferencesService : ITrackedReferencesService

    Constructors

    View Source

    TrackedReferencesService(ITrackedReferencesRepository, ICoreScopeProvider, IEntityService)

    Declaration
    public TrackedReferencesService(ITrackedReferencesRepository trackedReferencesRepository, ICoreScopeProvider scopeProvider, IEntityService entityService)
    Parameters
    Type Name Description
    ITrackedReferencesRepository trackedReferencesRepository
    ICoreScopeProvider scopeProvider
    IEntityService entityService

    Methods

    View Source

    GetPagedDescendantsInReferencesAsync(Guid, long, long, bool)

    Gets a paged result of the descending items that have any references, given a parent id.

    Declaration
    [Obsolete("Use GetPagedDescendantsInReferencesAsync which returns an Attempt with operation status. Scheduled for removal in Umbraco 19.")]
    public Task<PagedModel<RelationItemModel>> GetPagedDescendantsInReferencesAsync(Guid parentKey, long skip, long take, bool filterMustBeIsDependency)
    Parameters
    Type Name Description
    Guid parentKey

    The unique identifier of the parent to retrieve descendants for.

    long skip

    The amount of items to skip

    long take

    The amount of items to take.

    bool filterMustBeIsDependency

    A boolean indicating whether to filter only the RelationTypes which are dependencies (isDependency field is set to true).

    Returns
    Type Description
    Task<PagedModel<RelationItemModel>>

    A paged result of RelationItemModel objects.

    View Source

    GetPagedDescendantsInReferencesAsync(Guid, UmbracoObjectTypes, long, long, bool)

    Gets a paged result of the descending items that have any references, given a parent id.

    Declaration
    public Task<Attempt<PagedModel<RelationItemModel>, GetReferencesOperationStatus>> GetPagedDescendantsInReferencesAsync(Guid parentKey, UmbracoObjectTypes objectType, long skip, long take, bool filterMustBeIsDependency)
    Parameters
    Type Name Description
    Guid parentKey

    The unique identifier of the parent to retrieve descendants for.

    UmbracoObjectTypes objectType

    The Umbraco object type of the parent.

    long skip

    The amount of items to skip

    long take

    The amount of items to take.

    bool filterMustBeIsDependency

    A boolean indicating whether to filter only the RelationTypes which are dependencies (isDependency field is set to true).

    Returns
    Type Description
    Task<Attempt<PagedModel<RelationItemModel>, GetReferencesOperationStatus>>

    An Attempt wrapping a paged result of RelationItemModel objects.

    View Source

    GetPagedItemsWithRelationsAsync(ISet<Guid>, long, long, bool)

    Gets a paged result of items used in any kind of relation from selected integer ids.

    Declaration
    public Task<PagedModel<RelationItemModel>> GetPagedItemsWithRelationsAsync(ISet<Guid> keys, long skip, long take, bool filterMustBeIsDependency)
    Parameters
    Type Name Description
    ISet<Guid> keys

    The identifiers of the entities to check for relations.

    long skip

    The amount of items to skip

    long take

    The amount of items to take.

    bool filterMustBeIsDependency

    A boolean indicating whether to filter only the RelationTypes which are dependencies (isDependency field is set to true).

    Returns
    Type Description
    Task<PagedModel<RelationItemModel>>

    A paged result of RelationItemModel objects.

    View Source

    GetPagedKeysWithDependentReferencesAsync(ISet<Guid>, Guid, long, long)

    Declaration
    public Task<PagedModel<Guid>> GetPagedKeysWithDependentReferencesAsync(ISet<Guid> keys, Guid objectTypeId, long skip, long take)
    Parameters
    Type Name Description
    ISet<Guid> keys
    Guid objectTypeId
    long skip
    long take
    Returns
    Type Description
    Task<PagedModel<Guid>>
    View Source

    GetPagedRelationsForItemAsync(Guid, long, long, bool)

    Gets a paged result of items which are in relation with the current item. Basically, shows the items which depend on the current item.

    Declaration
    [Obsolete("Use the GetPagedRelationsForItemAsync overload which returns an Attempt with operation status. Scheduled for removal in Umbraco 19.")]
    public Task<PagedModel<RelationItemModel>> GetPagedRelationsForItemAsync(Guid key, long skip, long take, bool filterMustBeIsDependency)
    Parameters
    Type Name Description
    Guid key

    The identifier of the entity to retrieve relations for.

    long skip

    The amount of items to skip

    long take

    The amount of items to take.

    bool filterMustBeIsDependency

    A boolean indicating whether to filter only the RelationTypes which are dependencies (isDependency field is set to true).

    Returns
    Type Description
    Task<PagedModel<RelationItemModel>>

    A paged result of RelationItemModel objects.

    View Source

    GetPagedRelationsForItemAsync(Guid, UmbracoObjectTypes, long, long, bool)

    Gets a paged result of items which are in relation with the current item. Basically, shows the items which depend on the current item.

    Declaration
    public Task<Attempt<PagedModel<RelationItemModel>, GetReferencesOperationStatus>> GetPagedRelationsForItemAsync(Guid key, UmbracoObjectTypes objectType, long skip, long take, bool filterMustBeIsDependency)
    Parameters
    Type Name Description
    Guid key

    The identifier of the entity to retrieve relations for.

    UmbracoObjectTypes objectType

    The Umbraco object type of the parent.

    long skip

    The amount of items to skip

    long take

    The amount of items to take.

    bool filterMustBeIsDependency

    A boolean indicating whether to filter only the RelationTypes which are dependencies (isDependency field is set to true).

    Returns
    Type Description
    Task<Attempt<PagedModel<RelationItemModel>, GetReferencesOperationStatus>>

    A paged result of RelationItemModel objects.

    View Source

    GetPagedRelationsForRecycleBinAsync(UmbracoObjectTypes, long, long, bool)

    Gets a paged result of items which are in relation with an item in the recycle bin.

    Declaration
    public Task<PagedModel<RelationItemModel>> GetPagedRelationsForRecycleBinAsync(UmbracoObjectTypes objectType, long skip, long take, bool filterMustBeIsDependency)
    Parameters
    Type Name Description
    UmbracoObjectTypes objectType

    The Umbraco object type that has recycle bin support (currently Document or Media).

    long skip

    The amount of items to skip

    long take

    The amount of items to take.

    bool filterMustBeIsDependency

    A boolean indicating whether to filter only the RelationTypes which are dependencies (isDependency field is set to true).

    Returns
    Type Description
    Task<PagedModel<RelationItemModel>>

    A paged result of RelationItemModel objects.

    • Edit this page
    • View Source
    In this article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX