Examples of addChildNodeEntry()


Examples of org.apache.jackrabbit.core.state.NodeState.addChildNodeEntry()

            // but preserving original position
            state.removeAllChildNodeEntries();
            for (ChildNodeEntry cne : cneList) {
                if (cne.getId().equals(id)) {
                    // replace entry with different name
                    state.addChildNodeEntry(nodeName, id);
                } else {
                    state.addChildNodeEntry(cne.getName(), cne.getId());
                }
            }
        }
View Full Code Here

Examples of org.apache.jackrabbit.core.state.NodeState.addChildNodeEntry()

            for (ChildNodeEntry cne : cneList) {
                if (cne.getId().equals(id)) {
                    // replace entry with different name
                    state.addChildNodeEntry(nodeName, id);
                } else {
                    state.addChildNodeEntry(cne.getName(), cne.getId());
                }
            }
        }

        return node;
View Full Code Here

Examples of org.apache.jackrabbit.core.state.NodeState.addChildNodeEntry()

        // (6) modify the state of 'this', i.e. the parent node
        NodeId srcId = src.getNodeId();
        thisState = (NodeState) getOrCreateTransientItemState();
        // add new child node entry
        thisState.addChildNodeEntry(name, srcId);

        return itemMgr.getNode(srcId, parentId);
    }

    // -----------------------------------------------------------------< Item >
View Full Code Here

Examples of org.apache.jackrabbit.core.state.NodeState.addChildNodeEntry()

    private void assertCreateUpdateDelete(PersistenceManager manager)
            throws Exception {
        NodeState node = new NodeState(
                NODE_ID, TEST, RepositoryImpl.ROOT_NODE_ID,
                ItemState.STATUS_NEW, true);
        node.addChildNodeEntry(TEST, CHILD_ID);
        node.addPropertyName(NameConstants.JCR_PRIMARYTYPE);
        node.addPropertyName(TEST);

        NodeState child = new NodeState(
                CHILD_ID, TEST, NODE_ID, ItemState.STATUS_NEW, true);
View Full Code Here

Examples of org.apache.jackrabbit.core.state.NodeState.addChildNodeEntry()

            // but preserving original position
            state.removeAllChildNodeEntries();
            for (ChildNodeEntry cne : cneList) {
                if (cne.getId().equals(id)) {
                    // replace entry with different name
                    state.addChildNodeEntry(nodeName, id);
                } else {
                    state.addChildNodeEntry(cne.getName(), cne.getId());
                }
            }
        }
View Full Code Here

Examples of org.apache.jackrabbit.core.state.NodeState.addChildNodeEntry()

            for (ChildNodeEntry cne : cneList) {
                if (cne.getId().equals(id)) {
                    // replace entry with different name
                    state.addChildNodeEntry(nodeName, id);
                } else {
                    state.addChildNodeEntry(cne.getName(), cne.getId());
                }
            }
        }

        return node;
View Full Code Here

Examples of org.apache.jackrabbit.core.state.NodeState.addChildNodeEntry()

        // (6) modify the state of 'this', i.e. the parent node
        NodeId srcId = src.getNodeId();
        thisState = (NodeState) getOrCreateTransientItemState();
        // add new child node entry
        thisState.addChildNodeEntry(name, srcId);

        return itemMgr.getNode(srcId, parentId);
    }

    // -----------------------------------------------------------------< Item >
View Full Code Here

Examples of org.apache.jackrabbit.core.state.NodeState.addChildNodeEntry()

        }

        // modify the state of 'this', i.e. the parent node
        NodeState thisState = (NodeState) getOrCreateTransientItemState();
        // add new child node entry
        thisState.addChildNodeEntry(name, nodeState.getNodeId());

        // add 'auto-create' properties defined in node type
        for (PropertyDefinition aPda : nodeType.getAutoCreatedPropertyDefinitions()) {
            PropertyDefinitionImpl pd = (PropertyDefinitionImpl) aPda;
            node.createChildProperty(pd.unwrap().getName(), pd.getRequiredType(), pd);
View Full Code Here

Examples of org.apache.jackrabbit.core.state.NodeState.addChildNodeEntry()

    private void assertCreateUpdateDelete(PersistenceManager manager)
            throws Exception {
        NodeState node = new NodeState(
                NODE_ID, TEST, RepositoryImpl.ROOT_NODE_ID,
                ItemState.STATUS_NEW, true);
        node.addChildNodeEntry(TEST, CHILD_ID);
        node.addPropertyName(NameConstants.JCR_PRIMARYTYPE);
        node.addPropertyName(TEST);

        NodeState child = new NodeState(
                CHILD_ID, TEST, NODE_ID, ItemState.STATUS_NEW, true);
View Full Code Here

Examples of org.apache.jackrabbit.core.state.NodeState.addChildNodeEntry()

            // 1. remove child node entry from old parent
            if (srcParentState.removeChildNodeEntry(targetId)) {
                // 2. re-parent target node
                targetState.setParentId(destParentNode.getNodeId());
                // 3. add child node entry to new parent
                destParentState.addChildNodeEntry(destPath.getName(), targetId);
            }
        }

        return this;
    }
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.