Package org.apache.commons.beanutils

Examples of org.apache.commons.beanutils.BeanComparator


                if (degree.getDegreeType() == degreeType) {
                    result.add(degree);
                }
            }
        }
        Collections.sort(result, new BeanComparator("name"));
        return result;
    }
View Full Code Here


        for (Degree degree : Degree.readNotEmptyDegrees()) {
            if (degree.getDegreeType() == DegreeType.BOLONHA_DEGREE) {
                result.add(degree);
            }
        }
        Collections.sort(result, new BeanComparator("name"));
        return result;
    }
View Full Code Here

    }

    public List getInfoEnrolmentsSorted() {
        final List<InfoEnrolment> infoEnrolments = getInfoEnrolments();
        ComparatorChain comparatorChain = new ComparatorChain();
        comparatorChain.addComparator(new BeanComparator("infoExecutionPeriod.infoExecutionYear.year"));
        comparatorChain.addComparator(new BeanComparator("infoExecutionPeriod.semester"));
        comparatorChain.addComparator(new BeanComparator("infoCurricularCourse.name", Collator.getInstance()));
        Collections.sort(infoEnrolments, comparatorChain);
        return infoEnrolments;
    }
View Full Code Here

        final MarkSheetManagementBaseBean markSheetManagementBean = (MarkSheetManagementBaseBean) source;
        final List<DegreeCurricularPlan> result = new ArrayList<DegreeCurricularPlan>();
        if (markSheetManagementBean.getDegree() != null && markSheetManagementBean.getExecutionPeriod() != null) {
            result.addAll(markSheetManagementBean.getDegree().getDegreeCurricularPlansSet());
        }
        Collections.sort(result, new BeanComparator("name"));
        return result;
    }
View Full Code Here

        final ResidenceInformationForm residenceInformationForm = (ResidenceInformationForm) source;
        if (residenceInformationForm.getDistrictOfResidence() != null) {
            List<DistrictSubdivision> result =
                    new ArrayList<DistrictSubdivision>(residenceInformationForm.getDistrictOfResidence()
                            .getDistrictSubdivisionsSet());
            Collections.sort(result, new BeanComparator("name"));
            return result;
        }

        return Collections.emptyList();
    }
View Full Code Here

        final DFACandidacyBean dfaCandidacyBean = (DFACandidacyBean) source;
        final List<ExecutionDegree> result = new ArrayList<ExecutionDegree>();
        if (dfaCandidacyBean.getDegree() != null && dfaCandidacyBean.getDegreeCurricularPlan() != null) {
            result.addAll(dfaCandidacyBean.getDegreeCurricularPlan().getExecutionDegreesSet());
            Collections.sort(result, new BeanComparator("year"));
        } else {
            dfaCandidacyBean.setExecutionDegree(null);
        }
        return result;
    }
View Full Code Here

        final ExecutionDegreeListBean executionDegreeBean = (ExecutionDegreeListBean) source;
        final List<DegreeCurricularPlan> result = new ArrayList<DegreeCurricularPlan>();
        if (executionDegreeBean.getDegree() != null) {
            result.addAll(executionDegreeBean.getDegree().getDegreeCurricularPlansSet());
            Collections.sort(result, new BeanComparator("name"));
        } else {
            executionDegreeBean.setDegreeCurricularPlan(null);
        }
        return result;
    }
View Full Code Here

        return false;
    }

    public AlumniIdentityCheckRequest getLastIdentityRequest() {
        Set<AlumniIdentityCheckRequest> orderedSet =
                new TreeSet<AlumniIdentityCheckRequest>(new ReverseComparator(new BeanComparator("creationDateTime")));
        for (AlumniIdentityCheckRequest request : getIdentityRequestsSet()) {
            orderedSet.add(request);
        }
        return orderedSet.size() != 0 ? orderedSet.iterator().next() : null;
    }
View Full Code Here

    public List<Project> getAssociatedProjects() throws FenixServiceException {
        if (this.associatedProjects == null) {
            final ExecutionCourse executionCourse = FenixFramework.getDomainObject(getExecutionCourseID());
            this.associatedProjects = executionCourse.getAssociatedProjects();
            Collections.sort(this.associatedProjects, new BeanComparator("begin"));
        }
        return associatedProjects;
    }
View Full Code Here

        }

        private Map<Branch, SortedSet<DegreeModuleScope>> getBranchMap(final DegreeCurricularPlan degreeCurricularPlan,
                final ExecutionSemester executionSemester) {
            final Map<Branch, SortedSet<DegreeModuleScope>> branchMap =
                    new TreeMap<Branch, SortedSet<DegreeModuleScope>>(new BeanComparator("name"));
            for (final CurricularCourse curricularCourse : degreeCurricularPlan.getCurricularCoursesSet()) {
                for (final CurricularCourseScope scope : curricularCourse.getScopesSet()) {
                    if (scope.isActiveForExecutionPeriod(executionSemester)) {
                        addToMap(branchMap, scope);
                    }
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.