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 SourceGetContentNodesByObjectType(IEnumerable<Guid>)
Retrieves a collection of nodes as navigation models for multiple object types.
Declaration
IEnumerable<INavigationModel> GetContentNodesByObjectType(IEnumerable<Guid> objectTypeKeys)
Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerable<Guid> | objectTypeKeys | The unique identifiers for the object types to include. |
Returns
| Type | Description |
|---|---|
| IEnumerable<INavigationModel> | A collection of navigation models. |
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(IEnumerable<Guid>)
Retrieves a collection of trashed nodes as navigation models for multiple object types.
Declaration
IEnumerable<INavigationModel> GetTrashedContentNodesByObjectType(IEnumerable<Guid> objectTypeKeys)
Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerable<Guid> | objectTypeKeys | The unique identifiers for the object types to include. |
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. |