Package hudson.plugins.jobConfigHistory
Class HistoryDescr
java.lang.Object
hudson.plugins.jobConfigHistory.HistoryDescr
- All Implemented Interfaces:
ParsedDate
- Direct Known Subclasses:
LazyHistoryDescr
Holder for information about an altering operation saved to
JobConfigHistoryConsts.HISTORY_FILE
.- Author:
- Stefan Brausch
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the current job name after renaming.Returns the old job name before renaming.Returns name of the operation.Returns timestamp of the operation.getUser()
Returns display name of the user doing the operation.Returns id of the user doing the operation.Returns aDate
.toString()
-
Field Details
-
EMPTY_HISTORY_DESCR
-
-
Constructor Details
-
HistoryDescr
public HistoryDescr(String user, String userId, String operation, String timestamp, String currentName, String oldName) - Parameters:
user
- display name of the user doing the operationuserId
- id of the user doing the operationoperation
- name of the operationtimestamp
- timestamp of the operationcurrentName
- the current name after renamingoldName
- the name before renaming
-
HistoryDescr
public HistoryDescr(String user, String userId, String operation, String timestamp, String currentName, String oldName, String changeReasonComment) - Parameters:
user
- display name of the user doing the operationuserId
- id of the user doing the operationoperation
- name of the operationtimestamp
- timestamp of the operationcurrentName
- the current name after renamingoldName
- the name before renaming
-
-
Method Details
-
getUser
Returns display name of the user doing the operation.- Returns:
- display name of the user
-
getUserID
Returns id of the user doing the operation.- Returns:
- id of the user
-
getOperation
Returns name of the operation.- Returns:
- name of the operation
-
getTimestamp
Returns timestamp of the operation.- Returns:
- timestamp
-
parsedDate
Returns aDate
.- Specified by:
parsedDate
in interfaceParsedDate
- Returns:
- The parsed date as a java.util.Date.
-
getCurrentName
Returns the current job name after renaming.- Returns:
- the current job name
-
getOldName
Returns the old job name before renaming.- Returns:
- the old job name
-
toString
-
getChangeReasonComment
- Returns:
- the comment on why the config has been changed. null, if not given.
-