Examples of RetentionRegistry


Examples of org.apache.jackrabbit.core.retention.RetentionRegistry

        }
    }

    public void testSetRetentionPolicy() throws RepositoryException, NotExecutableException {
        SessionImpl s = (SessionImpl) helper.getSuperuserSession();
        RetentionRegistry re = s.getRetentionRegistry();
        try {
            retentionMgr.setRetentionPolicy(childN2.getPath(), getApplicableRetentionPolicy("test2"));
            // retention must not be effective yet
            assertFalse(re.hasEffectiveRetention(s.getQPath(childN2.getPath()), false));

            superuser.save();
            assertTrue(re.hasEffectiveRetention(s.getQPath(childN2.getPath()), false));

        } finally {
            s.logout();

            retentionMgr.removeRetentionPolicy(childN2.getPath());
View Full Code Here

Examples of org.apache.jackrabbit.core.retention.RetentionRegistry

        }
    }

    public void testChangeRetentionPolicy() throws RepositoryException, NotExecutableException {
        SessionImpl s = (SessionImpl) helper.getSuperuserSession();
        RetentionRegistry re = s.getRetentionRegistry();
        try {
            retentionMgr.setRetentionPolicy(childN2.getPath(), getApplicableRetentionPolicy("test2"));
            superuser.save();
            retentionMgr.setRetentionPolicy(childN2.getPath(), getApplicableRetentionPolicy("test3"));
            superuser.save();

            assertTrue(re.hasEffectiveRetention(s.getQPath(childN2.getPath()), false));

        } finally {
            s.logout();

            retentionMgr.removeRetentionPolicy(childN2.getPath());
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.