Revision 2608
Added by Jing Tao over 18 years ago
DocumentImplWrapper.java | ||
---|---|---|
80 | 80 |
throws Exception |
81 | 81 |
{ |
82 | 82 |
//we don't need to check validation in replciation |
83 |
// so rule base is null and need validation is false |
|
83 |
// so rule base is null and need validation is false (first false) |
|
84 |
// this method is for force replication. so the table name is xml_documents |
|
85 |
// and timed replication is false (last false) |
|
84 | 86 |
return DocumentImpl.writeReplication(conn, xml, pub, dtd, action, |
85 | 87 |
accnum, user, groups, homeServer, |
86 |
notifyServer, ruleBase, false); |
|
88 |
notifyServer, ruleBase, false, |
|
89 |
DocumentImpl.DOCUMENTTABLE, false); |
|
90 |
// last false means is not timed replication |
|
91 |
|
|
87 | 92 |
} |
93 |
|
|
94 |
/** |
|
95 |
* Constructor with tableName - this doc is in xml_documents or xml_revsions |
|
96 |
* If in xml_revisions, it need a special handler. |
|
97 |
* @param conn |
|
98 |
* @param xml |
|
99 |
* @param pub |
|
100 |
* @param dtd |
|
101 |
* @param action |
|
102 |
* @param accnum |
|
103 |
* @param user |
|
104 |
* @param groups |
|
105 |
* @param homeServer |
|
106 |
* @param notifyServer |
|
107 |
* @param tableName |
|
108 |
* @return |
|
109 |
* @throws Exception |
|
110 |
*/ |
|
111 |
public String writeReplication(DBConnection conn, Reader xml, |
|
112 |
String pub, Reader dtd, String action, |
|
113 |
String accnum, String user, |
|
114 |
String[] groups,String homeServer, |
|
115 |
String notifyServer, String tableName, boolean timedReplication) |
|
116 |
throws Exception |
|
117 |
{ |
|
118 |
//we don't need to check validation in replciation |
|
119 |
// so rule base is null and need validation is false |
|
120 |
return DocumentImpl.writeReplication(conn, xml, pub, dtd, action, |
|
121 |
accnum, user, groups, homeServer, |
|
122 |
notifyServer, ruleBase, false, tableName, timedReplication); |
|
123 |
} |
|
88 | 124 |
}//DocumentImple |
Also available in: Unified diff
Add code to handle deleted document replication.