Package org.apache.jackrabbit.oak.spi.state

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


        type.setProperty(OAK_HAS_PROTECTED_RESIDUAL_CHILD_NODES, false, BOOLEAN);
        type.setProperty(OAK_PROTECTED_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


        type.setProperty(OAK_PROTECTED_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

            return false;
        }

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

        setRoot(builder.getNodeState());
        return true;
    }
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.