Package org.apache.commons.beanutils

Examples of org.apache.commons.beanutils.BeanComparator


        } catch (NotAuthorizedException e) {
            return mapping.findForward("NotAuthorized");
        } catch (NonExistingServiceException e) {
            throw new NonExistingActionException("error.exception.noStudents", "");
        }
        BeanComparator numberComparator = new BeanComparator("infoStudent.number");
        Collections.sort(result, numberComparator);

        request.setAttribute(PresentationConstants.STUDENT_LIST, result);

        String value = request.getParameter("viewPhoto");
View Full Code Here


            request.setAttribute("degreeCurricularPlanID", degreeCurricularPlanID);
        }

        List result = ReadCurricularCoursesByDegree.run(degreeCurricularPlanID);

        BeanComparator nameComparator = new BeanComparator("name");
        Collections.sort(result, nameComparator);

        request.setAttribute("curricularCourses", result);

        return mapping.findForward("ShowCourseList");
View Full Code Here

        ShiftKey shiftKey = new ShiftKey(infoShift.getNome(), infoShift.getInfoDisciplinaExecucao());

        List<InfoStudent> students = LerAlunosDeTurno.run(shiftKey);

        Collections.sort(students, new BeanComparator("number"));

        if (students != null && !students.isEmpty()) {
            request.setAttribute(PresentationConstants.STUDENT_LIST, students);
        }
View Full Code Here

            HttpServletResponse response) throws Exception {
        final Set<Sender> availableSenders = Sender.getAvailableSenders();
        Sender gepSender = getGEPSender(availableSenders);
        List<Recipient> recipients = new ArrayList<Recipient>();
        recipients.addAll(gepSender.getRecipientsSet());
        Collections.sort(recipients, new BeanComparator("toName"));
        Collections.reverse(recipients);
        request.setAttribute("recipients", recipients);
        return mapping.findForward("manageRecipients");
    }
View Full Code Here

    public Object provide(Object source, Object currentValue) {
        MobilityStudentDataBean bean = (MobilityStudentDataBean) source;
        MobilityApplicationProcess process = (MobilityApplicationProcess) bean.getParentProcess();

        List<Country> countries = process.getCandidacyPeriod().getAssociatedCountries();
        Collections.sort(countries, new BeanComparator("localizedName"));

        return countries;
    }
View Full Code Here

        MobilityStudentDataBean bean = (MobilityStudentDataBean) source;
        Country selectedCountry = bean.getSelectedCountry();
        MobilityApplicationPeriod period = (MobilityApplicationPeriod) bean.getParentProcess().getCandidacyPeriod();

        List<UniversityUnit> universityUnitList = period.getUniversityUnitsAssociatedToCountry(selectedCountry);
        Collections.sort(universityUnitList, new BeanComparator("nameI18n"));

        return universityUnitList;
    }
View Full Code Here

                throw new FenixActionException(e);
            }
        }

        ComparatorChain comparatorChain = new ComparatorChain();
        comparatorChain.addComparator(new BeanComparator("value"));
        Collections.sort(result, comparatorChain);
        Collections.reverse(result);

        return result;
    }
View Full Code Here

                throw new FenixActionException(e);
            }
        }

        ComparatorChain comparatorChain = new ComparatorChain();
        comparatorChain.addComparator(new BeanComparator("value"));
        Collections.sort(result, comparatorChain);
        Collections.reverse(result);

        return result;
    }
View Full Code Here

            throw new FenixActionException(e);
        }

        List infoStudentList = studentsNotEnroled.getInfoStudentList();
        if (infoStudentList != null) {
            Collections.sort(infoStudentList, new BeanComparator("number"));
            request.setAttribute("infoStudents", infoStudentList);
        }
        request.setAttribute("groupNumber", studentsNotEnroled.getGroupNumber());
        request.setAttribute("groupPropertiesCode", groupPropertiesCodeString);
        request.setAttribute("shiftCode", shiftCodeString);
View Full Code Here

                return false;
            }
        }, installmentPaymentCodes);

        Collections.sort(installmentPaymentCodes, new BeanComparator("code"));

        return installmentPaymentCodes;
    }
View Full Code Here

TOP

Related Classes of org.apache.commons.beanutils.BeanComparator

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.