Examples of ZombieHierarchyManager


Examples of org.apache.jackrabbit.core.ZombieHierarchyManager

     * or removed (i.e. moved to the attic).
     *
     * @return an attic-aware hierarchy manager
     */
    public HierarchyManager getAtticAwareHierarchyMgr() {
        return new ZombieHierarchyManager(hierMgr, this, getAttic());
    }
View Full Code Here

Examples of org.apache.jackrabbit.core.ZombieHierarchyManager

     */
    public Iterable<ItemState> getDescendantTransientItemStatesInAttic(
            ItemId id) throws RepositoryException {
        return getDescendantItemStates(
                id, atticStore,
                new ZombieHierarchyManager(hierMgr, this, getAttic()));
    }
View Full Code Here

Examples of org.apache.jackrabbit.core.ZombieHierarchyManager

                               NamespaceResolver resolver) {
        super(rootNodeId,
                new ChangeLogItemStateManager(manager, changes),
                resolver);
        zombieHierMgr =
                new ZombieHierarchyManager(rootNodeId, provider,
                        new AtticItemStateManager(changes), resolver);
    }
View Full Code Here

Examples of org.apache.jackrabbit.core.ZombieHierarchyManager

        // build ordered collection of descendant transient states in attic
        // sorted by decreasing relative depth

        // use a special attic-aware hierarchy manager
        ZombieHierarchyManager zombieHierMgr =
                new ZombieHierarchyManager(hierMgr.getRootNodeId(),
                        this,
                        getAttic(),
                        hierMgr.getNamespaceResolver());

        // use an array of lists to group the descendants by relative depth;
        // the depth is used as array index
        List[] la = new List[10];
        try {
            Iterator iter = atticStore.values().iterator();
            while (iter.hasNext()) {
                ItemState state = (ItemState) iter.next();
                // determine relative depth: > 0 means it's a descendant
                int depth = zombieHierMgr.getRelativeDepth(parentId, state.getId());
                if (depth < 1) {
                    // not a descendant
                    continue;
                }
View Full Code Here

Examples of org.apache.jackrabbit.core.ZombieHierarchyManager

     */
    ChangeLogBasedHierarchyMgr(NodeId rootNodeId,
                               ItemStateManager manager,
                               ChangeLog changes) {
        super(rootNodeId, new ChangeLogItemStateManager(manager, changes));
        zombieHierMgr = new ZombieHierarchyManager(
                this, provider, new AtticItemStateManager(changes));
    }
View Full Code Here

Examples of org.apache.jackrabbit.core.ZombieHierarchyManager

     * or removed (i.e. moved to the attic).
     *
     * @return an attic-aware hierarchy manager
     */
    public HierarchyManager getAtticAwareHierarchyMgr() {
        return new ZombieHierarchyManager(hierMgr, this, getAttic());
    }
View Full Code Here

Examples of org.apache.jackrabbit.core.ZombieHierarchyManager

        // build ordered collection of descendant transient states in attic
        // sorted by decreasing relative depth

        // use a special attic-aware hierarchy manager
        ZombieHierarchyManager zombieHierMgr =
            new ZombieHierarchyManager(hierMgr, this, getAttic());

        // use an array of lists to group the descendants by relative depth;
        // the depth is used as array index
        List[] la = new List[10];
        try {
            for (ItemState state : atticStore.values()) {
                // determine relative depth: > 0 means it's a descendant
                //int depth = zombieHierMgr.getRelativeDepth(parentId, state.getId());
                int depth = zombieHierMgr.getShareRelativeDepth(parentId, state.getId());
                if (depth < 1) {
                    // not a descendant
                    continue;
                }
View Full Code Here

Examples of org.apache.jackrabbit.core.ZombieHierarchyManager

     * or removed (i.e. moved to the attic).
     *
     * @return an attic-aware hierarchy manager
     */
    public HierarchyManager getAtticAwareHierarchyMgr() {
        return new ZombieHierarchyManager(hierMgr, this, getAttic());
    }
View Full Code Here

Examples of org.apache.jackrabbit.core.ZombieHierarchyManager

     */
    public Iterable<ItemState> getDescendantTransientItemStatesInAttic(
            ItemId id) throws RepositoryException {
        return getDescendantItemStates(
                id, atticStore,
                new ZombieHierarchyManager(hierMgr, this, getAttic()));
    }
View Full Code Here

Examples of org.apache.jackrabbit.core.ZombieHierarchyManager

        // build ordered collection of descendant transient states in attic
        // sorted by decreasing relative depth

        // use a special attic-aware hierarchy manager
        ZombieHierarchyManager zombieHierMgr =
                new ZombieHierarchyManager(hierMgr.getRootNodeId(),
                        this,
                        getAttic(),
                        hierMgr.getNamespaceResolver());

        // use an array of lists to group the descendants by relative depth;
        // the depth is used as array index
        List[] la = new List[10];
        try {
            Iterator iter = atticStore.values().iterator();
            while (iter.hasNext()) {
                ItemState state = (ItemState) iter.next();
                // determine relative depth: > 0 means it's a descendant
                int depth = zombieHierMgr.getRelativeDepth(parentId, state.getId());
                if (depth < 1) {
                    // not a descendant
                    continue;
                }
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.