Revision 4499
Added by daigle about 16 years ago
src/edu/ucsb/nceas/metacat/DocumentImplWrapper.java | ||
---|---|---|
28 | 28 |
package edu.ucsb.nceas.metacat; |
29 | 29 |
|
30 | 30 |
import java.io.Reader; |
31 |
import org.xml.sax.ContentHandler; |
|
32 |
import org.xml.sax.DTDHandler; |
|
33 |
import org.xml.sax.EntityResolver; |
|
34 |
import org.xml.sax.ErrorHandler; |
|
35 |
import org.xml.sax.InputSource; |
|
36 |
import org.xml.sax.XMLReader; |
|
37 |
import org.xml.sax.SAXException; |
|
38 |
import org.xml.sax.SAXParseException; |
|
39 |
import org.xml.sax.helpers.XMLReaderFactory; |
|
40 | 31 |
|
41 | 32 |
//import edu.ucsb.nceas.metacat.spatial.MetacatSpatialDocument; |
42 | 33 |
|
... | ... | |
81 | 72 |
String updateDate) |
82 | 73 |
throws Exception |
83 | 74 |
{ |
84 |
//we don't need to check validation in replciation
|
|
75 |
//we don't need to check validation in replication
|
|
85 | 76 |
// so rule base is null and need validation is false (first false) |
86 | 77 |
// this method is for force replication. so the table name is xml_documents |
87 | 78 |
// and timed replication is false (last false) |
... | ... | |
119 | 110 |
boolean timedReplication, String createDate, String updateDate) |
120 | 111 |
throws Exception |
121 | 112 |
{ |
122 |
//we don't need to check validation in replciation
|
|
113 |
//we don't need to check validation in replication
|
|
123 | 114 |
// so rule base is null and need validation is false |
124 | 115 |
return DocumentImpl.writeReplication(conn, xml, pub, dtd, action, |
125 | 116 |
accnum, user, groups, homeServer, |
126 | 117 |
notifyServer, ruleBase, false, tableName, |
127 | 118 |
timedReplication, createDate, updateDate); |
128 | 119 |
} |
129 |
}//DocumentImple |
|
120 |
|
|
121 |
} |
Also available in: Unified diff
Clean up comments and remove extra includes