com.publicobject.issuesbrowser.Activity Maven / Gradle / Ivy
/* Glazed Lists (c) 2003-2006 */
/* http://publicobject.com/glazedlists/ publicobject.com,*/
/* O'Dell Engineering Ltd.*/
package com.publicobject.issuesbrowser;
import java.util.Date;
/**
* Data pertaining to an {@link Issue}'s activity record.
*/
public class Activity {
private String user;
private Date when;
private String field;
private String fieldDescription;
private String oldValue;
private String newValue;
/** default constructor. */
public Activity() {
// NOP
}
/**
* constructor for state change.
*
* @param field field name
* @param newValue new value for field
*/
public Activity(String field, String newValue) {
this.field = field;
this.newValue = newValue;
}
/**
* user who performed the change action
*/
public String getUser() { return user; }
public void setUser(String user) { this.user = user; }
/**
* date the described change was made
*/
public Date getWhen() { return when; }
public void setWhen(Date when) { this.when = when; }
/**
* name of db field (in fielddefs)
*/
public String getField() { return field; }
public void setField(String field) { this.field = field; }
/**
* description of the database field that changed
*/
public String getFieldDescription() { return fieldDescription; }
public void setFieldDescription(String fieldDescription) { this.fieldDescription = fieldDescription; }
/**
* value before the change
*/
public String getOldValue() { return oldValue; }
public void setOldValue(String oldValue) { this.oldValue = oldValue; }
/**
* value after the change
*/
public String getNewValue() { return newValue; }
public void setNewValue(String newValue) { this.newValue = newValue; }
}