hudson.plugins.jobConfigHistory
Class HistoryDescr

java.lang.Object
  extended by hudson.plugins.jobConfigHistory.HistoryDescr
All Implemented Interfaces:
ParsedDate
Direct Known Subclasses:
LazyHistoryDescr

public class HistoryDescr
extends Object
implements ParsedDate

Holder for information about an altering operation saved to JobConfigHistoryConsts.HISTORY_FILE.

Author:
Stefan Brausch

Constructor Summary
HistoryDescr(String user, String userId, String operation, String timestamp)
           
 
Method Summary
 String getOperation()
          Returns name of the operation.
 String getTimestamp()
          Returns timestamp of the operation.
 String getUser()
          Returns display name of the user doing the operation.
 String getUserID()
          Returns id of the user doing the operation.
 Date parsedDate()
          Returns a Date.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HistoryDescr

public HistoryDescr(String user,
                    String userId,
                    String operation,
                    String timestamp)
Parameters:
user - display name of the user doing the operation
userId - id of the user doing the operation
operation - name of the operation
timestamp - timestamp of the operation
Method Detail

getUser

public String getUser()
Returns display name of the user doing the operation.

Returns:
display name of the user

getUserID

public String getUserID()
Returns id of the user doing the operation.

Returns:
id of the user

getOperation

public String getOperation()
Returns name of the operation.

Returns:
name of the operation

getTimestamp

public String getTimestamp()
Returns timestamp of the operation.

Returns:
timestamp

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.