/** * Returns the currently scheduled job description identified by the given id. * * @param id the job id * * @return a job or <code>null</code> if not found */ public CmsScheduledJobInfo getJob(String id) { Iterator<CmsScheduledJobInfo> it = m_jobs.iterator(); while (it.hasNext()) { CmsScheduledJobInfo job = it.next(); if (job.getId().equals(id)) { return job; } } // not found return null; }
/** * Returns the currently scheduled job description identified by the given id. * * @param id the job id * * @return a job or <code>null</code> if not found */ public CmsScheduledJobInfo getJob(String id) { Iterator it = m_jobs.iterator(); while (it.hasNext()) { CmsScheduledJobInfo job = (CmsScheduledJobInfo)it.next(); if (job.getId().equals(id)) { return job; } } // not found return null; }
/** * @see org.opencms.workplace.list.A_CmsListDialog#getListItems() */ @Override protected List<CmsListItem> getListItems() { List<CmsListItem> items = new ArrayList<CmsListItem>(); // get all scheduled jobs from manager Iterator<CmsScheduledJobInfo> i = OpenCms.getScheduleManager().getJobs().iterator(); while (i.hasNext()) { CmsScheduledJobInfo job = i.next(); CmsListItem item = getList().newItem(job.getId()); // set the contents of the columns item.set(LIST_COLUMN_NAME, job.getJobName()); item.set(LIST_COLUMN_CLASS, job.getClassName()); item.set(LIST_COLUMN_LASTEXE, job.getExecutionTimePrevious()); item.set(LIST_COLUMN_NEXTEXE, job.getExecutionTimeNext()); item.set(LIST_COLUMN_ACTIVE, Boolean.valueOf(job.isActive())); items.add(item); } return items; }
if (jobId.equals(job.getId())) { m_jobs.remove(i); if (jobInfo != null) {
if (jobId.equals(job.getId())) { m_jobs.remove(i); if (jobInfo != null) {
jobId = jobInfo.getId();
jobId = jobInfo.getId();
String jobId = jobInfo.getId(); boolean idCreated = false; if (jobId == null) { JobDetail jobDetail = new JobDetail(jobInfo.getId(), Scheduler.DEFAULT_GROUP, CmsScheduleManager.class); if (oldJob != null) { jobDetail = new JobDetail(oldJob.getId(), Scheduler.DEFAULT_GROUP, CmsScheduleManager.class); jobDetail.setJobDataMap(jobData); try {
String jobId = jobInfo.getId(); boolean idCreated = false; if (jobId == null) { JobDetail jobDetail = new JobDetail(jobInfo.getId(), Scheduler.DEFAULT_GROUP, CmsScheduleManager.class); if (oldJob != null) { jobDetail = new JobDetail(oldJob.getId(), Scheduler.DEFAULT_GROUP, CmsScheduleManager.class); jobDetail.setJobDataMap(jobData); try {