hudson.plugins.jobConfigHistory
クラス ConfigInfo

java.lang.Object
  上位を拡張 hudson.plugins.jobConfigHistory.ConfigInfo

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

Holder object for displaying information.

作成者:
Stefan Brausch

メソッドの概要
static ConfigInfo create(hudson.model.AbstractProject<?,?> job, File file, HistoryDescr histDescr)
          Returns a new ConfigInfo object for a Hudson job.
static ConfigInfo create(String name, File file, HistoryDescr histDescr)
          Returns a new ConfigInfo object for a system configuration file.
 String getDate()
          Returns the date of the change.
 String getFile()
          Returns the URL encoded absolute name of the file.
 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.
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

メソッドの詳細

create

public static ConfigInfo create(hudson.model.AbstractProject<?,?> job,
                                File file,
                                HistoryDescr histDescr)
                         throws UnsupportedEncodingException
Returns a new ConfigInfo object for a Hudson job.

パラメータ:
job - a project
file - pointing to config.xml
histDescr - metadata of the change
戻り値:
a new ConfigInfo object.
例外:
UnsupportedEncodingException - if UTF-8 is not available (probably a serious error).

create

public static ConfigInfo create(String name,
                                File file,
                                HistoryDescr histDescr)
                         throws UnsupportedEncodingException
Returns a new ConfigInfo object for a system configuration file.

パラメータ:
name - Name of the configuration entity we are saving.
file - The file with configuration data.
histDescr - metadata of the change.
戻り値:
a new ConfigInfo object.
例外:
UnsupportedEncodingException - if UTF-8 is not available

getUser

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

戻り値:
display name

getUserID

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

戻り値:
user id

getDate

@Exported
public String getDate()
Returns the date of the change.

戻り値:
timestamp in the format of ConfigHistoryListenerHelper#ID_FORMATTER

getFile

@Exported
public String getFile()
Returns the URL encoded absolute name of the file.

戻り値:
URL encoded filename

getJob

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

戻り値:
name of the job

getOperation

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

戻り値:
name of the operation

getIsJob

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

戻り値:
true if this object stores a Hudson job configuration


Copyright © 2004-2011. All Rights Reserved.