Interface INavigationRepository
Represents a repository for content navigation operations.
Namespace: Umbraco.Cms.Core.Persistence.Repositories
Assembly: Umbraco.Core.dll
Syntax
public interface INavigationRepository
Methods
View SourceGetContentNodeWithAncestors(Guid, Guid)
Retrieves the content node with the given key together with all of its ancestors, ordered from the root down.
Declaration
IEnumerable<INavigationModel> GetContentNodeWithAncestors(Guid key, Guid objectTypeKey)
Parameters
| Type | Name | Description |
|---|---|---|
| Guid | key | The unique identifier of the node. |
| Guid | objectTypeKey | The unique identifier for the object type. |
Returns
| Type | Description |
|---|---|
| IEnumerable<INavigationModel> | The navigation models of the ancestors and the node itself, or an empty collection when the node does not exist. |
GetContentNodesByObjectType(Guid)
Retrieves a collection of content nodes as navigation models based on the object type key.
Declaration
IEnumerable<INavigationModel> GetContentNodesByObjectType(Guid objectTypeKey)
Parameters
| Type | Name | Description |
|---|---|---|
| Guid | objectTypeKey | The unique identifier for the object type. |
Returns
| Type | Description |
|---|---|
| IEnumerable<INavigationModel> | A collection of navigation models. |
GetTrashedContentNodesByObjectType(Guid)
Retrieves a collection of trashed content nodes as navigation models based on the object type key.
Declaration
IEnumerable<INavigationModel> GetTrashedContentNodesByObjectType(Guid objectTypeKey)
Parameters
| Type | Name | Description |
|---|---|---|
| Guid | objectTypeKey | The unique identifier for the object type. |
Returns
| Type | Description |
|---|---|
| IEnumerable<INavigationModel> | A collection of navigation models. |