KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > contineo > documan > History


1 /*
2  * Created on 20.08.2004
3  */

4 package org.contineo.documan;
5
6 /**
7  * @author Michael Scholz
8  */

9 public class History {
10
11     private int historyId;
12     private int docId;
13     private String JavaDoc date;
14     private String JavaDoc username;
15     private String JavaDoc event;
16     
17     public final static String JavaDoc STORED = "msg.jsp.docstored";
18     public final static String JavaDoc CHANGED = "msg.jsp.docchanged";
19     public final static String JavaDoc CHECKIN = "msg.jsp.doccheckedin";
20     public final static String JavaDoc CHECKOUT = "msg.jsp.doccheckedout";
21     
22     /**
23      *
24      */

25     public History() {
26     }
27     
28     /**
29      * @return Returns the historyId.
30      * @uml.property name="historyId"
31      */

32     public int getHistoryId() {
33         return historyId;
34     }
35     
36     /**
37      * @param historyId The historyId to set.
38      * @uml.property name="historyId"
39      */

40     public void setHistoryId(int historyId) {
41         this.historyId = historyId;
42     }
43     
44     /**
45      * @return Returns the date.
46      * @uml.property name="date"
47      */

48     public String JavaDoc getDate() {
49         return date;
50     }
51     
52     /**
53      * @param date The date to set.
54      * @uml.property name="date"
55      */

56     public void setDate(String JavaDoc date) {
57         this.date = date;
58     }
59     
60     /**
61      * @return Returns the docId.
62      * @uml.property name="docId"
63      */

64     public int getDocId() {
65         return docId;
66     }
67     
68     /**
69      * @param docId The docId to set.
70      * @uml.property name="docId"
71      */

72     public void setDocId(int docId) {
73         this.docId = docId;
74     }
75     
76     /**
77      * @return Returns the event.
78      * @uml.property name="event"
79      */

80     public String JavaDoc getEvent() {
81         return event;
82     }
83     
84     /**
85      * @param event The event to set.
86      * @uml.property name="event"
87      */

88     public void setEvent(String JavaDoc event) {
89         if (event.equals(STORED) || event.equals(CHANGED) || event.equals(CHECKIN) || event.equals(CHECKOUT))
90             this.event = event;
91     }
92     
93     /**
94      * @return Returns the username.
95      * @uml.property name="username"
96      */

97     public String JavaDoc getUsername() {
98         return username;
99     }
100     
101     /**
102      * @param username The username to set.
103      * @uml.property name="username"
104      */

105     public void setUsername(String JavaDoc username) {
106         this.username = username;
107     }
108 }
109
Popular Tags