Revision 2113
Added by Matt Jones about 20 years ago
EventLogTest.java | ||
---|---|---|
29 | 29 |
import java.sql.Timestamp; |
30 | 30 |
import java.text.ParseException; |
31 | 31 |
import java.text.SimpleDateFormat; |
32 |
import java.util.Date; |
|
33 | 32 |
|
34 | 33 |
import edu.ucsb.nceas.metacat.DBConnectionPool; |
35 | 34 |
import edu.ucsb.nceas.metacat.EventLog; |
... | ... | |
93 | 92 |
Timestamp startDate = null; |
94 | 93 |
Timestamp endDate = null; |
95 | 94 |
try { |
96 |
startDate = new Timestamp((format.parse("2004-04-07 09:32:00")).getTime());
|
|
97 |
endDate = new Timestamp((format.parse("2004-04-07 09:50:00")).getTime());
|
|
95 |
startDate = new Timestamp((format.parse("2004-04-08 02:32:00")).getTime());
|
|
96 |
endDate = new Timestamp((format.parse("2004-04-08 11:20:00")).getTime());
|
|
98 | 97 |
} catch (ParseException e) { |
99 | 98 |
System.out.println("Failed to created endDate from format."); |
100 | 99 |
} |
Also available in: Unified diff
Added the EventLog functionality to the servlet as action=getlog. Valid parameters are ipAddress, principal, docid, event, start, end. All parameters can be repeated except start and end.