1
|
/**
|
2
|
* '$RCSfile$'
|
3
|
* Copyright: 2004 Regents of the University of California and the
|
4
|
* National Center for Ecological Analysis and Synthesis
|
5
|
*
|
6
|
* '$Author: jones $'
|
7
|
* '$Date: 2004-04-01 22:40:48 -0800 (Thu, 01 Apr 2004) $'
|
8
|
* '$Revision: 2096 $'
|
9
|
*
|
10
|
* This program is free software; you can redistribute it and/or modify
|
11
|
* it under the terms of the GNU General Public License as published by
|
12
|
* the Free Software Foundation; either version 2 of the License, or
|
13
|
* (at your option) any later version.
|
14
|
*
|
15
|
* This program is distributed in the hope that it will be useful,
|
16
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
17
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
18
|
* GNU General Public License for more details.
|
19
|
*
|
20
|
* You should have received a copy of the GNU General Public License
|
21
|
* along with this program; if not, write to the Free Software
|
22
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
23
|
*/
|
24
|
package edu.ucsb.nceas.metacat;
|
25
|
|
26
|
/**
|
27
|
* @author jones
|
28
|
*
|
29
|
* TODO To change the template for this generated type comment go to
|
30
|
* Window - Preferences - Java - Code Generation - Code and Comments
|
31
|
*/
|
32
|
public class EventLogData {
|
33
|
private String ipAddress;
|
34
|
private String principal;
|
35
|
private String docid;
|
36
|
private long revision;
|
37
|
private String event;
|
38
|
|
39
|
|
40
|
/**
|
41
|
* @param ipAddress
|
42
|
* @param principal
|
43
|
* @param docid
|
44
|
* @param revision
|
45
|
* @param event
|
46
|
*/
|
47
|
public EventLogData(String ipAddress, String principal, String docid,
|
48
|
long revision, String event) {
|
49
|
this.ipAddress = ipAddress;
|
50
|
this.principal = principal;
|
51
|
this.docid = docid;
|
52
|
this.revision = revision;
|
53
|
this.event = event;
|
54
|
}
|
55
|
|
56
|
/**
|
57
|
* @return Returns the docid.
|
58
|
*/
|
59
|
public String getDocid() {
|
60
|
return docid;
|
61
|
}
|
62
|
|
63
|
/**
|
64
|
* @param docid The docid to set.
|
65
|
*/
|
66
|
public void setDocid(String docid) {
|
67
|
this.docid = docid;
|
68
|
}
|
69
|
|
70
|
/**
|
71
|
* @return Returns the event.
|
72
|
*/
|
73
|
public String getEvent() {
|
74
|
return event;
|
75
|
}
|
76
|
|
77
|
/**
|
78
|
* @param event The event to set.
|
79
|
*/
|
80
|
public void setEvent(String event) {
|
81
|
this.event = event;
|
82
|
}
|
83
|
|
84
|
/**
|
85
|
* @return Returns the ipAddress.
|
86
|
*/
|
87
|
public String getIpAddress() {
|
88
|
return ipAddress;
|
89
|
}
|
90
|
|
91
|
/**
|
92
|
* @param ipAddress The ipAddress to set.
|
93
|
*/
|
94
|
public void setIpAddress(String ipAddress) {
|
95
|
this.ipAddress = ipAddress;
|
96
|
}
|
97
|
|
98
|
/**
|
99
|
* @return Returns the principal.
|
100
|
*/
|
101
|
public String getPrincipal() {
|
102
|
return principal;
|
103
|
}
|
104
|
|
105
|
/**
|
106
|
* @param principal The principal to set.
|
107
|
*/
|
108
|
public void setPrincipal(String principal) {
|
109
|
this.principal = principal;
|
110
|
}
|
111
|
|
112
|
/**
|
113
|
* @return Returns the revision.
|
114
|
*/
|
115
|
public long getRevision() {
|
116
|
return revision;
|
117
|
}
|
118
|
|
119
|
/**
|
120
|
* @param revision The revision to set.
|
121
|
*/
|
122
|
public void setRevision(long revision) {
|
123
|
this.revision = revision;
|
124
|
}
|
125
|
}
|