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

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


        if (getUser(newUsername) != null) {
            throw new UserAlreadyExistsException(newUsername);
        }
        User user = getUser(oldUsername);
        if (user == null) {
            throw new UserNotFoundException(oldUsername);
        }
        String group = getGroup(user).getName();
        if (group == null) {
            throw new GroupNotFoundException(null);
        }
View Full Code Here


        if (username == null || password == null || "".equals(password)) {
            throw new IllegalArgumentException("Username or Password cannot be null or \"\" ");
        }
        User user = getUser(username);
        if (user == null) {
            throw new UserNotFoundException(username);

        }
        user.getCredentials().put("password", password);
    }
View Full Code Here

        Group newGroup = (Group) m_useradmin.getRole(group);
        if (newGroup == null) {
            throw new GroupNotFoundException(group);
        }
        if (user == null) {
            throw new UserNotFoundException(username);
        }
        getGroup(user).removeMember(user);
        newGroup.addMember(user);
    }
View Full Code Here

        if (username == null) {
            throw new IllegalArgumentException("Username cannot be null or \"\" ");
        }
        User user = getUser(username);
        if (user == null) {
            throw new UserNotFoundException(username);
        }
        Group group = getGroup(user);
        group.removeMember(user);
        m_useradmin.removeRole(user.getName());
    }
View Full Code Here

            throw new IllegalArgumentException("Username and group cannot be null or \"\" ");
        }

        User user = getUser(username);
        if (user == null) {
            throw new UserNotFoundException(username);
        }

        Group oldGroup = (Group) m_useradmin.getRole(userDTO.getPreviousGroupname());
        if (oldGroup == null) {
            throw new GroupNotFoundException(group);
View Full Code Here

            throw new IllegalArgumentException("Username or Password cannot be null or \"\" ");
        }

        User user = getUser(username);
        if (user == null) {
            throw new UserNotFoundException(username);
        }

        user.getCredentials().put("password", password);
    }
View Full Code Here

        if (getUser(newUsername) != null) {
            throw new UserAlreadyExistsException(newUsername);
        }
        User user = getUser(oldUsername);
        if (user == null) {
            throw new UserNotFoundException(oldUsername);
        }
        Group group = getGroup(user);
        if (group == null) {
            throw new GroupNotFoundException(null);
        }
View Full Code Here

        if (username == null) {
            throw new IllegalArgumentException("Username cannot be null or \"\" ");
        }
        User user = getUser(username);
        if (user == null) {
            throw new UserNotFoundException(username);
        }
        Group group = getGroup(user);
        group.removeMember(user);
        m_useradmin.removeRole(user.getName());
    }
View Full Code Here

TOP

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

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.