Package org.apache.ace.useradmin.ui.editor

Examples of org.apache.ace.useradmin.ui.editor.UserAlreadyExistsException


        if (group == null) {
            throw new GroupNotFoundException(groupname);
        }
        Role newRole = m_useradmin.createRole(username, Role.USER);
        if (newRole == null) {
            throw new UserAlreadyExistsException(username);
        }
        User newUser = (User) newRole;
        newUser.getProperties().put("username", username);
        newUser.getCredentials().put("password", password);
        group.addMember(newUser);
View Full Code Here


        String newUsername = userDTO.getUsername();
        if (oldUsername == null || newUsername == null || "".equals(newUsername)) {
            throw new IllegalArgumentException("oldUsername and newUsername cannot be null or \"\" ");
        }
        if (newUsername.equals(oldUsername)) {
            throw new UserAlreadyExistsException(newUsername);
        }
        if (getUser(newUsername) != null) {
            throw new UserAlreadyExistsException(newUsername);
        }
        User user = getUser(oldUsername);
        if (user == null) {
            throw new UserNotFoundException(oldUsername);
        }
View Full Code Here

            throw new GroupNotFoundException(groupname);
        }

        Role newRole = m_useradmin.createRole(username, Role.USER);
        if (newRole == null) {
            throw new UserAlreadyExistsException(username);
        }

        User newUser = (User) newRole;
        newUser.getProperties().put("username", username);
        newUser.getCredentials().put("password", password);
View Full Code Here

        if (newUsername.equals(oldUsername)) {
            // Nothing needs to be done...
            return;
        }
        if (getUser(newUsername) != null) {
            throw new UserAlreadyExistsException(newUsername);
        }
        User user = getUser(oldUsername);
        if (user == null) {
            throw new UserNotFoundException(oldUsername);
        }
View Full Code Here

TOP

Related Classes of org.apache.ace.useradmin.ui.editor.UserAlreadyExistsException

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.