Skip to content

PermissionKeys

Static class in Oadm.Sdk.Plugins · Oadm.Sdk.dll

Keys of permissions: the format the host stores and checks.

public static class PermissionKeys
static bool IsValidKey(string? key)

Letters and digits, starting with a letter, 1..PermissionKeys.MaxKeyLength characters.

static string Of(string pluginId, string key)

“oadm.dhcp-server:manage”.

static string Task(string taskPluginId)

“task:oadm.restart”: the one permission of a task plugin without declared permissions.

static string Task(string taskPluginId, string key)

“task:oadm.users:remove”: a declared permission of a task plugin.

const string Manage = "manage"

The automatic permission of a core plugin that declares none: the methods that need UserRole.Admin.

const int MaxKeyLength = 32

Longest key a plugin may declare.

const string Show = "show"

The automatic permission of every plugin page: see the page, read its state, watch its events.