Package com.sparc.knappsack.comparators

Examples of com.sparc.knappsack.comparators.ApplicationNameComparator


    public String displayPage(Model model, UserAgentInfo userAgentInfo) {
        User user = userService.getUserFromSecurityContext();
        List<Application> applications = userService.getApplicationsForUser(user, userAgentInfo.getApplicationType());

        ComparatorChain chain = new ComparatorChain();
        chain.addComparator(new ApplicationNameComparator());
        chain.addComparator(new ApplicationDescriptionComparator());

        Collections.sort(applications, chain);

        List<ApplicationModel> applicationModels = applicationService.createApplicationModels(applications, false);
View Full Code Here


                if ((application.getName().toLowerCase().contains(criteria) || application.getDescription().toLowerCase().contains(criteria)) && !applications.contains(application)) {
                    applications.add(application);
                }
            }
            ComparatorChain chain = new ComparatorChain();
            chain.addComparator(new ApplicationNameComparator());
            chain.addComparator(new ApplicationDescriptionComparator());

            Collections.sort(applications, chain);
        }
View Full Code Here

TOP

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

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.