Skip to content

Oadm.Sdk.Plugins

The plugin interfaces and the context the server gives them: task plugins, core plugins, steps, permissions.

Type Description
IAxisDownloads Files from www.axis.com that need the MyAxis sign-in of the user who started the task (SDK 0.9.0, docs/spec/myaxis.md “For plugins”): AXIS OS images below /ftp/pub_soft/MPQT/ and /ftp/pub_soft/PACS/.
ICallContext The user’s call of a plugin method (SDK 0.4.0, OADM 4.5): who calls, what the role allows, and the devices the user may reach.
ICorePlugin A service that runs inside the server while it is turned on, usually with a page in the navigation rail (ICorePluginPage in the client part).
ICorePluginContext What the server gives a core plugin in ICorePlugin.StartAsync.
ICorePluginDownloads Optional for a core plugin: files its page downloads (gRPC PluginService.Download).
IDeviceScopes The device groups as a plugin sees them (ICorePluginContext.DeviceScopes, SDK 0.4.0), for objects a plugin keeps for a group (dashboards, device triggers, saved views: stored with ICallContext.DeviceScopeKey of the user who made them).
IPlugin What every plugin has: an id, a name and an icon.
IPluginAudit The server’s audit log for what a core plugin does by itself (SDK 0.17.0, ICorePluginContext.Audit): a timer or a sweep that changes the plugin’s data without a user’s call, e.g.
IPluginEvents Pushes live events from a core plugin to every client page watching it (gRPC PluginService.Watch).
IPluginJob One job of IPluginJobs.
IPluginJobs Work a plugin method starts for a user (a report, a scan, an export, a monitor), owned by the user who started it (ICorePluginContext.Jobs, SDK 0.4.0).
IPluginRecords Records of a plugin in the server database (ICorePluginContext.Records): named collections of JSON values by key, one table row per record.
IPluginServices Services core plugins offer each other (ICorePluginContext.Services).
IPluginSettings Settings store namespaced per plugin.
IPluginUploads SDK 0.15.0: files a core plugin keeps itself (in its ICorePluginContext.DataDirectory) handed to the tasks it starts as uploads (ICorePluginContext.Uploads): a task reads files only by an upload id, and uploads are deleted after a day, so the plugin adds its file again when IPluginUploads.FindAsync no longer finds the last id.
ISecretProtector Server-side encryption for secrets a plugin persists.
IServerFolderCheck Whether a folder on the server’s computer may hold data a plugin writes there (SDK 0.17.0, ICorePluginContext.FolderCheck): the folder an administrator chose with the client’s server folder picker, e.g.
ISystemAccess The full device access of a core plugin (ICorePluginContext.System): every managed device.
ITaskExecutionContext What the server gives one task while it runs on one device.
ITaskPlugin An entry of the device context menu that runs on the server, one task per selected device.
ITaskPluginQuery Optional for task plugins whose dialog must read the current device state before the user decides (existing users, current network settings, installed ACAP applications, firmware status).
ITaskQueryContext What the server gives a query (ITaskPluginQuery.QueryAsync).
ITaskStep One named step of a task, started with ITaskExecutionContext.BeginStep.
ITrustAnchors Extra certificate authorities the server trusts when it rates device certificates (the Certificate column of the device grid), e.g.
IUploadedFiles Files the user uploaded from the client (firmware images, ACAP .eap packages).
IUserCalls The current call of a user who is not signed in (SDK 0.16.0): work a user set up earlier runs with that user’s rights and devices as they are now.
Type Description
AxisDownloadedFile A downloaded file of IAxisDownloads; dispose it when the task no longer needs it.
AxisDownloadException A download of IAxisDownloads failed; Exception.Message is for the user.
AxisDownloadTexts The messages of AxisDownloadException (docs/spec/myaxis.md), one phrase each, for hosts and fakes.
CorePluginGroups Helpers for CorePluginGroup.
DeviceAccessRefusedException The host refused device access during the call of a user with a device group (SDK 0.4.0, OADM 4.5): the plugin used ctx.Devices, ctx.Vapix, ctx.Tasks, ctx.EventStreams or ctx.System instead of the call (ICallContext), the method is one only users with all devices may call (ICorePlugin.RequiresAllDevices), the plugin was built for an SDK before the call context, or a task run through call.Tasks needs a permission the user’s role lacks (“Your role does not allow: …”).
DeviceIdentityException The device answering at an address is not the expected one (different or missing serial number).
HostPermissionKeys The keys of the permissions OADM itself defines (the host’s rows of the matrix).
MemoryPluginRecords IPluginRecords in memory (tests, hosts without a database): the same checks as the database, lost when the process ends.
PermissionKeys Keys of permissions: the format the host stores and checks.
PluginDownload A file a core plugin sends to its client page through gRPC PluginService.Download (ICorePluginDownloads.OpenDownloadAsync): the host copies PluginDownload.Content to the client in chunks and disposes the download afterwards, also when the client cancels.
PluginEventAudience The audience of a plugin event (SDK 0.4.0): the host delivers the event only to the page watchers it covers, so an event about a device never reaches a user who cannot see the device.
PluginJson The JSON of a plugin’s page calls, events, task payloads and stored settings, shared by its server and client part: the common serializer options and parse methods with one error rule.
PluginPageTools<TOwner> Page methods of a core plugin offered as tools (SDK 0.13.0, docs/spec/mcp.md “Plugins”): each entry wraps one method of the plugin’s page with a typed, strict input (the record TArgs; its JSON Schema is the tool’s input), so a caller does on the page what a user does, with the page’s own checks and rights.
PluginRecordRules The checks every IPluginRecords applies.
PluginToolErrors What a tool method of a plugin answers when the arguments are not valid: the host turns it into the refusal of the call, one entry per field (the texts of the plugin’s page: “Enter a name.”).
PluginToolInputException Invalid arguments of a tool of PluginPageTools: one entry per field (its JSON name, nested with dots) with the page’s text (“Enter a name.”).
PluginToolSecrets The secrets of a plugin tool’s change (PluginToolSecret) as the host passes them.
SdkInfo The version of this SDK.
ServerFolderTexts The texts and limits of the server folders (the checks of IServerFolderCheck, the client’s folder picker and its gRPC calls), one phrase per concept for server and client.
TaskGroups Well-known context menu groups (ITaskPlugin.Group).
TaskPluginNames Display name rules for task plugins, applied by the server loader and the client menu.
TaskResultFile The limits of a task’s result file (ITaskExecutionContext.SaveResultFileAsync).
TaskStepExtensions Helpers for the common step patterns on ITaskExecutionContext.
TaskStepList The step list of one task: the state machine behind ITaskExecutionContext.PlanSteps and ITaskExecutionContext.BeginStep.
TaskSupportReasons Plain-language texts for ITaskPlugin.NotSupportedReason: what is missing and what to do.
Type Description
PermissionDefinition A right an administrator gives or takes per role on the Users page (the permission matrix).
PluginEvent One live event of a core plugin for its client page (e.g.
PluginManifest Content of plugin.json next to the plugin assemblies.
PluginTool One tool of a core plugin (SDK 0.13.0, ICorePlugin.Tools): a step a program, such as an assistant, may take in the plugin without its page, described once so that a caller can read what it takes and what it answers.
PluginToolDevices The devices of a tool with PluginTool.DeviceFilter as the host hands them to the plugin: the ids of the caller’s devices that match the filter (at most PluginTool.MaxDevices) and how many matched.
PluginToolFile The file a tool’s answer hands the caller (PluginTool.ReturnsFile): which of the plugin’s downloads makes it, with which payload, and what the caller is told before it fetches it.
PluginToolInput<TArgs> The arguments of a call of a tool of PluginPageTools.
PluginToolPage The page of a list tool (PluginTool.Paged) as the host hands it to the plugin: how many rows and where to start.
PluginToolPlan The count of a change’s plan for the confirmation card (SDK 0.13.0): a plan record of PluginPageTools derives from it, so the card says “1 reader” or “3 leases”.
PluginToolSecret A secret the run of a plugin tool’s change needs (SDK 0.13.0, docs/spec/mcp.md “Secrets”): a password, a passphrase, a key.
TaskStepInfo Immutable view of one step.
UploadedFile An uploaded file.
Type Description
CorePluginGroup Well-known context menu groups (ITaskPlugin.Group).
PluginEventAudienceKind Who receives a plugin event (IPluginEvents.Publish).
PluginJsonEnums How PluginJson.CreateOptions writes and reads enums.
TaskLogLevel The level of a task log entry (ITaskExecutionContext.Log).
TaskStepState State of one step of a task.
UserRole Role of an OADM user.