PermissionKeys
Static class in Oadm.Sdk.Plugins · Oadm.Sdk.dll
Keys of permissions: the format the host stores and checks.
public static class PermissionKeysMethods
Section titled “Methods”IsValidKey
Section titled “IsValidKey”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.
Fields
Section titled “Fields”Manage
Section titled “Manage”const string Manage = "manage"The automatic permission of a core plugin that declares none: the methods that need UserRole.Admin.
MaxKeyLength
Section titled “MaxKeyLength”const int MaxKeyLength = 32Longest 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.