@Override public List<Task> getCurrentTaskInstances(CoreSession coreSession) { // Get tasks for current user // We need to build the task actors list: prefixed and unprefixed names // of the principal and all its groups NuxeoPrincipal principal = coreSession.getPrincipal(); List<String> actors = TaskActorsHelper.getTaskActors(principal); return getCurrentTaskInstances(actors, coreSession); }
/** * Provide @param sortInfo to handle sort page-provider contributions (see {@link #getCurrentTaskInstances}) * * @since 5.9.3 */ @Override public List<Task> getCurrentTaskInstances(CoreSession coreSession, List<SortInfo> sortInfos) { // Get tasks for current user // We need to build the task actors list: prefixed and unprefixed names // of the principal and all its groups NuxeoPrincipal principal = coreSession.getPrincipal(); List<String> actors = TaskActorsHelper.getTaskActors(principal); return getCurrentTaskInstances(actors, coreSession, sortInfos); }