Package org.apache.jackrabbit.oak.plugins.identifier

Examples of org.apache.jackrabbit.oak.plugins.identifier.IdentifierTracker


            EventQueue queue, EventFactory factory,
            NodeState before, NodeState after) {
        this.queue = queue;
        this.factory = factory;
        this.pathTracker = new PathTracker();
        this.beforeIdentifierTracker = new IdentifierTracker(before);
        if (after.exists()) {
            this.identifierTracker = new IdentifierTracker(after);
        } else {
            this.identifierTracker = beforeIdentifierTracker;
        }
    }
View Full Code Here


                identifierTracker.getIdentifier()));
    }

    @Override
    public void nodeAdded(String name, NodeState after) {
        IdentifierTracker tracker =
                identifierTracker.getChildTracker(name, after);
        queue.addEvent(factory.nodeAdded(
                pathTracker.getPath(), name, tracker.getIdentifier()));
    }
View Full Code Here

                pathTracker.getPath(), name, tracker.getIdentifier()));
    }

    @Override
    public void nodeDeleted(String name, NodeState before) {
        IdentifierTracker tracker =
                beforeIdentifierTracker.getChildTracker(name, before);
        queue.addEvent(factory.nodeDeleted(
                pathTracker.getPath(), name, tracker.getIdentifier()));
    }
View Full Code Here

    }

    @Override
    public void nodeMoved(
            final String sourcePath, String name, NodeState moved) {
        IdentifierTracker tracker =
                identifierTracker.getChildTracker(name, moved);
        queue.addEvent(factory.nodeMoved(
                pathTracker.getPath(), name, tracker.getIdentifier(),
                sourcePath));
    }
View Full Code Here

    }

    @Override
    public void nodeReordered(
            final String destName, final String name, NodeState reordered) {
        IdentifierTracker tracker =
                identifierTracker.getChildTracker(name, reordered);
        queue.addEvent(factory.nodeReordered(
                pathTracker.getPath(), name, tracker.getIdentifier(),
                destName));
    }
View Full Code Here

            EventQueue queue, EventFactory factory,
            NodeState before, NodeState after) {
        this.queue = queue;
        this.factory = factory;
        this.pathTracker = new PathTracker();
        this.beforeIdentifierTracker = new IdentifierTracker(before);
        if (after.exists()) {
            this.identifierTracker = new IdentifierTracker(after);
        } else {
            this.identifierTracker = beforeIdentifierTracker;
        }
    }
View Full Code Here

        }
    }

    @Override
    public void nodeAdded(String name, NodeState after) {
        IdentifierTracker tracker =
                identifierTracker.getChildTracker(name, after);
        queue.addEvent(factory.nodeAdded(
                getPrimaryType(after), getMixinTypes(after),
                pathTracker.getPath(), name, tracker.getIdentifier()));
    }
View Full Code Here

                pathTracker.getPath(), name, tracker.getIdentifier()));
    }

    @Override
    public void nodeDeleted(String name, NodeState before) {
        IdentifierTracker tracker =
                beforeIdentifierTracker.getChildTracker(name, before);

        queue.addEvent(factory.nodeDeleted(
                getPrimaryType(before), getMixinTypes(before),
                pathTracker.getPath(), name, tracker.getIdentifier()));
    }
View Full Code Here

    }

    @Override
    public void nodeMoved(
            final String sourcePath, String name, NodeState moved) {
        IdentifierTracker tracker =
                identifierTracker.getChildTracker(name, moved);
        queue.addEvent(factory.nodeMoved(
                pathTracker.getPath(), name, tracker.getIdentifier(),
                sourcePath));
    }
View Full Code Here

    }

    @Override
    public void nodeReordered(
            final String destName, final String name, NodeState reordered) {
        IdentifierTracker tracker =
                identifierTracker.getChildTracker(name, reordered);
        queue.addEvent(factory.nodeReordered(
                pathTracker.getPath(), name, tracker.getIdentifier(),
                destName));
    }
View Full Code Here

TOP

Related Classes of org.apache.jackrabbit.oak.plugins.identifier.IdentifierTracker

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.