System.Object
Namespace: Umbraco.Cms.Core.Services Assembly: Umbraco.Core.dll Syntaxpublic class ScriptService : FileServiceOperationBase<IScriptRepository, IScript, ScriptOperationStatus>, IService, IScriptService, IBasicFileService<IScript>
Constructors View Source ScriptService(ICoreScopeProvider, ILoggerFactory, IEventMessagesFactory, IScriptRepository, ILogger<StylesheetService>, IUserIdKeyResolver, IAuditRepository) Declaration
public ScriptService(ICoreScopeProvider provider, ILoggerFactory loggerFactory, IEventMessagesFactory eventMessagesFactory, IScriptRepository repository, ILogger<StylesheetService> logger, IUserIdKeyResolver userIdKeyResolver, IAuditRepository auditRepository)
Parameters Properties View Source AllowedFileExtensions Declaration
protected override string[] AllowedFileExtensions { get; }
Property Value Type Description System.String[] View Source AlreadyExists Declaration
protected override ScriptOperationStatus AlreadyExists { get; }
Property Value View Source CancelledByNotification Declaration
protected override ScriptOperationStatus CancelledByNotification { get; }
Property Value View Source EntityType Declaration
protected override string EntityType { get; }
Property Value Type Description System.String View Source InvalidFileExtension Declaration
protected override ScriptOperationStatus InvalidFileExtension { get; }
Property Value View Source InvalidName Declaration
protected override ScriptOperationStatus InvalidName { get; }
Property Value View Source NotFound Declaration
protected override ScriptOperationStatus NotFound { get; }
Property Value View Source ParentNotFound Declaration
protected override ScriptOperationStatus ParentNotFound { get; }
Property Value View Source PathTooLong Declaration
protected override ScriptOperationStatus PathTooLong { get; }
Property Value View Source Success Declaration
protected override ScriptOperationStatus Success { get; }
Property Value Methods View Source CreateAsync(ScriptCreateModel, Guid)
Creates a new script.
Declarationpublic async Task<Attempt<IScript, ScriptOperationStatus>> CreateAsync(ScriptCreateModel createModel, Guid userKey)
Parameters Type Name Description ScriptCreateModel createModel
ScriptCreateModel containing the information about the script being created.
Guid userKeyThe key of the user performing the operation.
Returns View Source CreateEntity(String, String) Declarationprotected override IScript CreateEntity(string path, string content)
Parameters Type Name Description System.String path System.String content Returns View Source DeleteAsync(String, Guid)
Deletes a Script.
Declarationpublic async Task<ScriptOperationStatus> DeleteAsync(string path, Guid userKey)
Parameters Type Name Description System.String path
The path of the script to delete.
Guid userKeyThe key of the user performing the operation.
Returns View Source DeletedNotification(IScript, EventMessages) Declarationprotected override ScriptDeletedNotification DeletedNotification(IScript target, EventMessages messages)
Parameters Returns View Source DeletingNotification(IScript, EventMessages) Declaration
protected override ScriptDeletingNotification DeletingNotification(IScript target, EventMessages messages)
Parameters Returns View Source RenameAsync(String, ScriptRenameModel, Guid)
Renames a script.
Declarationpublic async Task<Attempt<IScript, ScriptOperationStatus>> RenameAsync(string path, ScriptRenameModel renameModel, Guid userKey)
Parameters Type Name Description System.String path
The path of the script to rename.
ScriptRenameModel renameModelA ScriptRenameModel with the changes.
Guid userKeyThe key of the user performing the operation.
Returns View Source SavedNotification(IScript, EventMessages) Declarationprotected override ScriptSavedNotification SavedNotification(IScript target, EventMessages messages)
Parameters Returns View Source SavingNotification(IScript, EventMessages) Declaration
protected override ScriptSavingNotification SavingNotification(IScript target, EventMessages messages)
Parameters Returns View Source UpdateAsync(String, ScriptUpdateModel, Guid)
Updates an existing script.
Declarationpublic async Task<Attempt<IScript, ScriptOperationStatus>> UpdateAsync(string path, ScriptUpdateModel updateModel, Guid userKey)
Parameters Type Name Description System.String path
The path of the script to update.
ScriptUpdateModel updateModelA ScriptUpdateModel with the changes.
Guid userKeyThe key of the user performing the operation.
ReturnsRetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4