Interface ITrackedReferencesService
Namespace: Umbraco.Cms.Core.Services
Assembly: Umbraco.Core.dll
Syntax
public interface ITrackedReferencesService
Methods
View SourceGetPagedDescendantsInReferences(Int32, Int64, Int32, Boolean)
Gets a paged result of the descending items that have any references, given a parent id.
Declaration
PagedResult<RelationItem> GetPagedDescendantsInReferences(int parentId, long pageIndex, int pageSize, bool filterMustBeIsDependency)
Parameters
Type | Name | Description |
---|---|---|
System. |
parentId | The unique identifier of the parent to retrieve descendants for. |
System. |
pageIndex | The page index. |
System. |
pageSize | The page size. |
System. |
filterMustBeIsDependency | A boolean indicating whether to filter only the RelationTypes which are dependencies (isDependency field is set to true). |
Returns
Type | Description |
---|---|
Paged |
A paged result of Relation |
GetPagedDescendantsInReferences(Int32, Int64, Int64, Boolean)
Gets a paged result of the descending items that have any references, given a parent id.
Declaration
virtual PagedModel<RelationItemModel> GetPagedDescendantsInReferences(int parentId, long skip, long take, bool filterMustBeIsDependency)
Parameters
Type | Name | Description |
---|---|---|
System. |
parentId | The unique identifier of the parent to retrieve descendants for. |
System. |
skip | The amount of items to skip |
System. |
take | The amount of items to take. |
System. |
filterMustBeIsDependency | A boolean indicating whether to filter only the RelationTypes which are dependencies (isDependency field is set to true). |
Returns
Type | Description |
---|---|
Paged |
A paged result of Relation |
GetPagedItemsWithRelations(Int32[], Int64, Int32, Boolean)
Gets a paged result of items used in any kind of relation from selected integer ids.
Declaration
PagedResult<RelationItem> GetPagedItemsWithRelations(int[] ids, long pageIndex, int pageSize, bool filterMustBeIsDependency)
Parameters
Type | Name | Description |
---|---|---|
System. |
ids | The identifiers of the entities to check for relations. |
System. |
pageIndex | The page index. |
System. |
pageSize | The page size. |
System. |
filterMustBeIsDependency | A boolean indicating whether to filter only the RelationTypes which are dependencies (isDependency field is set to true). |
Returns
Type | Description |
---|---|
Paged |
A paged result of Relation |
GetPagedItemsWithRelations(Int32[], Int64, Int64, Boolean)
Gets a paged result of items used in any kind of relation from selected integer ids.
Declaration
virtual PagedModel<RelationItemModel> GetPagedItemsWithRelations(int[] ids, long skip, long take, bool filterMustBeIsDependency)
Parameters
Type | Name | Description |
---|---|---|
System. |
ids | The identifiers of the entities to check for relations. |
System. |
skip | The amount of items to skip |
System. |
take | The amount of items to take. |
System. |
filterMustBeIsDependency | A boolean indicating whether to filter only the RelationTypes which are dependencies (isDependency field is set to true). |
Returns
Type | Description |
---|---|
Paged |
A paged result of Relation |
GetPagedRelationsForItem(Int32, Int64, Int32, Boolean)
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
PagedResult<RelationItem> GetPagedRelationsForItem(int id, long pageIndex, int pageSize, bool filterMustBeIsDependency)
Parameters
Type | Name | Description |
---|---|---|
System. |
id | The identifier of the entity to retrieve relations for. |
System. |
pageIndex | The page index. |
System. |
pageSize | The page size. |
System. |
filterMustBeIsDependency | A boolean indicating whether to filter only the RelationTypes which are dependencies (isDependency field is set to true). |
Returns
Type | Description |
---|---|
Paged |
A paged result of Relation |
GetPagedRelationsForItem(Int32, Int64, Int64, Boolean)
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
virtual PagedModel<RelationItemModel> GetPagedRelationsForItem(int id, long skip, long take, bool filterMustBeIsDependency)
Parameters
Type | Name | Description |
---|---|---|
System. |
id | The identifier of the entity to retrieve relations for. |
System. |
skip | The amount of items to skip |
System. |
take | The amount of items to take. |
System. |
filterMustBeIsDependency | A boolean indicating whether to filter only the RelationTypes which are dependencies (isDependency field is set to true). |
Returns
Type | Description |
---|---|
Paged |
A paged result of Relation |