Examples of CollectionConfigurationManager


Examples of org.exist.collections.CollectionConfigurationManager

 
              root = broker.getOrCreateCollection(txn, col1uri);
              assertNotNull(root);
              broker.saveCollection(txn, root);
 
              CollectionConfigurationManager mgr = pool.getConfigurationManager();
              mgr.addConfiguration(txn, broker, root, COLLECTION_CONFIG);
 
              System.out.println("store "+doc1uri);
              IndexInfo info = root.validateXMLResource(txn, broker, doc1uri.lastSegment(), XML1);
              assertNotNull(info);
              root.store(txn, broker, info, XML1, false);
 
              txnManager.commit(txn);
          } catch (Exception e) {
              e.printStackTrace();
              txnManager.abort(txn);
              fail(e.getMessage());
          }
           
        Metas docMD = md.getMetas(doc1uri);
        assertNotNull(docMD);
       
        String uuid = docMD.getUUID();

            try {
              txn = txnManager.beginTransaction();
              assertNotNull(txn);
              System.out.println("Transaction started ...");
 
              root = broker.getOrCreateCollection(txn, col1uri);
              assertNotNull(root);
              broker.saveCollection(txn, root);
 
              CollectionConfigurationManager mgr = pool.getConfigurationManager();
              mgr.addConfiguration(txn, broker, root, COLLECTION_CONFIG);
 
              System.out.println("store "+doc1uri);
              IndexInfo info = root.validateXMLResource(txn, broker, doc1uri.lastSegment(), wrongXML);
              assertNotNull(info);
              root.store(txn, broker, info, wrongXML, false);
View Full Code Here

Examples of org.exist.collections.CollectionConfigurationManager

            Collection test2 = broker.getOrCreateCollection(txn, col2uri);
            assertNotNull(test2);
            broker.saveCollection(txn, test2);

            CollectionConfigurationManager mgr = pool.getConfigurationManager();
            mgr.addConfiguration(txn, broker, root, COLLECTION_CONFIG);

            doc1 = storeDocument(txn, broker, root, doc1uri, XML1);
            doc2 = storeDocument(txn, broker, root, doc2uri, XML2);

            System.out.println("store "+doc5uri);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.