Search in sources :

Example 1 with ReportJob

use of org.apache.syncope.core.provisioning.java.job.report.ReportJob in project syncope by apache.

the class JobManagerImpl method register.

@Override
public void register(final Report report, final Date startAt, final long interruptMaxRetries) throws SchedulerException {
    ReportJob job = createSpringBean(ReportJob.class);
    job.setReportKey(report.getKey());
    Map<String, Object> jobMap = new HashMap<>();
    jobMap.put(JobManager.DOMAIN_KEY, AuthContextUtils.getDomain());
    registerJob(JobNamer.getJobKey(report).getName(), job, report.getCronExpression(), startAt, jobMap);
}
Also used : HashMap(java.util.HashMap) ReportJob(org.apache.syncope.core.provisioning.java.job.report.ReportJob)

Aggregations

HashMap (java.util.HashMap)1 ReportJob (org.apache.syncope.core.provisioning.java.job.report.ReportJob)1