Package org.apache.jackrabbit.mongomk.model

Examples of org.apache.jackrabbit.mongomk.model.CommitCommandInstructionVisitor


        commitMongo.setAffectedPaths(new LinkedList<String>(affectedPaths));
        commitMongo.setBaseRevId(headMongo.getHeadRevisionId());
    }

    private void createMongoNodes() throws Exception {
        CommitCommandInstructionVisitor visitor = new CommitCommandInstructionVisitor(mongoConnection,
                headMongo.getHeadRevisionId());
        for (Instruction instruction : commit.getInstructions()) {
            instruction.accept(visitor);
        }

        Map<String, NodeMongo> pathNodeMap = visitor.getPathNodeMap();

        affectedPaths = pathNodeMap.keySet(); // TODO Original copies and moved nodes must be included!
        nodeMongos = new HashSet<NodeMongo>(pathNodeMap.values());
        for (NodeMongo nodeMongo : nodeMongos) {
            nodeMongo.setRevisionId(revisionId);
View Full Code Here

TOP

Related Classes of org.apache.jackrabbit.mongomk.model.CommitCommandInstructionVisitor

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.