Package org.apache.jackrabbit.mongomk.impl.action

Examples of org.apache.jackrabbit.mongomk.impl.action.FetchNodesActionNew.execute()


        MongoCommit toCommit = new FetchCommitAction(
                nodeStore, toRevision).execute();
        FetchNodesActionNew action = new FetchNodesActionNew(
                nodeStore, path, 0, fromRevision);
        action.setBranchId(fromCommit.getBranchId());
        NodeImpl fromNode = MongoNode.toNode(action.execute().get(path));
        action = new FetchNodesActionNew(
                nodeStore, path, 0, toRevision);
        action.setBranchId(toCommit.getBranchId());
        NodeImpl toNode = MongoNode.toNode(action.execute().get(path));
View Full Code Here


        action.setBranchId(fromCommit.getBranchId());
        NodeImpl fromNode = MongoNode.toNode(action.execute().get(path));
        action = new FetchNodesActionNew(
                nodeStore, path, 0, toRevision);
        action.setBranchId(toCommit.getBranchId());
        NodeImpl toNode = MongoNode.toNode(action.execute().get(path));

        String diff = "";
        if (!fromNode.getRevisionId().equals(toNode.getRevisionId())) {
            // diff of node at given path
            DiffBuilder diffBuilder = new DiffBuilder(MongoUtil.wrap(fromNode),
View Full Code Here

    }

    private void readNodesByPath() {
        FetchNodesActionNew query = new FetchNodesActionNew(nodeStore, path, depth, revisionId);
        query.setBranchId(branchId);
        pathAndNodeMap = query.execute();
    }

    private boolean verifyNodeHierarchy() {
        boolean verified = verifyNodeHierarchyRec(path, 0);
        if (!verified) {
View Full Code Here

        }

        FetchNodesActionNew action = new FetchNodesActionNew(nodeStore, path, 0, revisionId);
        action.setBranchId(branchId);

        Map<String, MongoNode> pathAndNodeMap = action.execute();
        node = pathAndNodeMap.get(this.path);
        if (node != null && node.isDeleted()) {
            node = null;
        }
        return node != null;
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.