01: /**
02: * @author garethc
03: * 11/11/2002 12:20:23
04: */package vqwiki;
05:
06: import java.util.Date;
07:
08: /**
09: * Event fired when a topic has been saved
10: */
11: public class TopicSavedEvent {
12:
13: /** Name of the virtual wiki */
14: private String virtualWiki;
15: /** Name of the topic */
16: private String topicName;
17: /** The contents saved */
18: private String contents;
19: /** User */
20: private String user;
21: /** Time */
22: private Date time;
23:
24: /**
25: * New event
26: *
27: * @param virtualWiki
28: * @param topicName
29: * @param contents
30: */
31: public TopicSavedEvent(String virtualWiki, String topicName,
32: String contents, String user, Date time) {
33: this .virtualWiki = virtualWiki;
34: this .topicName = topicName;
35: this .contents = contents;
36: this .user = user;
37: this .time = time;
38: }
39:
40: /**
41: * Name of the virtual wiki
42: * @return
43: */
44: public String getVirtualWiki() {
45: return virtualWiki;
46: }
47:
48: /**
49: * Name of the topic
50: * @return
51: */
52: public String getTopicName() {
53: return topicName;
54: }
55:
56: /**
57: * Name of the contents
58: * @return
59: */
60: public String getContents() {
61: return contents;
62: }
63:
64: /**
65: * User who saved
66: * @return user
67: */
68: public String getUser() {
69: return user;
70: }
71:
72: /**
73: * Time save was made
74: * @return time
75: */
76: public Date getTime() {
77: return time;
78: }
79: }
|