View Source
Interface IContentEditingService
Assembly: Umbraco.Core.dll
Syntax
public interface IContentEditingService
Methods
View Source
CopyAsync(Guid, Nullable<Guid>, Boolean, Boolean, Guid)
Declaration
Task<Attempt<IContent, ContentEditingOperationStatus>> CopyAsync(Guid key, Guid? parentKey, bool relateToOriginal, bool includeDescendants, Guid userKey)
Parameters
Type |
Name |
Description |
Guid |
key |
|
System.Nullable<Guid> |
parentKey |
|
System.Boolean |
relateToOriginal |
|
System.Boolean |
includeDescendants |
|
Guid |
userKey |
|
Returns
View Source
CreateAsync(ContentCreateModel, Guid)
Declaration
Task<Attempt<ContentCreateResult, ContentEditingOperationStatus>> CreateAsync(ContentCreateModel createModel, Guid userKey)
Parameters
Returns
View Source
DeleteAsync(Guid, Guid)
Deletes a Content Item whether it is in the recycle bin or not.
Declaration
Task<Attempt<IContent, ContentEditingOperationStatus>> DeleteAsync(Guid key, Guid userKey)
Parameters
Type |
Name |
Description |
Guid |
key |
|
Guid |
userKey |
|
Returns
View Source
DeleteFromRecycleBinAsync(Guid, Guid)
Deletes a Content Item if it is in the recycle bin.
Declaration
Task<Attempt<IContent, ContentEditingOperationStatus>> DeleteFromRecycleBinAsync(Guid key, Guid userKey)
Parameters
Type |
Name |
Description |
Guid |
key |
|
Guid |
userKey |
|
Returns
View Source
GetAsync(Guid)
Declaration
Task<IContent> GetAsync(Guid key)
Parameters
Type |
Name |
Description |
Guid |
key |
|
Returns
View Source
MoveAsync(Guid, Nullable<Guid>, Guid)
Declaration
Task<Attempt<IContent, ContentEditingOperationStatus>> MoveAsync(Guid key, Guid? parentKey, Guid userKey)
Parameters
Type |
Name |
Description |
Guid |
key |
|
System.Nullable<Guid> |
parentKey |
|
Guid |
userKey |
|
Returns
View Source
MoveToRecycleBinAsync(Guid, Guid)
Declaration
Task<Attempt<IContent, ContentEditingOperationStatus>> MoveToRecycleBinAsync(Guid key, Guid userKey)
Parameters
Type |
Name |
Description |
Guid |
key |
|
Guid |
userKey |
|
Returns
View Source
RestoreAsync(Guid, Nullable<Guid>, Guid)
Declaration
Task<Attempt<IContent, ContentEditingOperationStatus>> RestoreAsync(Guid key, Guid? parentKey, Guid userKey)
Parameters
Type |
Name |
Description |
Guid |
key |
|
System.Nullable<Guid> |
parentKey |
|
Guid |
userKey |
|
Returns
View Source
SortAsync(Nullable<Guid>, IEnumerable<SortingModel>, Guid)
Declaration
Task<ContentEditingOperationStatus> SortAsync(Guid? parentKey, IEnumerable<SortingModel> sortingModels, Guid userKey)
Parameters
Type |
Name |
Description |
System.Nullable<Guid> |
parentKey |
|
IEnumerable<SortingModel> |
sortingModels |
|
Guid |
userKey |
|
Returns
View Source
UpdateAsync(Guid, ContentUpdateModel, Guid)
Declaration
Task<Attempt<ContentUpdateResult, ContentEditingOperationStatus>> UpdateAsync(Guid key, ContentUpdateModel updateModel, Guid userKey)
Parameters
Returns
View Source
ValidateCreateAsync(ContentCreateModel)
Declaration
Task<Attempt<ContentValidationResult, ContentEditingOperationStatus>> ValidateCreateAsync(ContentCreateModel createModel)
Parameters
Returns
View Source
ValidateUpdateAsync(Guid, ContentUpdateModel)
Declaration
Task<Attempt<ContentValidationResult, ContentEditingOperationStatus>> ValidateUpdateAsync(Guid key, ContentUpdateModel updateModel)
Parameters
Returns
View Source
ValidateUpdateAsync(Guid, ValidateContentUpdateModel)
Declaration
Task<Attempt<ContentValidationResult, ContentEditingOperationStatus>> ValidateUpdateAsync(Guid key, ValidateContentUpdateModel updateModel)
Parameters
Returns