Class FlowableUserWorkflowAdapter
java.lang.Object
org.apache.syncope.core.workflow.java.AbstractWorkflowAdapter
org.apache.syncope.core.workflow.java.AbstractUserWorkflowAdapter
org.apache.syncope.core.flowable.impl.FlowableUserWorkflowAdapter
- All Implemented Interfaces:
WorkflowTaskManager,UserWorkflowAdapter,WorkflowAdapter
public class FlowableUserWorkflowAdapter
extends AbstractUserWorkflowAdapter
implements WorkflowTaskManager
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final DomainProcessEngineprotected final UserRequestHandlerFields inherited from class org.apache.syncope.core.workflow.java.AbstractUserWorkflowAdapter
dataBinder, encryptorManager, LOG, realmDAO, ruleProvider, securityProperties, userDAOFields inherited from class org.apache.syncope.core.workflow.java.AbstractWorkflowAdapter
entityFactory, groupDAO, publisherFields inherited from interface org.apache.syncope.core.workflow.api.UserWorkflowAdapter
CONFIRM_PASSWORD_RESET, REQUEST_PASSWORD_RESET -
Constructor Summary
ConstructorsConstructorDescriptionFlowableUserWorkflowAdapter(UserDataBinder dataBinder, UserDAO userDAO, RealmDAO realmDAO, GroupDAO groupDAO, EntityFactory entityFactory, SecurityProperties securityProperties, RuleProvider ruleProvider, DomainProcessEngine engine, UserRequestHandler userRequestHandler, ApplicationEventPublisher publisher, EncryptorManager encryptorManager) -
Method Summary
Modifier and TypeMethodDescriptionprotected UserWorkflowResult<String> doActivate(User user, String token, String updater, String context) protected UserWorkflowResult<Pair<UserUR, Boolean>> protected UserWorkflowResult<Pair<String, Boolean>> doCreate(UserCR userCR, boolean disablePwdPolicyCheck, Boolean enabled, String creator, String context) protected voidprotected UserWorkflowResult<String> doReactivate(User user, String updater, String context) protected voiddoRequestPasswordReset(User user, String updater, String context) protected UserWorkflowResult<String> protected UserWorkflowResult<Pair<UserUR, Boolean>> executeNextTask(WorkflowTaskExecInput workflowTaskExecInput) Execute a task on an user.getAvailableTasks(String userKey) Get tasks available for execution, for given user.<T> TgetVariable(String executionId, String variableName, Class<T> variableClass) Gets variable value.protected Userprotected static voidnavigateAvailableTasks(FlowElement flow, List<String> availableTasks) voidsetVariable(String executionId, String variableName, Object value) Updates or create sa variable for an execution.Methods inherited from class org.apache.syncope.core.workflow.java.AbstractUserWorkflowAdapter
activate, confirmPasswordReset, create, create, delete, enforcePolicies, internalSuspend, reactivate, requestPasswordReset, suspend, updateMethods inherited from class org.apache.syncope.core.workflow.java.AbstractWorkflowAdapter
metadata
-
Field Details
-
engine
-
userRequestHandler
-
-
Constructor Details
-
FlowableUserWorkflowAdapter
public FlowableUserWorkflowAdapter(UserDataBinder dataBinder, UserDAO userDAO, RealmDAO realmDAO, GroupDAO groupDAO, EntityFactory entityFactory, SecurityProperties securityProperties, RuleProvider ruleProvider, DomainProcessEngine engine, UserRequestHandler userRequestHandler, ApplicationEventPublisher publisher, EncryptorManager encryptorManager)
-
-
Method Details
-
getPrefix
- Specified by:
getPrefixin interfaceWorkflowAdapter- Overrides:
getPrefixin classAbstractUserWorkflowAdapter- Returns:
- any string that might be interpreted as 'prefix' (say table prefix in SQL environments)
-
getVariable
Description copied from interface:WorkflowTaskManagerGets variable value. Returns null when no variable value is found with the given name or when the value is set to null.- Specified by:
getVariablein interfaceWorkflowTaskManager- Type Parameters:
T- variable type- Parameters:
executionId- id of execution, cannot be null.variableName- name of variable, cannot be null.variableClass- class of variable, cannot be null.- Returns:
- the variable value or null if the variable is undefined or the value of the variable is null.
-
setVariable
Description copied from interface:WorkflowTaskManagerUpdates or create sa variable for an execution.- Specified by:
setVariablein interfaceWorkflowTaskManager- Parameters:
executionId- id of execution to set variable in, cannot be null.variableName- name of variable to set, cannot be null.value- value to set; when null is passed, the variable is not removed, only it's value will be set to null
-
lazyLoad
-
doCreate
protected UserWorkflowResult<Pair<String,Boolean>> doCreate(UserCR userCR, boolean disablePwdPolicyCheck, Boolean enabled, String creator, String context) - Specified by:
doCreatein classAbstractUserWorkflowAdapter
-
doExecuteNextTask
-
doActivate
protected UserWorkflowResult<String> doActivate(User user, String token, String updater, String context) - Specified by:
doActivatein classAbstractUserWorkflowAdapter
-
doUpdate
protected UserWorkflowResult<Pair<UserUR,Boolean>> doUpdate(User user, UserUR userUR, String updater, String context) - Specified by:
doUpdatein classAbstractUserWorkflowAdapter
-
doSuspend
- Specified by:
doSuspendin classAbstractUserWorkflowAdapter
-
doReactivate
- Specified by:
doReactivatein classAbstractUserWorkflowAdapter
-
doRequestPasswordReset
- Specified by:
doRequestPasswordResetin classAbstractUserWorkflowAdapter
-
doConfirmPasswordReset
protected UserWorkflowResult<Pair<UserUR,Boolean>> doConfirmPasswordReset(User user, String token, String password, String updater, String context) - Specified by:
doConfirmPasswordResetin classAbstractUserWorkflowAdapter
-
doDelete
- Specified by:
doDeletein classAbstractUserWorkflowAdapter
-
executeNextTask
Description copied from interface:WorkflowTaskManagerExecute a task on an user.- Specified by:
executeNextTaskin interfaceWorkflowTaskManager- Parameters:
workflowTaskExecInput- input for task execution- Returns:
- user after task execution
-
getAvailableTasks
Description copied from interface:WorkflowTaskManagerGet tasks available for execution, for given user.- Specified by:
getAvailableTasksin interfaceWorkflowTaskManager- Parameters:
userKey- user key- Returns:
- available tasks
-