code: @Override
      public List<Long> getRunningExecutions(String jobName) throws NoSuchJobException, JobSecurityException {
  
          batchRoleCheck();
  
          List<Long> authorizedRunningExecutions = new ArrayList<Long>();
  
          // get the jobexecution ids associated with this job name
          List<Long> allRunningExecutions = getPersistenceManagerService().getJobExecutionsRunning(jobName);
  
          for (long id : allRunningExecutions) {
              try {
                  logger.finer("Examining executionId: " + id);
                  if (authService == null || authService.isAuthorizedInstanceRead(getPersistenceManagerService().getJobInstanceIdFromExecutionId(id))) {
                      JobExecution jobEx = getPersistenceManagerService().getJobExecution(id);
                      authorizedRunningExecutions.add(jobEx.getExecutionId());
                  } else {
                      logger.finer("Don't have authorization for executionId: " + id);
                  }
              } catch (NoSuchJobExecutionException e) {
                  String errorMsg = "Just found execution with id = " + id + " in table, but now seeing it as gone";
                  throw new IllegalStateException(errorMsg, e);
              }
          }
  
          if (authorizedRunningExecutions.size() == 0) {
              validateJobName(jobName);
          }
  
          return authorizedRunningExecutions;
      }
docs: {@inheritDoc}