} else if (action.equals(DELETE)) {
String jobId = getJobId(schedulerParameters);
getScheduler().deleteJob(jobId, publicationId);
} else if (action.equals(DOCUMENT_DELETED)) {
String documentUrl = (String) schedulerParameters.get(PARAMETER_DOCUMENT_URL);
DocumentFactory map = DocumentUtil.createDocumentIdentityMap(null, null);
org.apache.lenya.cms.publication.Document document = map.getFromURL(documentUrl);
deleteDocumentJobs(document);
}
// handle the remainder of the request by simply returning all
// scheduled jobs (for the given publication ID).