public Iterator<JobRef> iterator(String appname, List<ExecutionPhase> phases, Date after, Integer last) throws JobPersistenceException, TransientException { JobDAO dao = getDAO(); return dao.iterator(appname, phases, after, last); }
/** * Iterate over the jobs owned by the user in the subject contained in the * access control context. * * @param phases Show only these phases * @param after Only show jobs after this time * @param last Show the last <i>last</i> jobs, ordererd by startTime ascending * @return job iterator * @throws JobPersistenceException * @throws TransientException */ public Iterator<JobRef> iterator(String appname, List<ExecutionPhase> phases, Date after, Integer last) throws TransientException, JobPersistenceException { AccessControlContext acContext = AccessController.getContext(); Subject subject = Subject.getSubject(acContext); return iterator(subject, appname, phases, after, last); }