Examples of removeChildNode()


Examples of org.apache.jackrabbit.oak.spi.state.NodeBuilder.removeChildNode()

                    } else if (getBoolean(definition, REINDEX_PROPERTY_NAME)) {
                        definition.setProperty(REINDEX_PROPERTY_NAME, false);
                        // as we don't know the index content node name
                        // beforehand, we'll remove all child nodes
                        for (String rm : definition.getChildNodeNames()) {
                            definition.removeChildNode(rm);
                        }
                        reindex.add(editor);
                    } else {
                        editors.add(VisibleEditor.wrap(editor));
                    }
View Full Code Here

Examples of org.apache.jackrabbit.oak.spi.state.NodeBuilder.removeChildNode()

            return false;
        }

        NodeState sourceState = sourceBuilder.child(sourceName).getNodeState();
        targetBuilder.setChildNode(targetName, sourceState);
        sourceBuilder.removeChildNode(sourceName);

        setRoot(builder.getNodeState());
        return true;
    }
View Full Code Here

Examples of org.apache.jackrabbit.oak.spi.state.NodeBuilder.removeChildNode()

        type.setProperty(OAK_PROTECTED_PROPERTIES, empty, NAMES);
        type.setProperty(OAK_PROTECTED_CHILD_NODES, empty, NAMES);
        type.setProperty(OAK_HAS_PROTECTED_RESIDUAL_PROPERTIES, false, BOOLEAN);
        type.setProperty(OAK_HAS_PROTECTED_RESIDUAL_CHILD_NODES, false, BOOLEAN);
        type.setProperty(OAK_NAMED_SINGLE_VALUED_PROPERTIES, empty, NAMES);
        type.removeChildNode(OAK_NAMED_PROPERTY_DEFINITIONS);
        type.removeChildNode(OAK_RESIDUAL_PROPERTY_DEFINITIONS);
        type.removeChildNode(OAK_NAMED_CHILD_NODE_DEFINITIONS);
        type.removeChildNode(OAK_RESIDUAL_CHILD_NODE_DEFINITIONS);

        // + jcr:propertyDefinition (nt:propertyDefinition)
View Full Code Here

Examples of org.apache.jackrabbit.oak.spi.state.NodeBuilder.removeChildNode()

        type.setProperty(OAK_PROTECTED_CHILD_NODES, empty, NAMES);
        type.setProperty(OAK_HAS_PROTECTED_RESIDUAL_PROPERTIES, false, BOOLEAN);
        type.setProperty(OAK_HAS_PROTECTED_RESIDUAL_CHILD_NODES, false, BOOLEAN);
        type.setProperty(OAK_NAMED_SINGLE_VALUED_PROPERTIES, empty, NAMES);
        type.removeChildNode(OAK_NAMED_PROPERTY_DEFINITIONS);
        type.removeChildNode(OAK_RESIDUAL_PROPERTY_DEFINITIONS);
        type.removeChildNode(OAK_NAMED_CHILD_NODE_DEFINITIONS);
        type.removeChildNode(OAK_RESIDUAL_CHILD_NODE_DEFINITIONS);

        // + jcr:propertyDefinition (nt:propertyDefinition)
        //   = nt:propertyDefinition protected sns
View Full Code Here

Examples of org.apache.jackrabbit.oak.spi.state.NodeBuilder.removeChildNode()

        type.setProperty(OAK_HAS_PROTECTED_RESIDUAL_PROPERTIES, false, BOOLEAN);
        type.setProperty(OAK_HAS_PROTECTED_RESIDUAL_CHILD_NODES, false, BOOLEAN);
        type.setProperty(OAK_NAMED_SINGLE_VALUED_PROPERTIES, empty, NAMES);
        type.removeChildNode(OAK_NAMED_PROPERTY_DEFINITIONS);
        type.removeChildNode(OAK_RESIDUAL_PROPERTY_DEFINITIONS);
        type.removeChildNode(OAK_NAMED_CHILD_NODE_DEFINITIONS);
        type.removeChildNode(OAK_RESIDUAL_CHILD_NODE_DEFINITIONS);

        // + jcr:propertyDefinition (nt:propertyDefinition)
        //   = nt:propertyDefinition protected sns
        // + jcr:childNodeDefinition (nt:childNodeDefinition)
View Full Code Here

Examples of org.apache.jackrabbit.oak.spi.state.NodeBuilder.removeChildNode()

        type.setProperty(OAK_HAS_PROTECTED_RESIDUAL_CHILD_NODES, false, BOOLEAN);
        type.setProperty(OAK_NAMED_SINGLE_VALUED_PROPERTIES, empty, NAMES);
        type.removeChildNode(OAK_NAMED_PROPERTY_DEFINITIONS);
        type.removeChildNode(OAK_RESIDUAL_PROPERTY_DEFINITIONS);
        type.removeChildNode(OAK_NAMED_CHILD_NODE_DEFINITIONS);
        type.removeChildNode(OAK_RESIDUAL_CHILD_NODE_DEFINITIONS);

        // + jcr:propertyDefinition (nt:propertyDefinition)
        //   = nt:propertyDefinition protected sns
        // + jcr:childNodeDefinition (nt:childNodeDefinition)
        //   = nt:childNodeDefinition protected sns
View Full Code Here

Examples of org.apache.jackrabbit.oak.spi.state.NodeBuilder.removeChildNode()

            }
            else {
                addChild(target, name, ours);
            }
        }
        conflictMarker.removeChildNode(name);
    }

    private NodeBuilder getConflictMarker(String conflictName) {
        if (target.hasChildNode(CONFLICT)) {
            NodeBuilder conflict = target.child(CONFLICT);
View Full Code Here

Examples of org.apache.jackrabbit.oak.spi.state.NodeBuilder.removeChildNode()

        private void removeEntry(String name, NodeState ace) {
            PermissionEntry entry = createPermissionEntry(name, ace, parentBefore);
            NodeBuilder principalRoot = getPrincipalRoot(entry.principalName);
            if (principalRoot != null) {
                principalRoot.removeChildNode(entry.nodeName);
            }
        }

        private void updateEntry(String name, NodeState before, NodeState after) {
            if (processed.contains(name)) {
View Full Code Here

Examples of org.apache.jackrabbit.oak.spi.state.NodeBuilder.removeChildNode()

    @Override
    public boolean remove() {
        checkExists();
        if (parent != null && parent.hasChild(name)) {
            NodeBuilder parentBuilder = parent.nodeBuilder;
            parentBuilder.removeChildNode(name);
            if (parent.hasOrderableChildren()) {
                parentBuilder.setProperty(
                        MemoryPropertyBuilder.copy(STRING, parent.nodeBuilder.getProperty(OAK_CHILD_ORDER))
                                .removeValue(name)
                                .getPropertyState()
View Full Code Here

Examples of org.apache.jackrabbit.oak.spi.state.NodeBuilder.removeChildNode()

    @Test
    public void testAddRemovedNodeAgain() {
        NodeBuilder root = base.builder();

        root.removeChildNode("x");
        NodeBuilder x = root.child("x");

        x.child("q");
        assertTrue(x.hasChildNode("q"));
    }
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.