Workflow Engine .NET

Assembly: OptimaJet.Workflow.Api

Interface IWorkflowApiPermissionsBuilder

OptimaJet.Workflow.Api.IWorkflowApiPermissionsBuilder

Fluent builder for Workflow Engine API permissions values.

public interface IWorkflowApiPermissionsBuilder

Methods

IWorkflowApiOperationPermissionsBuilder AllowAllOperations() #
Replaces the current operation permissions with a policy that allows all operations by default.

Returns

Type
Description
IWorkflowApiOperationPermissionsBuilder
An operation permissions builder.
IWorkflowApiOperationPermissionsBuilder DenyAllOperations() #
Replaces the current operation permissions with a policy that denies all operations by default.

Returns

Type
Description
IWorkflowApiOperationPermissionsBuilder
An operation permissions builder.
IWorkflowApiPermissionsBuilder AllowAllTenants() #
Replaces the current tenant permissions with a policy that allows all tenants by default.

Returns

Type
Description
IWorkflowApiPermissionsBuilder
The current permissions builder.
IWorkflowApiPermissionsBuilder AllowAllTenantsExcept(params string[] tenantIds) #
Replaces the current tenant permissions with a policy that allows all tenants by default except the specified tenant ids.

Parameters

Name
Type
Description
tenantIds
String[]
Tenant identifiers to deny.

Returns

Type
Description
IWorkflowApiPermissionsBuilder
The current permissions builder.
IWorkflowApiPermissionsBuilder AllowAllTenantsExcept(IEnumerable<string> tenantIds) #
Replaces the current tenant permissions with a policy that allows all tenants by default except the specified tenant ids.

Parameters

Name
Type
Description
tenantIds
IEnumerable<String>
Tenant identifiers to deny.

Returns

Type
Description
IWorkflowApiPermissionsBuilder
The current permissions builder.
IWorkflowApiPermissionsBuilder DenyAllTenants() #
Replaces the current tenant permissions with a policy that denies all tenants by default.

Returns

Type
Description
IWorkflowApiPermissionsBuilder
The current permissions builder.
IWorkflowApiPermissionsBuilder DenyAllTenantsExcept(params string[] tenantIds) #
Replaces the current tenant permissions with a policy that denies all tenants by default except the specified tenant ids.

Parameters

Name
Type
Description
tenantIds
String[]
Tenant identifiers to allow.

Returns

Type
Description
IWorkflowApiPermissionsBuilder
The current permissions builder.
IWorkflowApiPermissionsBuilder DenyAllTenantsExcept(IEnumerable<string> tenantIds) #
Replaces the current tenant permissions with a policy that denies all tenants by default except the specified tenant ids.

Parameters

Name
Type
Description
tenantIds
IEnumerable<String>
Tenant identifiers to allow.

Returns

Type
Description
IWorkflowApiPermissionsBuilder
The current permissions builder.
string GetValue() #
Returns the serialized permissions value from the current builder state.

Returns

Type
Description
String
A serialized permissions value.
IWorkflowApiPermissionsBuilder SetValue(string value) #
Replaces the current builder state with the rules from a serialized permissions value.

Parameters

Name
Type
Description
value
String
A serialized permissions value.

Returns

Type
Description
IWorkflowApiPermissionsBuilder
The current permissions builder.
bool ValidateValue(string value) #
Validates a serialized permissions value.

Parameters

Name
Type
Description
value
String
A serialized permissions value.

Returns

Type
Description
Boolean
true when the value is valid; otherwise false.