Interface IWorkflowApiPermissionsBuilder
OptimaJet.Workflow.Api.IWorkflowApiPermissionsBuilder
Fluent builder for Workflow Engine API permissions values.
Namespace: OptimaJet.Workflow.Api
public interface IWorkflowApiPermissionsBuilderType Hierarchy
- IWorkflowApiPermissionsBuilder Current type
- Derived interfaces
Methods
IWorkflowApiOperationPermissionsBuilder AllowAllOperations() #Replaces the current operation permissions with a policy that allows all operations by default.
Returns
Type
Description
IWorkflowApiOperationPermissionsBuilderAn operation permissions builder.
Remarks
Sets
allow as the default for all operations. Additional explicit rules may deny specific branches or exact operations.IWorkflowApiOperationPermissionsBuilder DenyAllOperations() #Replaces the current operation permissions with a policy that denies all operations by default.
Returns
Type
Description
IWorkflowApiOperationPermissionsBuilderAn operation permissions builder.
Remarks
Sets
deny as the default for all operations. Additional explicit rules may allow specific branches or exact operations.IWorkflowApiPermissionsBuilder AllowAllTenants() #Replaces the current tenant permissions with a policy that allows all tenants by default.
Returns
Type
Description
IWorkflowApiPermissionsBuilderThe current permissions builder.
Remarks
Sets
allow as the default for all tenants with no explicit exceptions.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
tenantIdsString[]Tenant identifiers to deny.
Returns
Type
Description
IWorkflowApiPermissionsBuilderThe current permissions builder.
Remarks
Sets
allow as the default for all tenants and the specified tenant ids as deny exceptions.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
tenantIdsIEnumerable<String>Tenant identifiers to deny.
Returns
Type
Description
IWorkflowApiPermissionsBuilderThe current permissions builder.
Remarks
Sets
allow as the default for all tenants and the specified tenant ids as deny exceptions.IWorkflowApiPermissionsBuilder DenyAllTenants() #Replaces the current tenant permissions with a policy that denies all tenants by default.
Returns
Type
Description
IWorkflowApiPermissionsBuilderThe current permissions builder.
Remarks
Sets
deny as the default for all tenants with no explicit exceptions.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
tenantIdsString[]Tenant identifiers to allow.
Returns
Type
Description
IWorkflowApiPermissionsBuilderThe current permissions builder.
Remarks
Sets
deny as the default for all tenants and the specified tenant ids as allow exceptions.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
tenantIdsIEnumerable<String>Tenant identifiers to allow.
Returns
Type
Description
IWorkflowApiPermissionsBuilderThe current permissions builder.
Remarks
Sets
deny as the default for all tenants and the specified tenant ids as allow exceptions.string GetValue() #Returns the serialized permissions value from the current builder state.
Returns
Type
Description
StringA serialized permissions value.
IWorkflowApiPermissionsBuilder SetValue(string value) #Replaces the current builder state with the rules from a serialized permissions value.
Parameters
Name
Type
Description
valueStringA serialized permissions value.
Returns
Type
Description
IWorkflowApiPermissionsBuilderThe current permissions builder.
bool ValidateValue(string value) #Validates a serialized permissions value.
Parameters
Name
Type
Description
valueStringA serialized permissions value.
Returns
Type
Description
Booleantrue when the value is valid; otherwise false.