Examples of StoredNode


Examples of org.apache.jackrabbit.mk.model.StoredNode

                return entry.getName();
            }
            @Override
            public NodeState getNode() {
                try {
                    StoredNode child = provider.getNode(entry.getId());
                    return new StoredNodeAsState(child, provider);
                } catch (Exception e) {
                    throw new RuntimeException("Unexpected error", e);
                }
            }
View Full Code Here

Examples of org.apache.jackrabbit.mk.model.StoredNode

            if (callback != null) {
                callback.postPersist(this, token);
            }

            StoredNode snode = new StoredNode(id, node, this);
            cache.put(id, snode);

            PutTokenImpl pti = (PutTokenImpl) token;
            pti.updateLastModifed(snode);
            putTokens.put(pti, null);
View Full Code Here

Examples of org.apache.jackrabbit.mk.model.StoredNode

    // -----------------------------------------------------< RevisionProvider >

    public StoredNode getNode(final Id id) throws NotFoundException, Exception {
        verifyInitialized();

        StoredNode node = (StoredNode) cache.get(id,
                new Callable<StoredNode>() {
                    @Override
                    public StoredNode call() throws Exception {
                        StoredNode node = new StoredNode(id,
                                DefaultRevisionStore.this);
                        pm.readNode(node);
                        return node;
                    }
                });
View Full Code Here

Examples of org.apache.jackrabbit.mk.model.StoredNode

                return entry.getName();
            }
            @Override
            public NodeState getNode() {
                try {
                    StoredNode child = provider.getNode(entry.getId());
                    return new StoredNodeAsState(child, provider);
                } catch (Exception e) {
                    throw new RuntimeException("Unexpected error", e);
                }
            }
View Full Code Here

Examples of org.apache.jackrabbit.mk.model.StoredNode

            if (callback != null) {
                callback.postPersist(this, token);
            }

            StoredNode snode = new StoredNode(id, node, this);
            cache.put(id, snode);

            PutTokenImpl pti = (PutTokenImpl) token;
            pti.updateLastModifed(snode);
            putTokens.put(pti, null);
View Full Code Here

Examples of org.apache.jackrabbit.mk.model.StoredNode

    // -----------------------------------------------------< RevisionProvider >

    public StoredNode getNode(Id id) throws NotFoundException, Exception {
        verifyInitialized();

        StoredNode node = (StoredNode) cache.get(id);
        if (node != null) {
            return node;
        }

        node = new StoredNode(id, this);
        pm.readNode(node);

        cache.put(id, node);

        return node;
View Full Code Here

Examples of org.apache.jackrabbit.mk.model.StoredNode

        Thread.sleep(1);
        pm.start();
        pm.sweep();
       
        try {
            pm.readNode(new StoredNode(id, null));
            fail();
        } catch (NotFoundException e) {
            /* expected */
        }
    }
View Full Code Here

Examples of org.apache.jackrabbit.mk.model.StoredNode

        // old node must not be marked
        assertTrue(pm.markNode(id));
       
        pm.sweep();
        pm.readNode(new StoredNode(id, null));
    }
View Full Code Here

Examples of org.apache.jackrabbit.mk.model.StoredNode

       
        // new node must already be marked
        assertFalse(pm.markNode(id));

        pm.sweep();
        pm.readNode(new StoredNode(id, null));
    }
View Full Code Here

Examples of org.apache.jackrabbit.mk.model.StoredNode

            if (callback != null) {
                callback.postPersist(this, token);
            }

            StoredNode snode = new StoredNode(id, node, this);
            cache.put(id, snode);

            PutTokenImpl pti = (PutTokenImpl) token;
            pti.updateLastModifed(snode);
            putTokens.put(pti, null);
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.