Class TrackedReferencesController
- Namespace
- Umbraco.Cms.Web.BackOffice.Controllers
- Assembly
- Umbraco.Web.BackOffice.dll
[Authorize(Policy = "SectionAccessContentOrMedia")]
public class TrackedReferencesController : BackOfficeNotificationsController
- Inheritance
-
TrackedReferencesController
- Inherited Members
Constructors
TrackedReferencesController(ITrackedReferencesService)
public TrackedReferencesController(ITrackedReferencesService relationService)
Parameters
relationServiceITrackedReferencesService
Methods
GetPagedDescendantsInReferences(int, int, int, bool)
Gets a page list of the child nodes of the current item used in any kind of relation.
public ActionResult<PagedResult<RelationItem>> GetPagedDescendantsInReferences(int parentId, int pageNumber = 1, int pageSize = 100, bool filterMustBeIsDependency = true)
Parameters
Returns
- ActionResult<PagedResult<RelationItem>>
Remarks
Used when deleting and unpublishing a single item to check if this item has any descending items that are in any kind of relation. This is basically finding the descending items which are children in relations.
GetPagedReferencedItems(int[], int, int, bool)
Gets a page list of the items used in any kind of relation from selected integer ids.
[HttpGet]
[HttpPost]
public ActionResult<PagedResult<RelationItem>> GetPagedReferencedItems(int[] ids, int pageNumber = 1, int pageSize = 100, bool filterMustBeIsDependency = true)
Parameters
Returns
- ActionResult<PagedResult<RelationItem>>
Remarks
Used when bulk deleting content/media and bulk unpublishing content (delete and unpublish on List view). This is basically finding children of relations.
GetPagedReferences(int, int, int, bool)
Gets a page list of tracked references for the current item, so you can see where an item is being used.
public ActionResult<PagedResult<RelationItem>> GetPagedReferences(int id, int pageNumber = 1, int pageSize = 100, bool filterMustBeIsDependency = false)
Parameters
Returns
- ActionResult<PagedResult<RelationItem>>
Remarks
Used by info tabs on content, media etc. and for the delete and unpublish of single items. This is basically finding parents of relations.