1 4 package org.contineo.documan; 5 6 9 public class History { 10 11 private int historyId; 12 private int docId; 13 private String date; 14 private String username; 15 private String event; 16 17 public final static String STORED = "msg.jsp.docstored"; 18 public final static String CHANGED = "msg.jsp.docchanged"; 19 public final static String CHECKIN = "msg.jsp.doccheckedin"; 20 public final static String CHECKOUT = "msg.jsp.doccheckedout"; 21 22 25 public History() { 26 } 27 28 32 public int getHistoryId() { 33 return historyId; 34 } 35 36 40 public void setHistoryId(int historyId) { 41 this.historyId = historyId; 42 } 43 44 48 public String getDate() { 49 return date; 50 } 51 52 56 public void setDate(String date) { 57 this.date = date; 58 } 59 60 64 public int getDocId() { 65 return docId; 66 } 67 68 72 public void setDocId(int docId) { 73 this.docId = docId; 74 } 75 76 80 public String getEvent() { 81 return event; 82 } 83 84 88 public void setEvent(String event) { 89 if (event.equals(STORED) || event.equals(CHANGED) || event.equals(CHECKIN) || event.equals(CHECKOUT)) 90 this.event = event; 91 } 92 93 97 public String getUsername() { 98 return username; 99 } 100 101 105 public void setUsername(String username) { 106 this.username = username; 107 } 108 } 109 | Popular Tags |