Examples of removeChildNodeEntry()


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

        } else {
            // do move:
            // 1. remove child node entry from old parent
            NodeState srcParentState =
                    (NodeState) srcParentNode.getOrCreateTransientItemState();
            srcParentState.removeChildNodeEntry(srcName.getName(), index);
            // 2. re-parent target node
            NodeState targetState =
                    (NodeState) targetNode.getOrCreateTransientItemState();
            targetState.setParentId(destParentNode.getNodeId());
            // 3. add child node entry to new parent
View Full Code Here

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

        NodeId childId = entry.getId();
        NodeImpl childNode = itemMgr.getNode(childId, getNodeId());
        childNode.onRemove(getNodeId());

        // remove the child node entry
        if (!thisState.removeChildNodeEntry(nodeName, index)) {
            String msg = "failed to remove child " + nodeName + " of " + this;
            log.debug(msg);
            throw new RepositoryException(msg);
        }
    }
View Full Code Here

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

                NodeId childId = entry.getId();
                //NodeImpl childNode = (NodeImpl) itemMgr.getItem(childId);
                NodeImpl childNode = itemMgr.getNode(childId, getNodeId());
                childNode.onRemove(thisState.getNodeId());
                // remove the child node entry
                thisState.removeChildNodeEntry(entry.getName(), entry.getIndex());
            }
        }

        // remove properties
        // use temp set to avoid ConcurrentModificationException
View Full Code Here

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

        }
        // remove target
        recursiveRemoveNodeState(target);
        // remove child node entry from parent
        NodeState parent = getNodeState(parentId);
        parent.removeChildNodeEntry(target.getNodeId());
        // store parent
        stateMgr.store(parent);
    }

    /**
 
View Full Code Here

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

            // do move:
            // 1. remove child node entry from old parent
            NodeState srcParentState =
                    (NodeState) srcParentNode.getOrCreateTransientItemState();
            srcParentState.removeChildNodeEntry(srcName.getName(), index);
            // 2. re-parent target node
            NodeState targetState =
                    (NodeState) targetNode.getOrCreateTransientItemState();
            targetState.setParentId(destParentNode.getNodeId());
            // 3. add child node entry to new parent
View Full Code Here

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

            NodeState oldParent = (NodeState) getItemState(child.getParentId());
            ChildNodeEntry cne = oldParent.getChildNodeEntry(child.getNodeId());
            if (cne == null) {
                throw new ItemStateException(child.getNodeId().toString());
            }
            oldParent.removeChildNodeEntry(cne.getName(), cne.getIndex());
            child.setParentId(newParent.getNodeId());
            newParent.addChildNodeEntry(toName(name), child.getNodeId());
        }

        /**
 
View Full Code Here

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

            if (child.isShareable()) {
                if (child.removeShare(parent.getNodeId()) == 0) {
                    child.setParentId(null);
                }
            }
            parent.removeChildNodeEntry(child.getNodeId());
        }

        /**
         * Rename a node.
         *
 
View Full Code Here

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

        }
        // remove target
        recursiveRemoveNodeState(target);
        // remove child node entry from parent
        NodeState parent = getNodeState(parentId);
        parent.removeChildNodeEntry(target.getNodeId());
        // store parent
        stateMgr.store(parent);
    }

    /**
 
View Full Code Here

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

                throw e;
            }
        }

        // remove the child node entry
        if (!thisState.removeChildNodeEntry(childId)) {
            String msg = "failed to remove child " + childId + " of " + this;
            log.debug(msg);
            throw new RepositoryException(msg);
        }
    }
View Full Code Here

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

                    }
                    if (!ignoreError) {
                        throw e;
                    }
                }
                thisState.removeChildNodeEntry(childId);
            }
        }

        // remove properties
        // use temp set to avoid ConcurrentModificationException
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.