Package org.xwiki.extension.job.history
Class ExtensionJobHistoryRecord
java.lang.Object
org.xwiki.extension.job.history.ExtensionJobHistoryRecord
A record in the
ExtensionJobHistory
.- Since:
- 7.1RC1
- Version:
- $Id: 25e38ec0798cdc1a5fd613b694a7fcf1d534a9e4 $
-
Constructor Summary
ConstructorsConstructorDescriptionExtensionJobHistoryRecord
(String jobType, ExtensionRequest request, Map<String, QuestionRecorder<Object>> answers, Date startDate, Date endDate) Creates a new unmodifiable history record. -
Method Summary
-
Constructor Details
-
ExtensionJobHistoryRecord
public ExtensionJobHistoryRecord(String jobType, ExtensionRequest request, Map<String, QuestionRecorder<Object>> answers, Date startDate, Date endDate) Creates a new unmodifiable history record.- Parameters:
jobType
- the job type (normally the job component hint, e.g. "install")request
- the extension requestanswers
- the answers that were given by the user to the questions asked by the job specified by this history record (if the job was interactive); the key in the given map identifies the question type; the value represents the recorded answers for the corresponding question typestartDate
- the date when the job execution startedendDate
- the date when the job execution ended
-
-
Method Details
-
getJobType
- Returns:
- the job type (normally the job component hint, e.g. "install")
-
getRequest
- Returns:
- the extension request
-
getAnswers
- Returns:
- the answers that were given by the user to the questions asked by the job specified by this history record (if the job was interactive); the key in the returned map identifies the question type; the value represents the recorded answers for the corresponding question type
-
getStartDate
- Returns:
- the date when the job execution started
-
getEndDate
- Returns:
- the date when the job execution ended
-
getId
- Returns:
- a string that can be used to identify this record
-