Package org.exist.collections

Examples of org.exist.collections.Collection.store()


                    collection.release(Lock.WRITE_LOCK);
                }
            }
           
            if (uri != null || res.inputSource!=null) {
                collection.store(txn, broker, info, (uri!=null) ? new InputSource(uri):res.inputSource, false);
            } else if (res.root != null) {
                collection.store(txn, broker, info, res.root, false);
            } else {
                collection.store(txn, broker, info, res.content, false);
            }
View Full Code Here


            }
           
            if (uri != null || res.inputSource!=null) {
                collection.store(txn, broker, info, (uri!=null) ? new InputSource(uri):res.inputSource, false);
            } else if (res.root != null) {
                collection.store(txn, broker, info, res.root, false);
            } else {
                collection.store(txn, broker, info, res.content, false);
            }
           
            //Notice : the document should now have its update lock released
View Full Code Here

            if (uri != null || res.inputSource!=null) {
                collection.store(txn, broker, info, (uri!=null) ? new InputSource(uri):res.inputSource, false);
            } else if (res.root != null) {
                collection.store(txn, broker, info, res.root, false);
            } else {
                collection.store(txn, broker, info, res.content, false);
            }
           
            //Notice : the document should now have its update lock released
            transact.commit(txn);
            collection.deleteObservers();
View Full Code Here

         
          is.close();
          info.getDocument().getMetadata().setMimeType(contentType);
          is = new FileInputStream(tempFile);
         
          collection.store(transaction, broker, info,
              new InputSource(new InputStreamReader(is, charset)), false);
         
          is.close();
        } else {
          final FileInputStream is = new FileInputStream(tempFile);
View Full Code Here

          if (entryDoc != null)
            {throw new PermissionDeniedException("Entry with " + id + " already exists.");}

          final IndexInfo info = collection.validateXMLResource(transaction, broker, entryURI, mediaEntry);
          // TODO : We should probably unlock the collection here
          collection.store(transaction, broker, info, mediaEntry, false);
          // Update the updated element
          DOMDB.replaceTextElement(
              transaction, feedRoot, Atom.NAMESPACE_STRING, "updated",
              currentDateTime, true);
         
View Full Code Here

         
          info.getDocument().getMetadata().setMimeType(contentType);
         
          is = new FileInputStream(tempFile);
         
          collection.store(transaction, broker, info,
            new InputSource(new InputStreamReader(is, charset)), false);
         
          is.close();
        } else {
          final FileInputStream is = new FileInputStream(tempFile);
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.