Project

General

Profile

« Previous | Next » 

Revision 887

Added by berkley over 22 years ago

made it so we can now use multiple accessfilestypes and packagdfiletypes in the metacat.properties file. Also fixed a bug introduced when the 'http://' was removed from behind the server name in the loaddtd.sql script and the knb.xml file

View differences:

DBSAXHandler.java
262 262
      dbconn.commit();
263 263
         
264 264
      //if this is a package file
265
      if ( doctype.equals(util.getOption("packagedoctype")) )
265
      String packagedoctype = util.getOption("packagedoctype");
266
      Vector packagedoctypes = new Vector();
267
      
268
      packagedoctypes = MetaCatUtil.getOptionList(packagedoctype);
269
      
270
      if ( packagedoctypes.contains(doctype) )
266 271
      {
267 272
        // write the package info to xml_relation table
268 273
        RelationHandler rth = new RelationHandler(docid, dbconn);
......
274 279
        }
275 280
      }
276 281
      // if it is an access file
277
      else if ( doctype.equals(util.getOption("accessdoctype")) )
282
      else if ( MetaCatUtil.getOptionList(
283
                            util.getOption("accessdoctype")).contains(doctype) )
278 284
      {
279 285
        // write ACL for the package
280 286
        runAccessControlList(dbconn, docid);

Also available in: Unified diff