Project

General

Profile

« Previous | Next » 

Revision 1537

Added by Jing Tao about 21 years ago

Add code to handle access module to keep track startid and end id.

View differences:

src/edu/ucsb/nceas/metacat/EmlSAXHandler.java
425 425
        
426 426
       }
427 427
       // create access object 
428
        accessObject = new AccessSection();
428
       accessObject = new AccessSection();
429 429
         // set permission order
430 430
       String permOrder = currentNode.getAttribute(ORDER);
431 431
       accessObject.setPermissionOrder(permOrder);
432 432
       // set access id
433 433
       String accessId = currentNode.getAttribute(ID);
434 434
       accessObject.setAccessSectionId(accessId);
435
       accessObject.setAccessSectionStartNodeId(startNodeId);
435 436
       
436 437
     }
437 438
     // Set up a access rule for allow
......
804 805
     else if (currentTag.equals(ACCESS))
805 806
     {
806 807
       // finish parse a access setction and assign it to new one
808
       accessObject.setAccessSectionEndNodeId(endNodeId);
807 809
       AccessSection newAccessObject = accessObject;
808 810
       if (newAccessObject != null)
809 811
       {

Also available in: Unified diff