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

Examples of org.apache.jackrabbit.mongomk.impl.action.FetchNodesActionNew


    public String execute() throws Exception {
        MongoCommit fromCommit = new FetchCommitAction(
                nodeStore, fromRevision).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));

        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


        return node;
    }

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

    public Boolean execute() throws Exception {
        if (revisionId == null) {
            revisionId = new GetHeadRevisionCommand(nodeStore).execute();
        }

        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

Related Classes of org.apache.jackrabbit.mongomk.impl.action.FetchNodesActionNew

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.