Revision 3229
Added by Jing Tao almost 17 years ago
DocumentImplWrapper.java | ||
---|---|---|
66 | 66 |
}//Constructor |
67 | 67 |
|
68 | 68 |
public String write(DBConnection conn,Reader xml,String pub,Reader dtd, |
69 |
String action, String docid, String user, String[] groups) |
|
69 |
String action, String docid, String user, String[] groups, String ipAddress)
|
|
70 | 70 |
throws Exception |
71 | 71 |
{ |
72 | 72 |
return DocumentImpl.write(conn, xml, pub, dtd, action, docid, user, |
73 |
groups, ruleBase, needValidation); |
|
73 |
groups, ruleBase, needValidation, ipAddress);
|
|
74 | 74 |
} |
75 | 75 |
|
76 | 76 |
public String writeReplication(DBConnection conn, Reader xml, |
... | ... | |
78 | 78 |
String accnum, String user, |
79 | 79 |
String[] groups,String homeServer, |
80 | 80 |
String notifyServer, String createDate, |
81 |
String updateDate) |
|
81 |
String updateDate, String ipAddress)
|
|
82 | 82 |
throws Exception |
83 | 83 |
{ |
84 | 84 |
//we don't need to check validation in replciation |
... | ... | |
89 | 89 |
accnum, user, groups, homeServer, |
90 | 90 |
notifyServer, ruleBase, false, |
91 | 91 |
DocumentImpl.DOCUMENTTABLE, false, |
92 |
createDate, updateDate); |
|
92 |
createDate, updateDate, ipAddress);
|
|
93 | 93 |
// last false means is not timed replication |
94 | 94 |
|
95 | 95 |
} |
... | ... | |
116 | 116 |
String accnum, String user, |
117 | 117 |
String[] groups,String homeServer, |
118 | 118 |
String notifyServer, String tableName, |
119 |
boolean timedReplication, String createDate, String updateDate) |
|
119 |
boolean timedReplication, String createDate, String updateDate, String ipAddress)
|
|
120 | 120 |
throws Exception |
121 | 121 |
{ |
122 | 122 |
//we don't need to check validation in replciation |
... | ... | |
124 | 124 |
return DocumentImpl.writeReplication(conn, xml, pub, dtd, action, |
125 | 125 |
accnum, user, groups, homeServer, |
126 | 126 |
notifyServer, ruleBase, false, tableName, |
127 |
timedReplication, createDate, updateDate); |
|
127 |
timedReplication, createDate, updateDate, ipAddress);
|
|
128 | 128 |
} |
129 | 129 |
}//DocumentImple |
Also available in: Unified diff
This commit is for branch. In this commit the correct ip and user name will be stored in access_log table in replication event. However, it only for Forcereplication. And the test isn't completed yet. This commit is only for future use.