Interface IRecycleBinNavigationManagementService
Placeholder for sharing logic between the document and media navigation services for managing the recycle bin navigation structure.
Namespace: Umbraco.Cms.Core.Services.Navigation
Assembly: Umbraco.Core.dll
Syntax
public interface IRecycleBinNavigationManagementService
Methods
View SourceRebuildBinAsync()
Rebuilds the recycle bin navigation structure by fetching the latest trashed nodes from the underlying repository.
Declaration
Task RebuildBinAsync()
Returns
Type | Description |
---|---|
Task |
RemoveFromBin(Guid)
Permanently removes a node and all of its descendants from the recycle bin navigation structure.
Declaration
bool RemoveFromBin(Guid key)
Parameters
Type | Name | Description |
---|---|---|
Guid | key | The unique identifier of the node to remove. |
Returns
Type | Description |
---|---|
System.Boolean |
|
RestoreFromBin(Guid, Nullable<Guid>)
Restores a node and all of its descendants from the recycle bin navigation structure and moves them back to the main navigation structure. The node can be restored to a specified target parent or to the root level if no parent is specified.
Declaration
bool RestoreFromBin(Guid key, Guid? targetParentKey = null)
Parameters
Type | Name | Description |
---|---|---|
Guid | key | The unique identifier of the node to restore from the recycle bin navigation structure. |
System.Nullable<Guid> | targetParentKey | The unique identifier of the target parent node in the main navigation structure to which the node
should be restored. If |
Returns
Type | Description |
---|---|
System.Boolean |
|