@Component public class UserRequestLogic extends Object
Modifier and Type | Field and Description |
---|---|
protected UserDataBinder |
binder |
protected BpmnProcessManager |
bpmnProcessManager |
protected static org.slf4j.Logger |
LOG |
protected PropagationManager |
propagationManager |
protected PropagationTaskExecutor |
taskExecutor |
protected UserDAO |
userDAO |
protected UserRequestHandler |
userRequestHandler |
Constructor and Description |
---|
UserRequestLogic() |
Modifier and Type | Method and Description |
---|---|
void |
cancelRequest(String executionId,
String reason) |
UserRequestForm |
claimForm(String taskId) |
protected UserRequest |
doStart(String bpmnProcess,
User user,
WorkflowTaskExecInput inputVariables) |
UserRequestForm |
getForm(String userKey,
String taskId) |
Pair<Integer,List<UserRequestForm>> |
listForms(String userKey,
int page,
int size,
List<OrderByClause> orderByClauses) |
Pair<Integer,List<UserRequest>> |
listRequests(String userKey,
int page,
int size,
List<OrderByClause> orderByClauses) |
T |
resolveBeanReference(Method method,
Object... args)
Resolves stored bean (if existing) referred by the given CUD method.
|
protected EntityTO |
resolveReference(Method method,
Object... args) |
protected void |
securityChecks(String username,
String entitlement,
String errorMessage) |
UserRequest |
startRequest(String bpmnProcess,
String userKey,
WorkflowTaskExecInput inputVariables) |
UserRequest |
startRequest(String bpmnProcess,
WorkflowTaskExecInput inputVariables) |
ProvisioningResult<UserTO> |
submitForm(UserRequestForm form,
boolean nullPriorityAsync) |
UserRequestForm |
unclaimForm(String taskId) |
@Autowired protected BpmnProcessManager bpmnProcessManager
@Autowired protected UserRequestHandler userRequestHandler
@Autowired protected PropagationManager propagationManager
@Autowired protected PropagationTaskExecutor taskExecutor
@Autowired protected UserDataBinder binder
@Autowired protected UserDAO userDAO
protected static final org.slf4j.Logger LOG
@PreAuthorize(value="isAuthenticated()") @Transactional(readOnly=true) public Pair<Integer,List<UserRequest>> listRequests(String userKey, int page, int size, List<OrderByClause> orderByClauses)
protected UserRequest doStart(String bpmnProcess, User user, WorkflowTaskExecInput inputVariables)
@PreAuthorize(value="isAuthenticated()") public UserRequest startRequest(String bpmnProcess, WorkflowTaskExecInput inputVariables)
@PreAuthorize(value="hasRole(\'USER_REQUEST_START\')") public UserRequest startRequest(String bpmnProcess, String userKey, WorkflowTaskExecInput inputVariables)
protected void securityChecks(String username, String entitlement, String errorMessage)
@PreAuthorize(value="isAuthenticated()") public void cancelRequest(String executionId, String reason)
@PreAuthorize(value="isAuthenticated()") public UserRequestForm claimForm(String taskId)
@PreAuthorize(value="isAuthenticated()") public UserRequestForm unclaimForm(String taskId)
@PreAuthorize(value="isAuthenticated()") public UserRequestForm getForm(String userKey, String taskId)
@PreAuthorize(value="isAuthenticated()") @Transactional(readOnly=true) public Pair<Integer,List<UserRequestForm>> listForms(String userKey, int page, int size, List<OrderByClause> orderByClauses)
@PreAuthorize(value="isAuthenticated()") public ProvisioningResult<UserTO> submitForm(UserRequestForm form, boolean nullPriorityAsync)
protected EntityTO resolveReference(Method method, Object... args) throws UnresolvedReferenceException
UnresolvedReferenceException
public T resolveBeanReference(Method method, Object... args) throws UnresolvedReferenceException
method
- method.args
- method arguments.UnresolvedReferenceException
- in case of failures, read-only methods and unresolved bean.Copyright © 2010–2023 The Apache Software Foundation. All rights reserved.