Package org.xwiki.extension.job.history
Class ExtensionJobHistoryRecord
- java.lang.Object
-
- org.xwiki.extension.job.history.ExtensionJobHistoryRecord
-
public class ExtensionJobHistoryRecord extends Object
A record in theExtensionJobHistory.- Since:
- 7.1RC1
- Version:
- $Id: 25e38ec0798cdc1a5fd613b694a7fcf1d534a9e4 $
-
-
Constructor Summary
Constructors Constructor Description ExtensionJobHistoryRecord(String jobType, ExtensionRequest request, Map<String,QuestionRecorder<Object>> answers, Date startDate, Date endDate)Creates a new unmodifiable history record.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,QuestionRecorder<Object>>getAnswers()DategetEndDate()StringgetId()StringgetJobType()ExtensionRequestgetRequest()DategetStartDate()
-
-
-
Constructor Detail
-
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 Detail
-
getJobType
public String getJobType()
- Returns:
- the job type (normally the job component hint, e.g. "install")
-
getRequest
public ExtensionRequest getRequest()
- Returns:
- the extension request
-
getAnswers
public Map<String,QuestionRecorder<Object>> 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
public Date getStartDate()
- Returns:
- the date when the job execution started
-
getEndDate
public Date getEndDate()
- Returns:
- the date when the job execution ended
-
getId
public String getId()
- Returns:
- a string that can be used to identify this record
-
-