1 11 12 package org.jivesoftware.messenger.audit; 13 14 import org.jivesoftware.messenger.Session; 15 import java.util.Date ; 16 17 23 public class AuditEvent { 24 25 29 public static final int USER_CODES = 100; 30 31 private Session session; 32 private Date time; 33 private int code; 34 private int reason; 35 private String data; 36 37 47 public AuditEvent(Session eventSession, Date timestamp, int eventCode, int eventReason, 48 String eventData) 49 { 50 this.session = eventSession; 51 this.time = timestamp; 52 this.code = eventCode; 53 this.reason = eventReason; 54 this.data = eventData; 55 } 56 57 62 public int getCode() { 63 return code; 64 } 65 66 71 public void setCode(int code) { 72 this.code = code; 73 } 74 75 80 public String getData() { 81 return data; 82 } 83 84 89 public void setData(String data) { 90 this.data = data; 91 } 92 93 98 public int getReason() { 99 return reason; 100 } 101 102 107 public void setReason(int reason) { 108 this.reason = reason; 109 } 110 111 116 public Session getSession() { 117 return session; 118 } 119 120 125 public void setSession(Session session) { 126 this.session = session; 127 } 128 129 134 public Date getTimestamp() { 135 return time; 136 } 137 138 143 public void setTimestamp(Date time) { 144 this.time = time; 145 } 146 } | Popular Tags |