Package org.apache.sling.cms
Interface CMSJobManager
public interface CMSJobManager
An abstraction layer for starting and finding jobs started by the Sling CMS.
Can be adapted from a SlingHttpServletRequest
-
Method Summary
Modifier and TypeMethodDescriptionvoidDeletes the specified job.Gets all of the jobs which can be executed.Collection<org.apache.sling.event.jobs.Job>getJobs()Find all of the jobs started by this user.org.apache.sling.event.jobs.JobGets the job by id as passed in the Sling suffix.org.apache.sling.event.jobs.JobstartJob()Starts a new job based on the request.
-
Method Details
-
getAvailableJobs
Collection<ConfigurableJobExecutor> getAvailableJobs()Gets all of the jobs which can be executed.- Returns:
- the jobs which can be executed
-
getJobs
Collection<org.apache.sling.event.jobs.Job> getJobs()Find all of the jobs started by this user.- Returns:
- the jobs started by the user
-
getSuffixJob
org.apache.sling.event.jobs.Job getSuffixJob()Gets the job by id as passed in the Sling suffix.- Returns:
- the job
-
startJob
org.apache.sling.event.jobs.Job startJob()Starts a new job based on the request.- Returns:
- the job
-
deleteJob
Deletes the specified job.- Parameters:
id- the id of the job to delete
-