/**
* The contents of this file are subject to the Mozilla Public License
* Version 1.1 (the "License"); you may not use this file except in
* compliance with the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS"
* basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
* License for the specific language governing rights and limitations under
* the License.
*
* The Original Code is OpenELIS code.
*
* Copyright (C) ITECH, University of Washington, Seattle WA. All Rights Reserved.
*
*/
package us.mn.state.health.lims.audittrail.action.workers;
import java.io.Serializable;
import java.sql.Timestamp;
public class AuditTrailItem implements Serializable{
private static final long serialVersionUID = 6253410461743508243L;
private Timestamp timeStamp;
private String date;
private String time;
private String action;
private String user;
private String item;
private String attribute = "";
private String newValue = "";
private String oldValue = "";
private String identifier = "";
private String className = "";
private String referencedId;
public Timestamp getTimeStamp() {
return timeStamp;
}
public void setTimeStamp(Timestamp timeStamp) {
this.timeStamp = timeStamp;
}
public String getDate() {
return date;
}
public void setDate(String date) {
this.date = date;
}
public String getTime() {
return time;
}
public void setTime(String time) {
this.time = time;
}
public String getUser() {
return user;
}
public void setUser(String user) {
this.user = user;
}
public String getAction() {
return action;
}
public void setAction(String action) {
this.action = action;
}
public String getItem() {
return item;
}
public void setItem(String item) {
this.item = item;
}
public String getAttribute() {
return attribute;
}
public void setAttribute(String attribute) {
this.attribute = attribute;
}
public String getNewValue() {
return newValue;
}
public void setNewValue(String value) {
this.newValue = value;
}
public String getOldValue() {
return oldValue;
}
public void setOldValue(String oldValue) {
this.oldValue = oldValue;
}
public String getIdentifier() {
return identifier;
}
public void setIdentifier(String identifier) {
this.identifier = identifier;
}
public String getClassName() {
return className;
}
public void setClassName(String className) {
this.className = className;
}
public boolean newOldDiffer() {
return newValue == null ? true : !newValue.equals(oldValue);
}
public String getReferencedId(){
return referencedId;
}
public void setReferencedId( String referencedId ){
this.referencedId = referencedId;
}
}