Package hudson.plugins.jobConfigHistory
Class ConfigInfo
java.lang.Object
hudson.plugins.jobConfigHistory.ConfigInfo
- All Implemented Interfaces:
ParsedDate
Holder object for displaying information.
- Author:
- Stefan Brausch
-
Method Summary
Modifier and TypeMethodDescriptionstatic ConfigInfo
create
(String name, boolean configExists, HistoryDescr histDescr, boolean isJob) Returns a new ConfigInfo object for a system configuration file.Returns the current job name after renaming.getDate()
Returns the date of the change.boolean
getIsJob()
Returns true if this object represents a Jenkins job as opposed to representing a system configuration.getJob()
Returns the name of the job.Returns the old job name before renaming.Returns the type of the operation.getUser()
Returns the display name of the user.Returns the id of the user.boolean
Does the configuration of the file exist?Returns aDate
.toString()
-
Method Details
-
create
public static ConfigInfo create(String name, boolean configExists, HistoryDescr histDescr, boolean isJob) Returns a new ConfigInfo object for a system configuration file.- Parameters:
name
- Name of the configuration entity we are saving.configExists
- Does the config file exist?histDescr
- metadata of the change.isJob
- whether it is a job's config info or not.- Returns:
- a new ConfigInfo object.
-
getUser
Returns the display name of the user.- Returns:
- display name
-
getUserID
Returns the id of the user.- Returns:
- user id
-
getDate
Returns the date of the change.- Returns:
- timestamp in the format of
JobConfigHistoryConsts.ID_FORMATTER
-
hasConfig
@Exported public boolean hasConfig()Does the configuration of the file exist?- Returns:
- URL encoded filename
-
getJob
Returns the name of the job.- Returns:
- name of the job
-
getOperation
Returns the type of the operation.- Returns:
- name of the operation
-
getIsJob
public boolean getIsJob()Returns true if this object represents a Jenkins job as opposed to representing a system configuration.- Returns:
- true if this object stores a Jenkins job configuration
-
getChangeReasonComment
- Returns:
- why the config change was made.
-
toString
-
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:
- current job name
-
getOldName
Returns the old job name before renaming.- Returns:
- old job name before renaming
-