Class ConfluenceMigrationJobStatus

  • All Implemented Interfaces:
    org.xwiki.job.event.status.CancelableJobStatus, org.xwiki.job.event.status.JobStatus

    public class ConfluenceMigrationJobStatus
    extends org.xwiki.job.DefaultJobStatus<ConfluenceMigrationJobRequest>
    Custom Job Status that holds the questions asked by sub-jobs.
    Since:
    1.0
    Version:
    $Id$
    • Constructor Detail

      • ConfluenceMigrationJobStatus

        public ConfluenceMigrationJobStatus​(ConfluenceMigrationJobRequest request,
                                            org.xwiki.job.event.status.JobStatus parentJobStatus,
                                            org.xwiki.observation.ObservationManager observationManager,
                                            org.xwiki.logging.LoggerManager loggerManager)
        Parameters:
        request - the request provided when started the job
        parentJobStatus - the status of the parent job
        observationManager - the observation manager component
        loggerManager - the logger manager component
    • Method Detail

      • addAskedQuestion

        public void addAskedQuestion​(List<String> jobId,
                                     Object question)
        Parameters:
        jobId - the identifier of the job.
        question - the asked question.
      • getAskedQuestions

        public Map<List<String>,​Object> getAskedQuestions()
        Returns:
        a map of questions each identified by the job identifiers.
      • setFilterJobStatus

        public void setFilterJobStatus​(org.xwiki.job.event.status.CancelableJobStatus filterJobStatus)
        Parameters:
        filterJobStatus - set the filter job status so it can be canceled.
        Since:
        1.14.0
      • setSpaces

        public void setSpaces​(Collection<String> spaces)
        Set the list of spaces that are migrated.
        Parameters:
        spaces - the Confluence keys of the migrated spaces
        Since:
        1.19.0
      • getSpaces

        public Collection<String> getSpaces()
        Returns:
        the list of spaces that are migrated.
        Since:
        1.19.0
      • cancel

        public void cancel()
        Specified by:
        cancel in interface org.xwiki.job.event.status.CancelableJobStatus
        Overrides:
        cancel in class org.xwiki.job.AbstractJobStatus<ConfluenceMigrationJobRequest>