Package org.apache.lenya.ac.file

Examples of org.apache.lenya.ac.file.FileGroupManager


     * DOCUMENT ME!
     *
     * @throws AccessControlException DOCUMENT ME!
     */
    public final void testInstance() throws AccessControlException {
        FileGroupManager manager = null;
        File configDir = getAccreditablesDirectory();
        manager = FileGroupManager.instance(configDir);
        assertNotNull(manager);

        FileGroupManager anotherManager = null;
        anotherManager = FileGroupManager.instance(configDir);
        assertNotNull(anotherManager);
        assertEquals(manager, anotherManager);
    }
View Full Code Here


        editorGroup.save();
        adminGroup.save();
        adminGroup.add(user);
        user.save();

        FileGroupManager groupManager = null;
        UserType[] userTypes = { FileAccreditableManager.getDefaultUserType() };
        FileUserManager userManager = FileUserManager.instance(configDir, userTypes);
        assertNotNull(userManager);

        groupManager = FileGroupManager.instance(configDir);
        assertNotNull(groupManager);

        Group fetchedGroup = groupManager.getGroup(editorGroupId);
        assertTrue(editorGroup.equals(fetchedGroup));

        fetchedGroup = groupManager.getGroup(adminGroupId);
        assertTrue(adminGroup.equals(fetchedGroup));
    }
View Full Code Here

TOP

Related Classes of org.apache.lenya.ac.file.FileGroupManager

Copyright © 2018 www.massapicom. 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.