public class FlowableUserWorkflowAdapter extends AbstractUserWorkflowAdapter implements WorkflowTaskManager
| Modifier and Type | Field and Description |
|---|---|
protected DomainProcessEngine |
engine |
protected org.springframework.context.ApplicationEventPublisher |
publisher |
protected UserRequestHandler |
userRequestHandler |
adminUser, anonymousUser, dataBinder, entityFactory, LOG, perContextAccountRules, perContextPasswordRules, realmDAO, userDAO| Constructor and Description |
|---|
FlowableUserWorkflowAdapter() |
| Modifier and Type | Method and Description |
|---|---|
protected org.apache.syncope.core.provisioning.api.UserWorkflowResult<String> |
doActivate(org.apache.syncope.core.persistence.api.entity.user.User user,
String token) |
protected org.apache.syncope.core.provisioning.api.UserWorkflowResult<org.apache.commons.lang3.tuple.Pair<org.apache.syncope.common.lib.patch.UserPatch,Boolean>> |
doConfirmPasswordReset(org.apache.syncope.core.persistence.api.entity.user.User user,
String token,
String password) |
protected org.apache.syncope.core.provisioning.api.UserWorkflowResult<org.apache.commons.lang3.tuple.Pair<String,Boolean>> |
doCreate(UserTO userTO,
boolean disablePwdPolicyCheck,
Boolean enabled,
boolean storePassword) |
protected void |
doDelete(org.apache.syncope.core.persistence.api.entity.user.User user) |
protected Set<String> |
doExecuteNextTask(String procInstID,
org.apache.syncope.core.persistence.api.entity.user.User user,
Map<String,Object> moreVariables) |
protected org.apache.syncope.core.provisioning.api.UserWorkflowResult<String> |
doReactivate(org.apache.syncope.core.persistence.api.entity.user.User user) |
protected void |
doRequestPasswordReset(org.apache.syncope.core.persistence.api.entity.user.User user) |
protected org.apache.syncope.core.provisioning.api.UserWorkflowResult<String> |
doSuspend(org.apache.syncope.core.persistence.api.entity.user.User user) |
protected org.apache.syncope.core.provisioning.api.UserWorkflowResult<org.apache.commons.lang3.tuple.Pair<org.apache.syncope.common.lib.patch.UserPatch,Boolean>> |
doUpdate(org.apache.syncope.core.persistence.api.entity.user.User user,
org.apache.syncope.common.lib.patch.UserPatch userPatch) |
org.apache.syncope.core.provisioning.api.UserWorkflowResult<String> |
executeNextTask(WorkflowTaskExecInput workflowTaskExecInput)
Execute a task on an user.
|
List<WorkflowTask> |
getAvailableTasks(String userKey)
Get tasks available for execution, for given user.
|
String |
getPrefix() |
<T> T |
getVariable(String executionId,
String variableName,
Class<T> variableClass)
Gets variable value.
|
protected org.apache.syncope.core.persistence.api.entity.user.User |
lazyLoad(org.apache.syncope.core.persistence.api.entity.user.User user) |
protected void |
navigateAvailableTasks(org.flowable.bpmn.model.FlowElement flow,
List<String> availableTasks) |
void |
setVariable(String executionId,
String variableName,
Object value)
Updates or create sa variable for an execution.
|
activate, confirmPasswordReset, create, create, delete, enforcePolicies, getAccountPolicies, getAccountRules, getPasswordPolicies, getPasswordRules, internalSuspend, reactivate, requestPasswordReset, suspend, update@Autowired protected DomainProcessEngine engine
@Autowired protected UserRequestHandler userRequestHandler
@Autowired protected org.springframework.context.ApplicationEventPublisher publisher
public String getPrefix()
getPrefix in interface org.apache.syncope.core.workflow.api.WorkflowAdaptergetPrefix in class AbstractUserWorkflowAdapterpublic <T> T getVariable(String executionId, String variableName, Class<T> variableClass)
WorkflowTaskManagergetVariable in interface WorkflowTaskManagerT - variable typeexecutionId - id of execution, cannot be null.variableName - name of variable, cannot be null.variableClass - class of variable, cannot be null.public void setVariable(String executionId, String variableName, Object value)
WorkflowTaskManagersetVariable in interface WorkflowTaskManagerexecutionId - 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 nullprotected org.apache.syncope.core.persistence.api.entity.user.User lazyLoad(org.apache.syncope.core.persistence.api.entity.user.User user)
protected org.apache.syncope.core.provisioning.api.UserWorkflowResult<org.apache.commons.lang3.tuple.Pair<String,Boolean>> doCreate(UserTO userTO, boolean disablePwdPolicyCheck, Boolean enabled, boolean storePassword)
doCreate in class AbstractUserWorkflowAdapterprotected Set<String> doExecuteNextTask(String procInstID, org.apache.syncope.core.persistence.api.entity.user.User user, Map<String,Object> moreVariables)
protected org.apache.syncope.core.provisioning.api.UserWorkflowResult<String> doActivate(org.apache.syncope.core.persistence.api.entity.user.User user, String token)
doActivate in class AbstractUserWorkflowAdapterprotected org.apache.syncope.core.provisioning.api.UserWorkflowResult<org.apache.commons.lang3.tuple.Pair<org.apache.syncope.common.lib.patch.UserPatch,Boolean>> doUpdate(org.apache.syncope.core.persistence.api.entity.user.User user, org.apache.syncope.common.lib.patch.UserPatch userPatch)
doUpdate in class AbstractUserWorkflowAdapterprotected org.apache.syncope.core.provisioning.api.UserWorkflowResult<String> doSuspend(org.apache.syncope.core.persistence.api.entity.user.User user)
doSuspend in class AbstractUserWorkflowAdapterprotected org.apache.syncope.core.provisioning.api.UserWorkflowResult<String> doReactivate(org.apache.syncope.core.persistence.api.entity.user.User user)
doReactivate in class AbstractUserWorkflowAdapterprotected void doRequestPasswordReset(org.apache.syncope.core.persistence.api.entity.user.User user)
doRequestPasswordReset in class AbstractUserWorkflowAdapterprotected org.apache.syncope.core.provisioning.api.UserWorkflowResult<org.apache.commons.lang3.tuple.Pair<org.apache.syncope.common.lib.patch.UserPatch,Boolean>> doConfirmPasswordReset(org.apache.syncope.core.persistence.api.entity.user.User user, String token, String password)
doConfirmPasswordReset in class AbstractUserWorkflowAdapterprotected void doDelete(org.apache.syncope.core.persistence.api.entity.user.User user)
doDelete in class AbstractUserWorkflowAdapterpublic org.apache.syncope.core.provisioning.api.UserWorkflowResult<String> executeNextTask(WorkflowTaskExecInput workflowTaskExecInput)
WorkflowTaskManagerexecuteNextTask in interface WorkflowTaskManagerworkflowTaskExecInput - input for task executionprotected void navigateAvailableTasks(org.flowable.bpmn.model.FlowElement flow,
List<String> availableTasks)
public List<WorkflowTask> getAvailableTasks(String userKey)
WorkflowTaskManagergetAvailableTasks in interface WorkflowTaskManageruserKey - user keyCopyright © 2010–2023 The Apache Software Foundation. All rights reserved.