View Source
Class TrackedReferencesController
Inheritance
System.Object
Microsoft.AspNetCore.Mvc.ControllerBase
Assembly: Umbraco.Web.BackOffice.dll
Syntax
[PluginController("UmbracoApi")]
[Authorize(Policy = "SectionAccessContentOrMedia")]
public class TrackedReferencesController : BackOfficeNotificationsController, IUmbracoFeature, IDiscoverable
Constructors
View Source
TrackedReferencesController(ITrackedReferencesService)
Declaration
public TrackedReferencesController(ITrackedReferencesService relationService)
Parameters
Methods
View Source
GetPagedDescendantsInReferences(Int32, Int32, Int32, Boolean)
Gets a page list of the child nodes of the current item used in any kind of relation.
Declaration
public ActionResult<PagedResult<RelationItem>> GetPagedDescendantsInReferences(int parentId, int pageNumber = 1, int pageSize = 100, bool filterMustBeIsDependency = true)
Parameters
Type |
Name |
Description |
System.Int32 |
parentId |
|
System.Int32 |
pageNumber |
|
System.Int32 |
pageSize |
|
System.Boolean |
filterMustBeIsDependency |
|
Returns
View Source
GetPagedReferencedItems(Int32[], Int32, Int32, Boolean)
Gets a page list of the items used in any kind of relation from selected integer ids.
Declaration
[HttpGet]
[HttpPost]
public ActionResult<PagedResult<RelationItem>> GetPagedReferencedItems([FromJsonPath] int[] ids, int pageNumber = 1, int pageSize = 100, bool filterMustBeIsDependency = true)
Parameters
Type |
Name |
Description |
System.Int32[] |
ids |
|
System.Int32 |
pageNumber |
|
System.Int32 |
pageSize |
|
System.Boolean |
filterMustBeIsDependency |
|
Returns
View Source
GetPagedReferences(Int32, Int32, Int32, Boolean)
Gets a page list of tracked references for the current item, so you can see where an item is being used.
Declaration
public ActionResult<PagedResult<RelationItem>> GetPagedReferences(int id, int pageNumber = 1, int pageSize = 100, bool filterMustBeIsDependency = false)
Parameters
Type |
Name |
Description |
System.Int32 |
id |
|
System.Int32 |
pageNumber |
|
System.Int32 |
pageSize |
|
System.Boolean |
filterMustBeIsDependency |
|
Returns