Examples of FileUserManager


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

     * @throws AccessControlException DOCUMENT ME!
     */
    final public void testInstance() throws AccessControlException {
        File configDir = getAccreditablesDirectory();
        UserType[] userTypes = { FileAccreditableManager.getDefaultUserType() };
        FileUserManager manager = FileUserManager.instance(configDir, userTypes);
        assertNotNull(manager);
    }
View Full Code Here

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

        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);
View Full Code Here

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

                userName,
                "Alice in Wonderland",
                "alice@wonderland.com",
                "secret");
        UserType[] userTypes = { FileAccreditableManager.getDefaultUserType() };
        FileUserManager manager = FileUserManager.instance(configDir, userTypes);
        assertNotNull(manager);
        manager.add(user);

        User otherUser = manager.getUser(userName);
        assertEquals(user, otherUser);
        assertEquals(user.getDescription(), otherUser.getDescription());
        assertEquals(user.getEmail(), otherUser.getEmail());
        assertEquals(user.getEncryptedPassword(), ((AbstractUser) otherUser).getEncryptedPassword());
    }
View Full Code Here

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

     * @throws AccessControlException of the loading fails
     */
    final public LDAPUser loadUser(String userName)
        throws AccessControlException {
        UserType[] userTypes = { FileAccreditableManager.getDefaultUserType() };
        FileUserManager manager = FileUserManager.instance(getAccreditablesDirectory(), userTypes);

        return (LDAPUser)manager.getUser(userName);
    }
View Full Code Here

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

     * @throws AccessControlException if an error occurs
     */
    final public void testInstance() throws AccessControlException {
        File configDir = getAccreditablesDirectory();
        UserType[] userTypes = { FileAccreditableManager.getDefaultUserType() };
        FileUserManager _manager = FileUserManager.instance(configDir, userTypes,
                getLogger());
        assertNotNull(_manager);
    }
View Full Code Here

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

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

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

        groupManager = FileGroupManager.instance(configDir, getLogger());
        assertNotNull(groupManager);
View Full Code Here

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

        File configDir = getAccreditablesDirectory();
        String userName = "testuser";
        FileUser user = new FileUser(configDir, userName, "Alice in Wonderland",
                "alice@wonderland.com", "secret");
        UserType[] userTypes = { FileAccreditableManager.getDefaultUserType() };
        FileUserManager _manager = FileUserManager.instance(configDir, userTypes,
                getLogger());
        assertNotNull(_manager);
        _manager.add(user);

        User otherUser = _manager.getUser(userName);
        assertEquals(user, otherUser);
        assertEquals(user.getDescription(), otherUser.getDescription());
        assertEquals(user.getEmail(), otherUser.getEmail());
        assertEquals(user.getEncryptedPassword(), ((AbstractUser) otherUser).getEncryptedPassword());
    }
View Full Code Here

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

     * @return an <code>LDAPUser</code>
     * @throws AccessControlException of the loading fails
     */
    final public LDAPUser loadUser(String userName) throws AccessControlException {
        UserType[] userTypes = { FileAccreditableManager.getDefaultUserType() };
        FileUserManager _manager = FileUserManager.instance(getAccreditablesDirectory(), userTypes,
                getLogger());

        return (LDAPUser) _manager.getUser(userName);
    }
View Full Code Here

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

     * @return an <code>LDAPUser</code>
     * @throws AccessControlException of the loading fails
     */
    final public LDAPUser loadUser(String userName) throws AccessControlException {
        UserType[] userTypes = { FileAccreditableManager.getDefaultUserType() };
        FileUserManager _manager = FileUserManager.instance(getAccreditableManager(),
                getAccreditablesDirectory(), userTypes, getLogger());

        return (LDAPUser) _manager.getUser(userName);
    }
View Full Code Here

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

        File configDir = accrMgr.getConfigurationDirectory();
        String userName = "aliceTest";
        FileUser user = new FileUser(getAccreditableManager().getUserManager(), getLogger(),
                userName, "Alice in Wonderland", "alice@wonderland.com", "secret");
        UserType[] userTypes = { FileAccreditableManager.getDefaultUserType() };
        FileUserManager _manager = FileUserManager.instance(getAccreditableManager(), configDir,
                userTypes, getLogger());
        assertNotNull(_manager);
        _manager.add(user);

        User otherUser = _manager.getUser(userName);
        assertEquals(user, otherUser);
        assertEquals(user.getDescription(), otherUser.getDescription());
        assertEquals(user.getEmail(), otherUser.getEmail());
        assertEquals(user.getEncryptedPassword(), ((AbstractUser) otherUser).getEncryptedPassword());
    }
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.