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 Detail

      • 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

        void deleteJob​(String id)
        Deletes the specified job.
        Parameters:
        id - the id of the job to delete