ActionPermissionMode Enumeration

Assembly: CodeEffects.Rule.Common.dll
Namespace: CodeEffects.Rule.Common.Models

Summary

Specifies how a list of ActionPermissionType values is read: as the set of permissions to grant, or as the set to withhold.

Syntax

public enum ActionPermissionMode
{
	// Fail-closed default: no permission at all
	ViewOnly = 0,

	// Every permission except those listed
	AllowAllExcept,

	// Only the permissions listed
	AllowOnly
}

Members

  • ViewOnly

    Value: 0

    The fail-closed default: no permission at all. The user sees the four core grids (source objects, source versions, rules, and rule versions) and their dialogs, and can do nothing.

  • AllowAllExcept

    Value: 1

    Every permission except those listed. Requirements cascade: withholding a permission also withholds every permission that requires it.

  • AllowOnly

    Value: 2

    Only the permissions listed. The list must be complete: granting a permission without the permissions it requires is a configuration error.

Remarks

The mode is used together with a list of ActionPermissionType values: in the Rule Repository's action list configuration, and in the set of permissions that a caller of the MCP server carries.

Example

using CodeEffects.Rule.Common.Models;

// Everything except deleting rules and rule versions
var mode = ActionPermissionMode.AllowAllExcept;
var list = new[]
{
	ActionPermissionType.RuleDelete,
	ActionPermissionType.RuleVersionDelete
};

Ask on Stack Overflow - Yes, it's still active
Ask in GitHub Discussions

p102

l097 --

l102

p101

×