Class ScriptService#

Inheritance Relationships#

Base Type#

Class Documentation#

class xbe.sdk.Services.ScriptService : xbe.sdk.ServiceBase#

Public Functions

string GetScriptsPath (string serviceName)#
async Task<List<Script>> FindAll (string service, Dictionary<string, string> query)#

Returns all scripts from the system that the user has access to.

async Task<Script> Create (string service, Script obj)#

Create a new script.

async Task<long?> Count (string service, Dictionary<string, string> query)#

Returns the count of scripts.

async Task Delete (string service, string id)#

Marks the script as deleted.

async Task DeleteByIdAndVersion (string service, string id, int version)#

Marks the script as deleted.

async Task<Script> FindById (string service, string id)#

Returns a single script from the system that the user has access to.

async Task<Script> FindByIdAndVersion (string service, string id, int version)#

Returns a single script from the system that the user has access to.

async Task<Script> Publish (string service, string id, int version)#

Marks the script with the given id and version as published, to be executed by the service.

async Task Purge (string service, string id)#

Removes the script from the database.

async Task PurgeByIdAndVersion (string service, string id, int version)#

Removes the script from the database.

async Task<Script> Restore (string service, string id)#

Restores a previously deleted script.

async Task<Script> RestoreByIdAndVersion (string service, string id, int version)#

Restores a specific version of a previously deleted script.

async Task<Script> Update (string service, string id, Script obj)#

Updates a single script.

async Task<Object> GetDependencies (string service)#

Returns the scripting system’s dependencies configuration.

async Task<List<Script>> CreateMany (string service, Script[] objs, Encoding encoding = null)#

Create a list of new scripts.