Project

General

Profile

« Previous | Next » 

Revision 2101

Added by Matt Jones about 20 years ago

Modified EventLog to eliminate the separate revision column and instead fold
that into the docid string. Log now includes read events, but need to update
the data sent there.

View differences:

MetaCatServlet.java
999 999
                        }
1000 1000
                    }
1001 1001
                    
1002
                    // Log the event to the event table
1003
                    EventLog.getInstance().log("192.168.1.103", "public", 
1004
                            "test.1", 1, "read");
1005 1002
                } catch (MalformedURLException mue) {
1003
                    MetaCatUtil.debugMessage("MUE handleReadAction", 5);
1006 1004
                    docid = docs[i];
1007 1005
                    if (zip) {
1008 1006
                        addDocToZip(docid, zout, user, groups);
1009 1007
                    } else {
1010 1008
                        readFromMetacat(response, docid, qformat, abstrpath,
1011
                                user, groups, zip, zout, withInlineData, params);
1009
                            user, groups, zip, zout, withInlineData, params);
1012 1010
                    }
1013 1011
                }
1014

  
1015 1012
            }
1016 1013

  
1017 1014
            if (zip) {
......
1205 1202
                }
1206 1203

  
1207 1204
            }
1205
            EventLog.getInstance().log("192.168.1.103", "public", 
1206
                    docid, "read");
1208 1207
        } catch (Exception except) {
1209 1208
            throw except;
1210 1209
        }
......
1348 1347
                    zout.write(bytestring, 0, bytestring.length);
1349 1348
                    zout.closeEntry();
1350 1349
                }
1350
                EventLog.getInstance().log("192.168.1.103", "public", 
1351
                        docid, "read");
1351 1352
            } catch (Exception except) {
1352 1353
                throw except;
1353 1354
            }

Also available in: Unified diff