1 17 package org.alfresco.repo.importer; 18 19 import org.quartz.Job; 20 import org.quartz.JobExecutionContext; 21 import org.quartz.JobExecutionException; 22 23 public class ImporterJob implements Job 24 { 25 public ImporterJob() 26 { 27 super(); 28 } 29 30 public void execute(JobExecutionContext executionContext) throws JobExecutionException 31 { 32 ImporterJobSPI importerJob = (ImporterJobSPI) executionContext.getJobDetail().getJobDataMap() 33 .get("bean"); 34 if (importerJob != null) 35 { 36 importerJob.doImport(); 37 } 38 39 } 40 } 41 | Popular Tags |