View Source
Assembly: Umbraco.Core.dll
public interface IMediaEditingService
Methods
View Source
CreateAsync(MediaCreateModel, Guid)
Declaration
Task<Attempt<MediaCreateResult, ContentEditingOperationStatus>> CreateAsync(MediaCreateModel createModel, Guid userKey)
Parameters
Returns
View Source
Declaration
Task<Attempt<IMedia, ContentEditingOperationStatus>> DeleteAsync(Guid key, Guid userKey)
Parameters
Type |
Name |
Description |
Guid |
key |
|
Guid |
userKey |
|
Returns
View Source
Declaration
Task<Attempt<IMedia, ContentEditingOperationStatus>> DeleteFromRecycleBinAsync(Guid key, Guid userKey)
Parameters
Type |
Name |
Description |
Guid |
key |
|
Guid |
userKey |
|
Returns
View Source
Declaration
Task<IMedia> GetAsync(Guid key)
Parameters
Type |
Name |
Description |
Guid |
key |
|
Returns
View Source
Declaration
Task<Attempt<IMedia, ContentEditingOperationStatus>> MoveAsync(Guid key, Guid? parentKey, Guid userKey)
Parameters
Type |
Name |
Description |
Guid |
key |
|
System.Nullable<Guid> |
parentKey |
|
Guid |
userKey |
|
Returns
View Source
Declaration
Task<Attempt<IMedia, ContentEditingOperationStatus>> MoveToRecycleBinAsync(Guid key, Guid userKey)
Parameters
Type |
Name |
Description |
Guid |
key |
|
Guid |
userKey |
|
Returns
View Source
Declaration
Task<Attempt<IMedia, 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, MediaUpdateModel, Guid)
Declaration
Task<Attempt<MediaUpdateResult, ContentEditingOperationStatus>> UpdateAsync(Guid key, MediaUpdateModel updateModel, Guid userKey)
Parameters
Returns
View Source
ValidateCreateAsync(MediaCreateModel)
Declaration
Task<Attempt<ContentValidationResult, ContentEditingOperationStatus>> ValidateCreateAsync(MediaCreateModel createModel)
Parameters
Returns
View Source
ValidateUpdateAsync(Guid, MediaUpdateModel)
Declaration
Task<Attempt<ContentValidationResult, ContentEditingOperationStatus>> ValidateUpdateAsync(Guid key, MediaUpdateModel updateModel)
Parameters
Returns