Package org.apache.jackrabbit.mongomk.impl.model.tree

Examples of org.apache.jackrabbit.mongomk.impl.model.tree.MongoNodeState


        for (String name : ourChanges.getRemovedProperties().keySet()) {
            stagedNode.getProperties().remove(name);
        }

        for (Map.Entry<String, NodeState> entry : ourChanges.getAddedChildNodes().entrySet()) {
            MongoNodeState nodeState = (MongoNodeState)entry.getValue();
            stagedNode.addChildNodeEntry(nodeState.unwrap());
        }
        for (Map.Entry<String, NodeState> entry : ourChanges.getChangedChildNodes().entrySet()) {
            if (!theirChanges.getChangedChildNodes().containsKey(entry.getKey())) {
                MongoNodeState nodeState = (MongoNodeState)entry.getValue();
                stagedNode.addChildNodeEntry(nodeState.unwrap());
            }
        }
        for (String name : ourChanges.getRemovedChildNodes().keySet()) {
            stagedNode.removeChildNodeEntry(name);
        }
View Full Code Here


            if (rootNode == null) {
                return null;
            }

            JsopBuilder builder = new JsopBuilder().object();
            JsonUtil.toJson(builder, new MongoNodeState(rootNode), depth, (int)offset, maxChildNodes, true, nodeFilter);
            return builder.endObject().toString();
        } catch (Exception e) {
            throw new MicroKernelException(e);
        }
    }
View Full Code Here

            throw new Exception("Invalid revision id: " + revisionId);
        }
    }

    public static NodeState wrap(Node node) {
        return node != null? new MongoNodeState(node) : null;
    }
View Full Code Here

TOP

Related Classes of org.apache.jackrabbit.mongomk.impl.model.tree.MongoNodeState

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.