Search Results for

    Show / Hide Table of Contents
    View Source

    Class StylesheetService

    Inheritance
    System.Object
    RepositoryService
    FileServiceBase<IStylesheetRepository, IStylesheet>
    FileServiceOperationBase<IStylesheetRepository, IStylesheet, StylesheetOperationStatus>
    Namespace: Umbraco.Cms.Core.Services
    Assembly: Umbraco.Core.dll
    Syntax
    public class StylesheetService : FileServiceOperationBase<IStylesheetRepository, IStylesheet, StylesheetOperationStatus>, IService, IStylesheetService, IBasicFileService<IStylesheet>

    Constructors

    View Source

    StylesheetService(ICoreScopeProvider, ILoggerFactory, IEventMessagesFactory, IStylesheetRepository, ILogger<StylesheetService>, IUserIdKeyResolver, IAuditRepository)

    Declaration
    public StylesheetService(ICoreScopeProvider provider, ILoggerFactory loggerFactory, IEventMessagesFactory eventMessagesFactory, IStylesheetRepository repository, ILogger<StylesheetService> logger, IUserIdKeyResolver userIdKeyResolver, IAuditRepository auditRepository)
    Parameters
    Type Name Description
    ICoreScopeProvider provider
    ILoggerFactory loggerFactory
    IEventMessagesFactory eventMessagesFactory
    IStylesheetRepository repository
    ILogger<StylesheetService> logger
    IUserIdKeyResolver userIdKeyResolver
    IAuditRepository auditRepository

    Properties

    View Source

    AllowedFileExtensions

    Declaration
    protected override string[] AllowedFileExtensions { get; }
    Property Value
    Type Description
    System.String[]
    View Source

    AlreadyExists

    Declaration
    protected override StylesheetOperationStatus AlreadyExists { get; }
    Property Value
    Type Description
    StylesheetOperationStatus
    View Source

    CancelledByNotification

    Declaration
    protected override StylesheetOperationStatus CancelledByNotification { get; }
    Property Value
    Type Description
    StylesheetOperationStatus
    View Source

    EntityType

    Declaration
    protected override string EntityType { get; }
    Property Value
    Type Description
    System.String
    View Source

    InvalidFileExtension

    Declaration
    protected override StylesheetOperationStatus InvalidFileExtension { get; }
    Property Value
    Type Description
    StylesheetOperationStatus
    View Source

    InvalidName

    Declaration
    protected override StylesheetOperationStatus InvalidName { get; }
    Property Value
    Type Description
    StylesheetOperationStatus
    View Source

    NotFound

    Declaration
    protected override StylesheetOperationStatus NotFound { get; }
    Property Value
    Type Description
    StylesheetOperationStatus
    View Source

    ParentNotFound

    Declaration
    protected override StylesheetOperationStatus ParentNotFound { get; }
    Property Value
    Type Description
    StylesheetOperationStatus
    View Source

    PathTooLong

    Declaration
    protected override StylesheetOperationStatus PathTooLong { get; }
    Property Value
    Type Description
    StylesheetOperationStatus
    View Source

    Success

    Declaration
    protected override StylesheetOperationStatus Success { get; }
    Property Value
    Type Description
    StylesheetOperationStatus

    Methods

    View Source

    CreateAsync(StylesheetCreateModel, Guid)

    Creates a new stylesheet.

    Declaration
    public async Task<Attempt<IStylesheet, StylesheetOperationStatus>> CreateAsync(StylesheetCreateModel createModel, Guid userKey)
    Parameters
    Type Name Description
    StylesheetCreateModel createModel

    StylesheetCreateModel containing the information about the stylesheet being created.

    Guid userKey

    The key of the user performing the operation.

    Returns
    Type Description
    Task<Attempt<IStylesheet, StylesheetOperationStatus>>

    An attempt indicating if the operation was a success as well as a more detailed StylesheetOperationStatus.

    View Source

    CreateEntity(String, String)

    Declaration
    protected override IStylesheet CreateEntity(string path, string content)
    Parameters
    Type Name Description
    System.String path
    System.String content
    Returns
    Type Description
    IStylesheet
    View Source

    DeleteAsync(String, Guid)

    Deletes a stylesheet.

    Declaration
    public async Task<StylesheetOperationStatus> DeleteAsync(string path, Guid userKey)
    Parameters
    Type Name Description
    System.String path

    The path of the stylesheet to delete.

    Guid userKey

    The key of the user performing the operation.

    Returns
    Type Description
    Task<StylesheetOperationStatus>

    An operation status.

    View Source

    DeletedNotification(IStylesheet, EventMessages)

    Declaration
    protected override StylesheetDeletedNotification DeletedNotification(IStylesheet target, EventMessages messages)
    Parameters
    Type Name Description
    IStylesheet target
    EventMessages messages
    Returns
    Type Description
    StylesheetDeletedNotification
    View Source

    DeletingNotification(IStylesheet, EventMessages)

    Declaration
    protected override StylesheetDeletingNotification DeletingNotification(IStylesheet target, EventMessages messages)
    Parameters
    Type Name Description
    IStylesheet target
    EventMessages messages
    Returns
    Type Description
    StylesheetDeletingNotification
    View Source

    RenameAsync(String, StylesheetRenameModel, Guid)

    Renames a stylesheet.

    Declaration
    public async Task<Attempt<IStylesheet, StylesheetOperationStatus>> RenameAsync(string path, StylesheetRenameModel renameModel, Guid userKey)
    Parameters
    Type Name Description
    System.String path

    The path of the stylesheet to rename.

    StylesheetRenameModel renameModel

    A StylesheetRenameModel with the changes.

    Guid userKey

    The key of the user performing the operation.

    Returns
    Type Description
    Task<Attempt<IStylesheet, StylesheetOperationStatus>>

    An attempt indicating if the operation was a success as well as a more detailed StylesheetOperationStatus.

    View Source

    SavedNotification(IStylesheet, EventMessages)

    Declaration
    protected override StylesheetSavedNotification SavedNotification(IStylesheet target, EventMessages messages)
    Parameters
    Type Name Description
    IStylesheet target
    EventMessages messages
    Returns
    Type Description
    StylesheetSavedNotification
    View Source

    SavingNotification(IStylesheet, EventMessages)

    Declaration
    protected override StylesheetSavingNotification SavingNotification(IStylesheet target, EventMessages messages)
    Parameters
    Type Name Description
    IStylesheet target
    EventMessages messages
    Returns
    Type Description
    StylesheetSavingNotification
    View Source

    UpdateAsync(String, StylesheetUpdateModel, Guid)

    Updates an existing stylesheet.

    Declaration
    public async Task<Attempt<IStylesheet, StylesheetOperationStatus>> UpdateAsync(string path, StylesheetUpdateModel updateModel, Guid userKey)
    Parameters
    Type Name Description
    System.String path

    The path of the stylesheet to update.

    StylesheetUpdateModel updateModel

    A StylesheetUpdateModel with the changes.

    Guid userKey

    The key of the user performing the operation.

    Returns
    Type Description
    Task<Attempt<IStylesheet, StylesheetOperationStatus>>

    An attempt indicating if the operation was a success as well as a more detailed StylesheetOperationStatus.

    • Improve this Doc
    • View Source
    In This Article
    • Constructors
      • StylesheetService(ICoreScopeProvider, ILoggerFactory, IEventMessagesFactory, IStylesheetRepository, ILogger<StylesheetService>, IUserIdKeyResolver, IAuditRepository)
    • Properties
      • AllowedFileExtensions
      • AlreadyExists
      • CancelledByNotification
      • EntityType
      • InvalidFileExtension
      • InvalidName
      • NotFound
      • ParentNotFound
      • PathTooLong
      • Success
    • Methods
      • CreateAsync(StylesheetCreateModel, Guid)
      • CreateEntity(String, String)
      • DeleteAsync(String, Guid)
      • DeletedNotification(IStylesheet, EventMessages)
      • DeletingNotification(IStylesheet, EventMessages)
      • RenameAsync(String, StylesheetRenameModel, Guid)
      • SavedNotification(IStylesheet, EventMessages)
      • SavingNotification(IStylesheet, EventMessages)
      • UpdateAsync(String, StylesheetUpdateModel, Guid)
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX