View Source
Class FileServiceOperationBase<TRepository, TEntity, TOperationStatus>
Inheritance
System.Object
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
protected FileServiceOperationBase(ICoreScopeProvider provider, ILoggerFactory loggerFactory, IEventMessagesFactory eventMessagesFactory, TRepository repository, ILogger<StylesheetService> logger, IUserIdKeyResolver userIdKeyResolver, IAuditRepository auditRepository)
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
Type |
Description |
System.String |
|
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 |
System.String |
path |
|
System.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 async Task<Attempt<TEntity, TOperationStatus>> HandleCreateAsync(string name, string parentPath, string content, Guid userKey)
Parameters
Type |
Name |
Description |
System.String |
name |
|
System.String |
parentPath |
|
System.String |
content |
|
Guid |
userKey |
|
Returns
Type |
Description |
Task<Attempt<TEntity, TOperationStatus>> |
|
View Source
HandleDeleteAsync(String, Guid)
Declaration
protected async Task<TOperationStatus> HandleDeleteAsync(string path, Guid userKey)
Parameters
Type |
Name |
Description |
System.String |
path |
|
Guid |
userKey |
|
Returns
Type |
Description |
Task<TOperationStatus> |
|
View Source
HandleRenameAsync(String, String, Guid)
Declaration
protected async Task<Attempt<TEntity, TOperationStatus>> HandleRenameAsync(string path, string newName, Guid userKey)
Parameters
Type |
Name |
Description |
System.String |
path |
|
System.String |
newName |
|
Guid |
userKey |
|
Returns
Type |
Description |
Task<Attempt<TEntity, TOperationStatus>> |
|
View Source
HandleUpdateAsync(String, String, Guid)
Declaration
protected async Task<Attempt<TEntity, TOperationStatus>> HandleUpdateAsync(string path, string content, Guid userKey)
Parameters
Type |
Name |
Description |
System.String |
path |
|
System.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