Examples of revokeGroupAccess()


Examples of org.apache.jetspeed.om.registry.SecurityEntry.revokeGroupAccess()

            SecurityEntry se = (SecurityEntry)Registry.getEntry(Registry.SECURITY, "test");
            assertSimpleConstraints(se);
           
            SecurityEntry se2 = (SecurityEntry)Registry.getEntry(Registry.SECURITY, "test");
            assertSimpleConstraints(se2);
            se2.revokeGroupAccess("edit", "accounting");
            se2.grantGroupAccess("view", "accounting");
           
            Registry.saveEntry(Registry.SECURITY, (RegistryEntry)se2);
            Registry.removeEntry(Registry.SECURITY, "test");
           
View Full Code Here

Examples of org.apache.jetspeed.om.registry.SecurityEntry.revokeGroupAccess()

        assertTrue("group-assert: view/managers", entry.allowsGroup("managers", "view"));
        assertTrue("group-assert: edit/managers", entry.allowsGroup("managers", "edit"));
       
        assertTrue("false group-assert: edit/hackers", !entry.allowsGroup("hackers", "edit"));
       
        entry.revokeGroupAccess("view", "hackers");

        assertTrue("false group-revoked-assert: view/hackers", !entry.allowsGroup("hackers", "view"));
        assertTrue("group-assert: view/users", entry.allowsGroup("users", "view"));

        assertTrue("group-specific: view/managers", entry.allowsSpecificGroup("view", "managers"));
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.