Examples of storeMetadata()


Examples of org.exist.storage.DBBroker.storeMetadata()

            collection = resource.getCollection();

            txn = tm.beginTransaction();
           
            method.modify(resource);
                  broker.storeMetadata(txn, resource);
           
            tm.commit(txn);
          }
        }
      } catch (final IOException e) {
View Full Code Here

Examples of org.exist.storage.DBBroker.storeMetadata()

            document.setUserLock(subject);

            // Make token persistant
            txnManager = brokerPool.getTransactionManager();
            txn = txnManager.beginTransaction();
            broker.storeMetadata(txn, document);
            txnManager.commit(txn);

            if (LOG.isDebugEnabled()) {
                LOG.debug("Successfully retrieved token");
            }
View Full Code Here

Examples of org.exist.storage.DBBroker.storeMetadata()

            // Update document
            document.setUserLock(null);
            document.getMetadata().setLockToken(null);

            // Make it persistant
            broker.storeMetadata(txn, document);
            txnManager.commit(txn);

        } catch (EXistException | PermissionDeniedException e) {
            txnManager.abort(txn);
            LOG.error(e);
View Full Code Here

Examples of org.exist.storage.DBBroker.storeMetadata()

            } else {
                // set new mime-type
                doc.getMetadata().setMimeType(newMimeType.getName());
               
                // store meta data into database
                broker.storeMetadata(txn, doc);
               
                // commit changes
                txnManager.commit(txn);
            }
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.