Package com.sparc.knappsack.comparators

Examples of com.sparc.knappsack.comparators.OrganizationNameComparator


    }

    public List<OrganizationModel> createOrganizationModels(List<Organization> organizations, boolean includeExternalData, SortOrder sortOrder) {
        List<OrganizationModel> organizationModels = new ArrayList<OrganizationModel>();

        for (Organization organization : ListSortUtils.sortList(organizations, sortOrder, new OrganizationNameComparator())) {
            organizationModels.add(createOrganizationModel(organization, includeExternalData));
        }

        return organizationModels;
    }
View Full Code Here


    @Override
    public List<OrganizationModel> createOrganizationModelsWithoutStorageConfiguration(List<Organization> organizations, boolean includeExternalData, SortOrder sortOrder) {
        List<OrganizationModel> organizationModels = new ArrayList<OrganizationModel>();

        for (Organization organization : ListSortUtils.sortList(organizations, sortOrder, new OrganizationNameComparator())) {
            organizationModels.add(createOrganizationModelWithoutStorageConfiguration(organization, includeExternalData));
        }

        return organizationModels;
    }
View Full Code Here

        return userDetailsDao.getUsersByActiveOrganization(organization);
    }

    @Override
    public List<Organization> getOrganizations(User user, SortOrder sortOrder) {
        TreeSet<Organization> organizations = new TreeSet<Organization>(new OrganizationNameComparator());

        if(user.isSystemAdmin()) {
            organizations.addAll(organizationDao.getAll());
        } else {
View Full Code Here

        return organizationService.createOrganizationModels(getOrganizations(user, sortOrder), false, sortOrder);
    }

    @Override
    public List<Organization> getAdministeredOrganizations(User user, SortOrder sortOrder) {
        TreeSet<Organization> organizations = new TreeSet<Organization>(new OrganizationNameComparator());

        if (user != null) {
            organizations.addAll(organizationDao.getAdministeredOrganizationsForUser(user));
        }
View Full Code Here

TOP

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

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.