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

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


        if (username == null || "".equals(username) || password == null || "".equals(password) || groupname == null || "".equals(groupname)) {
            throw new IllegalArgumentException("Username, password and groupname cannot be null or \"\"");
        }
        Group group = (Group) m_useradmin.getRole(groupname);
        if (group == null) {
            throw new GroupNotFoundException(groupname);
        }
        Role newRole = m_useradmin.createRole(username, Role.USER);
        if (newRole == null) {
            throw new UserAlreadyExistsException(username);
        }
View Full Code Here


        if (user == null) {
            throw new UserNotFoundException(oldUsername);
        }
        String group = getGroup(user).getName();
        if (group == null) {
            throw new GroupNotFoundException(null);
        }
        addUser(userDTO);
        removeUser(userDTO);
    }
View Full Code Here

            throw new IllegalArgumentException("Username and group cannot be null or \"\" ");
        }
        User user = getUser(username);
        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);
View Full Code Here

            throw new IllegalArgumentException("Username, password and groupname cannot be null or \"\"");
        }

        Group group = (Group) m_useradmin.getRole(groupname);
        if (group == null) {
            throw new GroupNotFoundException(groupname);
        }

        Role newRole = m_useradmin.createRole(username, Role.USER);
        if (newRole == null) {
            throw new UserAlreadyExistsException(username);
View Full Code Here

            throw new UserNotFoundException(username);
        }

        Group oldGroup = (Group) m_useradmin.getRole(userDTO.getPreviousGroupname());
        if (oldGroup == null) {
            throw new GroupNotFoundException(group);
        }

        Group newGroup = (Group) m_useradmin.getRole(group);
        if (newGroup == null) {
            throw new GroupNotFoundException(group);
        }

        oldGroup.removeMember(user);
        newGroup.addMember(user);
    }
View Full Code Here

        if (user == null) {
            throw new UserNotFoundException(oldUsername);
        }
        Group group = getGroup(user);
        if (group == null) {
            throw new GroupNotFoundException(null);
        }

        group.removeMember(user);
        m_useradmin.removeRole(user.getName());
View Full Code Here

TOP

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

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.