View Source
Class FileServiceOperationBase<TRepository, TEntity, TOperationStatus>
Assembly: Umbraco.Core.dll
Syntax
public abstract class FileServiceOperationBase<TRepository, TEntity, TOperationStatus> : FileServiceBase<TRepository, TEntity>, IService, IBasicFileService<TEntity> where TRepository : IFileRepository, IReadRepository<string, TEntity>, IWriteRepository<TEntity>, IFileWithFoldersRepository where TEntity : IFile where TOperationStatus : Enum
Type Parameters
| Name |
Description |
| TRepository |
|
| TEntity |
|
| TOperationStatus |
|
Constructors
View Source
FileServiceOperationBase(ICoreScopeProvider, ILoggerFactory, IEventMessagesFactory, TRepository, ILogger<StylesheetService>, IUserIdKeyResolver, IAuditRepository)
Declaration
[Obsolete("Use the non-obsolete constructor instead. Scheduled removal in v19.")]
protected FileServiceOperationBase(ICoreScopeProvider provider, ILoggerFactory loggerFactory, IEventMessagesFactory eventMessagesFactory, TRepository repository, ILogger<StylesheetService> logger, IUserIdKeyResolver userIdKeyResolver, IAuditRepository auditRepository)
Parameters
View Source
FileServiceOperationBase(ICoreScopeProvider, ILoggerFactory, IEventMessagesFactory, TRepository, ILogger<StylesheetService>, IUserIdKeyResolver, IAuditService)
Declaration
protected FileServiceOperationBase(ICoreScopeProvider provider, ILoggerFactory loggerFactory, IEventMessagesFactory eventMessagesFactory, TRepository repository, ILogger<StylesheetService> logger, IUserIdKeyResolver userIdKeyResolver, IAuditService auditService)
Parameters
Properties
View Source
AlreadyExists
Declaration
protected abstract TOperationStatus AlreadyExists { get; }
Property Value
| Type |
Description |
| TOperationStatus |
|
View Source
CancelledByNotification
Declaration
protected abstract TOperationStatus CancelledByNotification { get; }
Property Value
| Type |
Description |
| TOperationStatus |
|
View Source
EntityType
Declaration
protected abstract string EntityType { get; }
Property Value
View Source
InvalidFileExtension
Declaration
protected abstract TOperationStatus InvalidFileExtension { get; }
Property Value
| Type |
Description |
| TOperationStatus |
|
View Source
InvalidName
Declaration
protected abstract TOperationStatus InvalidName { get; }
Property Value
| Type |
Description |
| TOperationStatus |
|
View Source
NotFound
Declaration
protected abstract TOperationStatus NotFound { get; }
Property Value
| Type |
Description |
| TOperationStatus |
|
View Source
ParentNotFound
Declaration
protected abstract TOperationStatus ParentNotFound { get; }
Property Value
| Type |
Description |
| TOperationStatus |
|
View Source
Declaration
protected abstract TOperationStatus PathTooLong { get; }
Property Value
| Type |
Description |
| TOperationStatus |
|
View Source
Success
Declaration
protected abstract TOperationStatus Success { get; }
Property Value
| Type |
Description |
| TOperationStatus |
|
Methods
View Source
CreateEntity(string, string?)
Declaration
protected abstract TEntity CreateEntity(string path, string? content)
Parameters
| Type |
Name |
Description |
| string |
path |
|
| string |
content |
|
Returns
View Source
DeletedNotification(TEntity, EventMessages)
Declaration
protected abstract DeletedNotification<TEntity> DeletedNotification(TEntity target, EventMessages messages)
Parameters
Returns
View Source
DeletingNotification(TEntity, EventMessages)
Declaration
protected abstract DeletingNotification<TEntity> DeletingNotification(TEntity target, EventMessages messages)
Parameters
Returns
View Source
HandleCreateAsync(string, string?, string?, Guid)
Declaration
protected Task<Attempt<TEntity?, TOperationStatus>> HandleCreateAsync(string name, string? parentPath, string? content, Guid userKey)
Parameters
| Type |
Name |
Description |
| string |
name |
|
| string |
parentPath |
|
| string |
content |
|
| Guid |
userKey |
|
Returns
| Type |
Description |
| Task<Attempt<TEntity, TOperationStatus>> |
|
View Source
HandleDeleteAsync(string, Guid)
Declaration
protected Task<TOperationStatus> HandleDeleteAsync(string path, Guid userKey)
Parameters
| Type |
Name |
Description |
| string |
path |
|
| Guid |
userKey |
|
Returns
| Type |
Description |
| Task<TOperationStatus> |
|
View Source
HandleRenameAsync(string, string, Guid)
Declaration
protected Task<Attempt<TEntity?, TOperationStatus>> HandleRenameAsync(string path, string newName, Guid userKey)
Parameters
| Type |
Name |
Description |
| string |
path |
|
| string |
newName |
|
| Guid |
userKey |
|
Returns
| Type |
Description |
| Task<Attempt<TEntity, TOperationStatus>> |
|
View Source
HandleUpdateAsync(string, string, Guid)
Declaration
protected Task<Attempt<TEntity?, TOperationStatus>> HandleUpdateAsync(string path, string content, Guid userKey)
Parameters
| Type |
Name |
Description |
| string |
path |
|
| string |
content |
|
| Guid |
userKey |
|
Returns
| Type |
Description |
| Task<Attempt<TEntity, TOperationStatus>> |
|
View Source
SavedNotification(TEntity, EventMessages)
Declaration
protected abstract SavedNotification<TEntity> SavedNotification(TEntity target, EventMessages messages)
Parameters
Returns
View Source
SavingNotification(TEntity, EventMessages)
Declaration
protected abstract SavingNotification<TEntity> SavingNotification(TEntity target, EventMessages messages)
Parameters
Returns