Project

General

Profile

« Previous | Next » 

Revision 640

Added by bojilova almost 24 years ago

Use the new property "accessdoctype" to check if this is access file.
If it is, run AccessControlList for wirting into xml_access and xml_relation tables.
This is the thread that writes XML Index but afterwards.

View differences:

src/edu/ucsb/nceas/metacat/DBSAXHandler.java
219 219
        DocumentImpl xmldoc = new DocumentImpl(dbconn, docid);
220 220
        RelationHandler rth = new RelationHandler(xmldoc, dbconn);
221 221
      } 
222
      else if ( doctype.equals("-//NCEAS//eml-access//EN") ) 
222
      else if ( doctype.equals(util.getOption("accessdoctype")) ) 
223 223
      {
224 224
        DocumentImpl xmldoc = new DocumentImpl(dbconn, docid);
225 225
        String xml = xmldoc.toString();

Also available in: Unified diff