Class ActiveDirectoryRuleProvider
OptimaJet.Workflow.Plugins.ActiveDirectoryPlugin.Providers.ActiveDirectoryRuleProvider
Namespace: OptimaJet.Workflow.Plugins.ActiveDirectoryPlugin.Providers
public class ActiveDirectoryRuleProvider : IWorkflowRuleProviderInheritance
- System.Object
Implemented Interfaces
Constructors
public ActiveDirectoryRuleProvider(IActiveDirectoryMethods activeDirectoryMethods) #Parameters
Name
Type
Description
activeDirectoryMethodsIActiveDirectoryMethodsMethods
public List<string> GetRules(string schemeCode, NamesSearchType namesSearchType) #Return all rule names
Parameters
Name
Type
Description
schemeCodeStringnamesSearchTypeNamesSearchTypeReturns
Type
Description
List<String>List of rule names
public bool Check(ProcessInstance processInstance, WorkflowRuntime runtime, string identityId, string ruleName, string parameter) #Check the rule
Parameters
Name
Type
Description
processInstanceProcessInstanceReference to ProcessInstance for which rule is checked ProcessInstance
runtimeWorkflowRuntimeReference to WorkflowRuntime object which managed specified process instance WorkflowRuntime
identityIdStringUser id for which rule is checking
ruleNameStringName of the rule to check
parameterStringAdditional rule parameter RestrictionDefinition.Actor ActorDefinition.Value
Returns
Type
Description
BooleanRule check result
public Task<bool> CheckAsync(ProcessInstance processInstance, WorkflowRuntime runtime, string identityId, string ruleName, string parameter, CancellationToken token) #Check the rule asynchronously
Parameters
Name
Type
Description
processInstanceProcessInstanceReference to ProcessInstance for which rule is checked ProcessInstance
runtimeWorkflowRuntimeReference to WorkflowRuntime object which managed specified process instance WorkflowRuntime
identityIdStringUser id for which rule is checking
ruleNameStringName of the rule to check
parameterStringAdditional rule parameter RestrictionDefinition.Actor ActorDefinition.Value
tokenCancellationTokenCancellation token to cancel the operation
Returns
Type
Description
Task<Boolean>Rule check result
public IEnumerable<string> GetIdentities(ProcessInstance processInstance, WorkflowRuntime runtime, string ruleName, string parameter) #Get the list of users which satisfies the rule
Parameters
Name
Type
Description
processInstanceProcessInstanceReference to ProcessInstance for which rule is checked ProcessInstance
runtimeWorkflowRuntimeReference to WorkflowRuntime object which managed specified process instance WorkflowRuntime
ruleNameStringName of the rule to get users list
parameterStringAdditional rule parameter RestrictionDefinition.Actor ActorDefinition.Value
Returns
Type
Description
IEnumerable<String>List of users which satisfies the rule
public Task<IEnumerable<string>> GetIdentitiesAsync(ProcessInstance processInstance, WorkflowRuntime runtime, string ruleName, string parameter, CancellationToken token) #Get the list of users which satisfies the rule asynchronously
Parameters
Name
Type
Description
processInstanceProcessInstanceReference to ProcessInstance for which rule is checked ProcessInstance
runtimeWorkflowRuntimeReference to WorkflowRuntime object which managed specified process instance WorkflowRuntime
ruleNameStringName of the rule to get users list
parameterStringAdditional rule parameter RestrictionDefinition.Actor ActorDefinition.Value
tokenCancellationTokenCancellation token to cancel the operation
Returns
Type
Description
Task<String>List of users which satisfies the rule
public bool IsCheckAsync(string ruleName, string schemeCode) #Checks whether Check the rule should be called asynchronously
Parameters
Name
Type
Description
ruleNameStringName of the action
schemeCodeStringCode of the scheme to which the rule belongs
Returns
Type
Description
Booleanpublic bool IsGetIdentitiesAsync(string ruleName, string schemeCode) #Checks whether Get the list of users which satisfies the rule should be called asynchronously
Parameters
Name
Type
Description
ruleNameStringName of the condition
schemeCodeStringCode of the scheme to which the rule belongs
Returns
Type
Description
BooleanFields
public const string ActiveDirectoryGroupRuleName = "ActiveDirectoryGroup" #