org.xwiki.wiki.provisioning
Interface WikiProvisioningJobExecutor


@Role
@Unstable
public interface WikiProvisioningJobExecutor

Executor that manage jobs that provision wikis.

Since:
5.3M3
Version:
$Id: ae96e5aba3c6d251d3240acfc2db8908927bab7b $

Method Summary
 WikiProvisioningJob createAndExecuteJob(String wikiId, String provisioningJobName, Object parameter)
          Create a job and execute it.
 WikiProvisioningJob getJob(List<String> jobId)
          Get a wiki provisioning job.
 

Method Detail

createAndExecuteJob

WikiProvisioningJob createAndExecuteJob(String wikiId,
                                        String provisioningJobName,
                                        Object parameter)
                                        throws WikiProvisioningJobException
Create a job and execute it.

Parameters:
wikiId - id of the wiki to provision
provisioningJobName - name of the WikiProvisioningJob component to use
parameter - parameter used by the wiki provisioning job, depending of its implementation.
Returns:
the created job.
Throws:
WikiProvisioningJobException - if problems occur

getJob

WikiProvisioningJob getJob(List<String> jobId)
                           throws WikiProvisioningJobException
Get a wiki provisioning job.

Parameters:
jobId - Id of the job
Returns:
the job status
Throws:
WikiProvisioningJobException - if problems occur


Copyright © 2004–2014 XWiki. All rights reserved.