Added select statement to taskMapper, added new service-method, added it to rest-project and tested with authentification.
This commit is contained in:
parent
026d6d0309
commit
2383d98d49
|
@ -253,6 +253,18 @@ public class TaskServiceImpl implements TaskService {
|
|||
public TaskQuery createTaskQuery() {
|
||||
return new TaskQueryImpl(taskanaEngine);
|
||||
}
|
||||
@Override
|
||||
public List<Task> getTasksByWorkbasketIdAndState(String workbasketId, TaskState taskState) throws WorkbasketNotFoundException, NotAuthorizedException, Exception {
|
||||
List<Task> resultList = null;
|
||||
try {
|
||||
taskanaEngineImpl.openConnection();
|
||||
taskanaEngine.getWorkbasketService().checkAuthorization(workbasketId, WorkbasketAuthorization.READ);
|
||||
resultList = taskMapper.findTasksByWorkbasketIdAndState(workbasketId, taskState);
|
||||
} finally {
|
||||
taskanaEngineImpl.returnConnection();
|
||||
}
|
||||
return (resultList == null) ? new ArrayList<>() : resultList;
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<Task> getTasksByWorkbasketIdAndState(String workbasketId, TaskState taskState) throws WorkbasketNotFoundException, NotAuthorizedException, Exception {
|
||||
|
|
Loading…
Reference in New Issue