Package org.apache.jackrabbit.oak.plugins.observation.ChangeDispatcher

Examples of org.apache.jackrabbit.oak.plugins.observation.ChangeDispatcher.ChangeSet


                running = Thread.currentThread();
            }
        }

        try {
            ChangeSet changes = changeListener.getChanges();
            while (!stopping && changes != null) {
                EventFilter filter = filterRef.get();
                if (!(filter.excludeLocal() && changes.isLocal(contentSession))) {
                    String path = namePathMapper.getOakPath(filter.getPath());
                    ImmutableTree beforeTree = getTree(changes.getBeforeState(), path);
                    ImmutableTree afterTree = getTree(changes.getAfterState(), path);
                    EventGeneratingNodeStateDiff diff = new EventGeneratingNodeStateDiff(changes, beforeTree, afterTree);
                    SecureNodeStateDiff.compare(VisibleDiff.wrap(diff), beforeTree, afterTree);
                    if (!stopping) {
                        diff.sendEvents();
                    }
View Full Code Here


                running = Thread.currentThread();
            }
        }

        try {
            ChangeSet changes = changeListener.getChanges();
            while (!stopping && changes != null) {
                EventFilter filter = filterRef.get();
                if (!(filter.excludeLocal() && changes.isLocal(contentSession))) {
                    String path = namePathMapper.getOakPath(filter.getPath());
                    ImmutableTree beforeTree = getTree(changes.getBeforeState(), path);
                    ImmutableTree afterTree = getTree(changes.getAfterState(), path);
                    EventGeneratingNodeStateDiff diff = new EventGeneratingNodeStateDiff(changes, beforeTree, afterTree);
                    SecureNodeStateDiff.compare(VisibleDiff.wrap(diff), beforeTree, afterTree);
                    if (!stopping) {
                        diff.sendEvents();
                    }
View Full Code Here

TOP

Related Classes of org.apache.jackrabbit.oak.plugins.observation.ChangeDispatcher.ChangeSet

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.