Package com.sparc.knappsack.comparators

Examples of com.sparc.knappsack.comparators.ApplicationDescriptionComparator


        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);
        model.addAttribute("applications", applicationModels);
View Full Code Here


                    applications.add(application);
                }
            }
            ComparatorChain chain = new ComparatorChain();
            chain.addComparator(new ApplicationNameComparator());
            chain.addComparator(new ApplicationDescriptionComparator());

            Collections.sort(applications, chain);
        }

        return applications;
View Full Code Here

TOP

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

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.