Project

General

Profile

« Previous | Next » 

Revision 7128

add a parameter for optionally writing EML-embedded access control rules to the Metacat DB.
https://redmine.dataone.org/issues/2584
https://redmine.dataone.org/issues/2583

View differences:

Eml200SAXHandler.java
331 331
     */
332 332
    public Eml200SAXHandler(DBConnection conn, String action, String docid,
333 333
            String revision, String user, String[] groups, String pub,
334
            int serverCode, Date createDate, Date updateDate) throws SAXException
334
            int serverCode, Date createDate, Date updateDate, boolean writeAccessRules) throws SAXException
335 335
    {
336 336
        super(conn, action, docid, revision, user, groups, pub, 
337
                serverCode, createDate, updateDate);
337
                serverCode, createDate, updateDate, writeAccessRules);
338 338
        // Get the unchangable subtrees (user doesn't have write permission)
339 339
        try
340 340
        {
......
1690 1690
          // info into xml_accesssubtree about the top access, additional access
1691 1691
          // and some third place access modules which are referenced by top
1692 1692
          // level or additional level
1693
          writeAccessRuleToDB();
1693
        	if (writeAccessRules ) {
1694
        		writeAccessRuleToDB();
1695
        	}
1694 1696

  
1695 1697
          //delete relation table
1696 1698
          deleteRelations();

Also available in: Unified diff