Package com.sparc.knappsack.comparators

Examples of com.sparc.knappsack.comparators.GroupNameComparator


    }

    @Override
    public List<Group> getGroups(User user, SortOrder sortOrder) {

        TreeSet<Group> groups = new TreeSet<Group>(new GroupNameComparator());

        if (user != null) {
            groups.addAll(groupDao.getGroupsForUser(user));
        }
View Full Code Here


        return sortedList;
    }

    @Override
    public List<Group> getGroupsForActiveOrganization(User user, SortOrder sortOrder) {
        TreeSet<Group> groups = new TreeSet<Group>(new GroupNameComparator());

        if (user != null) {
            groups.addAll(groupDao.getGroupsForUserActiveOrganization(user));
        }
View Full Code Here

        return sortedList;
    }

    @Override
    public List<Group> getAdministeredGroups(User user, SortOrder sortOrder) {
        TreeSet<Group> groups = new TreeSet<Group>(new GroupNameComparator());

        if (user != null) {

            if(user.isSystemAdmin() && user.getActiveOrganization() != null) {
                groups.addAll(user.getActiveOrganization().getGroups());
View Full Code Here

TOP

Related Classes of com.sparc.knappsack.comparators.GroupNameComparator

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.