Package org.exist.collections.triggers

Examples of org.exist.collections.triggers.DocumentTrigger


   */
  private void prepareTrigger(Txn transaction, DocumentImpl doc) throws TriggerException {
           
      final Collection col = doc.getCollection();
         
            final DocumentTrigger trigger = new DocumentTriggers(broker, col);
           
            trigger.beforeUpdateDocument(broker, transaction, doc);
            triggers.put(doc.getDocId(), trigger);
  }
View Full Code Here


   * @param doc  The document to trigger for
   *
   * @throws TriggerException
   */
  private void finishTrigger(Txn transaction, DocumentImpl doc) throws TriggerException {
        final DocumentTrigger trigger = triggers.get(doc.getDocId());
        if(trigger != null)
            {trigger.afterUpdateDocument(broker, transaction, doc);}
  }
View Full Code Here

  private void prepareTrigger(Txn transaction, DocumentImpl doc) throws TriggerException {

      final Collection col = doc.getCollection();
            final DBBroker broker = context.getBroker();
           
            final DocumentTrigger trigger = new DocumentTriggers(broker, col);
           
            //prepare the trigger
            trigger.beforeUpdateDocument(context.getBroker(), transaction, doc);
            triggers.put(doc.getDocId(), trigger);
  }
View Full Code Here

   *
   * @throws TriggerException
   */
  private void finishTrigger(Txn transaction, DocumentImpl doc) throws TriggerException {
            //finish the trigger
            final DocumentTrigger trigger = triggers.get(doc.getDocId());
            if(trigger != null) {
                trigger.afterUpdateDocument(context.getBroker(), transaction, doc);
            }
  }
View Full Code Here

TOP

Related Classes of org.exist.collections.triggers.DocumentTrigger

Copyright © 2018 www.massapicom. 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.