hudson.plugins.jobConfigHistory
Class ConfigInfo

java.lang.Object
  extended by hudson.plugins.jobConfigHistory.ConfigInfo
All Implemented Interfaces:
ParsedDate

@ExportedBean(defaultVisibility=999)
public class ConfigInfo
extends Object
implements ParsedDate

Holder object for displaying information.

Author:
Stefan Brausch

Method Summary
static ConfigInfo create(String name, boolean configExists, HistoryDescr histDescr, boolean isJob)
          Returns a new ConfigInfo object for a system configuration file.
 String getDate()
          Returns the date of the change.
 boolean getIsJob()
          Returns true if this object represents a Hudson job as opposed to representing a system configuration.
 String getJob()
          Returns the name of the job.
 String getOperation()
          Returns the type of the operation.
 String getUser()
          Returns the display name of the user.
 String getUserID()
          Returns the id of the user.
 boolean hasConfig()
          Does the configuration of the file exist?
 Date parsedDate()
          Returns a Date.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

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

@Exported
public String getUser()
Returns the display name of the user.

Returns:
display name

getUserID

@Exported
public String getUserID()
Returns the id of the user.

Returns:
user id

getDate

@Exported
public String 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

@Exported
public String getJob()
Returns the name of the job.

Returns:
name of the job

getOperation

@Exported
public String getOperation()
Returns the type of the operation.

Returns:
name of the operation

getIsJob

public boolean getIsJob()
Returns true if this object represents a Hudson job as opposed to representing a system configuration.

Returns:
true if this object stores a Hudson job configuration

toString

public String toString()
Overrides:
toString in class Object

parsedDate

public Date parsedDate()
Returns a Date.

Specified by:
parsedDate in interface ParsedDate
Returns:
The parsed date as a java.util.Date.


Copyright © 2004–2014. All rights reserved.