Package org.fenixedu.academic.dto.alumni

Examples of org.fenixedu.academic.dto.alumni.AlumniSearchBean


    @EntryPoint
    public ActionForward showAlumniList(ActionMapping mapping, ActionForm actionForm, HttpServletRequest request,
            HttpServletResponse response) throws Exception {

        AlumniSearchBean searchBean = reconstructBeanFromRequest(request);

        if (!StringUtils.isEmpty(searchBean.getName()) || searchBean.getDegreeType() != null) {

            List<Registration> resultRegistrations = readAlumniRegistrations(searchBean);

            if (request.getParameter("sort") != null && request.getParameter("sort").length() > 0) {
                resultRegistrations = RenderUtils.sortCollectionWithCriteria(resultRegistrations, request.getParameter("sort"));
            } else {
                resultRegistrations = RenderUtils.sortCollectionWithCriteria(resultRegistrations, "student.person.name");
            }

            searchBean.setAlumni(new ArrayList<Registration>(resultRegistrations));
            searchBean.setTotalItems(resultRegistrations.size());
        }

        request.setAttribute("searchAlumniBean", searchBean);
        return mapping.findForward("showAlumniList");
    }
View Full Code Here


    }

    public ActionForward degreeTypePostback(ActionMapping mapping, ActionForm actionForm, HttpServletRequest request,
            HttpServletResponse response) throws Exception {

        AlumniSearchBean searchBean = reconstructBeanFromRequest(request);
        RenderUtils.invalidateViewState();
        request.setAttribute("searchAlumniBean", searchBean);
        return mapping.findForward("showAlumniList");
    }
View Full Code Here

        } else if (request.getParameter("beansearch") != null && request.getParameter("beansearch").length() > 0) {
            return AlumniSearchBean.getBeanFromParameters(request.getParameter("beansearch"));
        }

        return new AlumniSearchBean();
    }
View Full Code Here

    @EntryPoint
    public ActionForward searchAlumni(ActionMapping mapping, ActionForm actionForm, HttpServletRequest request,
            HttpServletResponse response) throws Exception {

        AlumniSearchBean searchBean;
        final IViewState viewState = RenderUtils.getViewState("searchAlumniBean");
        if (viewState != null) {
            searchBean = (AlumniSearchBean) viewState.getMetaObject().getObject();
        } else {
            searchBean = new AlumniSearchBean();
        }

        List<Registration> registrations = Alumni.readRegistrations(searchBean);
        searchBean.setAlumni(new ArrayList<Registration>(registrations));

        java.util.List<AlumniSearchResultItemBean> alumniSearchResultItems =
                new java.util.ArrayList<AlumniSearchResultItemBean>();

        for (Registration registration : registrations) {
View Full Code Here

TOP

Related Classes of org.fenixedu.academic.dto.alumni.AlumniSearchBean

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.