Package net.sf.archimede.observation

Examples of net.sf.archimede.observation.JcrObservationManager.addEventListener()


    try {
            Session session = (Session) DatabaseUtil.getSingleton().getDaoSession();
            Node folderNode = session.getNodeByUUID(folder.getId());
           
            JcrObservationManager jom = JcrObservationManager.getInstance();
            jom.addEventListener(el, Event.NODE_ADDED, folderNode.getPath(), true, null, null, false);
        } catch (Exception e) {
      throw new IndexationException("Folder with version id : " + folder.getId() + " could not be indexed", e);
    }
  }
}
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.