code: @Override
      public Set<String> getJobNames() throws JobSecurityException {
  
          batchRoleCheck(); // Check the user before bothering querying the DB
  
          if (authService == null || authService.isAdmin() || authService.isMonitor()) {
              // Do an unfiltered query
              return getPersistenceManagerService().getJobNamesSet();
          } else if (authService.isSubmitter()) {
              return getPersistenceManagerService().getJobNamesSet(batchSecurityHelper.getRunAsUser());
          } else {
              throw new JobSecurityException("Current user " + authService.getRunAsUser() + " is not authorized to perform batch operations");
          }
      }
docs: {@inheritDoc}