Package javax.jcr

Examples of javax.jcr.Item.refresh()


                            if (items.isEmpty()) {
                                return 0L;
                            }
                            Item item = items.get(rnd.nextInt(items.size()));
                            long t1 = System.currentTimeMillis();
                            item.refresh(rnd.nextBoolean());
                            long t2 = System.currentTimeMillis();
                            return t2 - t1;
                        }

                        @Override
View Full Code Here


                            if (items.isEmpty()) {
                                return 0L;
                            }
                            Item item = items.get(rnd.nextInt(items.size()));
                            long t1 = System.currentTimeMillis();
                            item.refresh(rnd.nextBoolean());
                            long t2 = System.currentTimeMillis();
                            return t2 - t1;
                        }

                        @Override
View Full Code Here

            if (plcs.length > 0) {
                acMgr.removePolicy(path, plcs[0]);
                assertTrue("After removing a policy the node must be marked modified.", item.isModified());
            }
        } finally {
            item.refresh(false);
        }
    }

    public void testNullPolicyOnNewNode() throws NotExecutableException, RepositoryException, AccessDeniedException {
        Node n;
View Full Code Here

            if (plcs.length > 0) {
                acMgr.removePolicy(path, plcs[0]);
                assertTrue("After removing a policy the node must be marked modified.", item.isModified());
            }
        } finally {
            item.refresh(false);
        }
    }

    public void testNullPolicyOnNewNode() throws NotExecutableException, RepositoryException, AccessDeniedException {
        Node n;
View Full Code Here

                            if (items.isEmpty()) {
                                return 0L;
                            }
                            Item item = items.get(rnd.nextInt(items.size()));
                            long t1 = System.currentTimeMillis();
                            item.refresh(rnd.nextBoolean());
                            long t2 = System.currentTimeMillis();
                            return t2 - t1;
                        }

                        @Override
View Full Code Here

            if (plcs.length > 0) {
                acMgr.removePolicy(path, plcs[0]);
                assertTrue("After removing a policy the node must be marked modified.", item.isModified());
            }
        } finally {
            item.refresh(false);
        }
    }

    public void testNullPolicyOnNewNode() throws NotExecutableException, RepositoryException, AccessDeniedException {
        Node n;
View Full Code Here

        if (path == null) {
            Session s = CommandHelper.getSession(ctx);
            s.refresh(keepChanges);
        } else {
            Item i = CommandHelper.getItem(ctx, path);
            i.refresh(keepChanges);
        }

        return false;
    }
View Full Code Here

            if (plcs.length > 0) {
                acMgr.removePolicy(path, plcs[0]);
                assertTrue("After removing a policy the node must be marked modified.", item.isModified());
            }
        } finally {
            item.refresh(false);
        }
    }

    public void testNullPolicyOnNewNode() throws NotExecutableException, RepositoryException, AccessDeniedException {
        Node n;
View Full Code Here

            if (plcs.length > 0) {
                acMgr.removePolicy(path, plcs[0]);
                assertTrue("After removing a policy the node must be marked modified.", item.isModified());
            }
        } finally {
            item.refresh(false);
        }
    }

    public void testNullPolicyOnNewNode() throws NotExecutableException, RepositoryException, AccessDeniedException {
        Node n;
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.