Package org.fenixedu.academic.dto.coordinator

Examples of org.fenixedu.academic.dto.coordinator.SearchDegreeLogBean


        final ExecutionDegree executionDegree = degreeCurricularPlan.getMostRecentExecutionDegree();

        Degree degree = executionDegree.getDegree();

        // Degree degree = getDomainObject(request, "degreeCurricularPlanID");
        SearchDegreeLogBean sdlb = new SearchDegreeLogBean(degree);
        sdlb.setDegreeLogTypes(new ArrayList<DegreeLogTypes>());

        request.setAttribute("searchBean", sdlb);
        request.setAttribute("degree", sdlb.getDegree());
        // final InfoExecutionDegree infoExecutionDegree =
        // InfoExecutionDegree.newInfoFromDomain(executionDegree);
        // request.setAttribute(PresentationConstants.MASTER_DEGREE, degree);

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


        return mapping.findForward("search");
    }

    public ActionForward prepare(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) {
        DegreeCurricularPlan dcp = getDomainObject(request, "degreeCurricularPlanID");
        SearchDegreeLogBean sdlb = readSearchBean(request, dcp.getDegree());

        searchLogs(sdlb);
        request.setAttribute("searchBean", sdlb);
        request.setAttribute("degree", sdlb.getDegree());

        prepareAttendsCollectionPages(request, sdlb, sdlb.getDegree());
        return mapping.findForward("search");
    }
View Full Code Here

    }

    private SearchDegreeLogBean readSearchBean(HttpServletRequest request, Degree degree) {
        String degreeID = request.getParameter("degree");
        if (degreeID != null) {
            SearchDegreeLogBean sdlb = new SearchDegreeLogBean((Degree) FenixFramework.getDomainObject(degreeID));

            String viewPhoto = request.getParameter("viewPhoto");
            if (viewPhoto != null && viewPhoto.equalsIgnoreCase("true")) {
                sdlb.setViewPhoto(true);
            } else {
                sdlb.setViewPhoto(false);
            }

            String logTypes = request.getParameter("degreeLogTypes");
            if (logTypes != null) {
                List<DegreeLogTypes> list = new ArrayList<DegreeLogTypes>();
                for (String logType : logTypes.split(":")) {
                    list.add(DegreeLogTypes.valueOf(logType));
                }
                sdlb.setDegreeLogTypes(list);
            }

            return sdlb;
        } else {
            return new SearchDegreeLogBean(degree);
        }
    }
View Full Code Here

        final String pageParameter = request.getParameter("pageNumber");
        final Integer page = StringUtils.isEmpty(pageParameter) ? Integer.valueOf(1) : Integer.valueOf(pageParameter);
        request.setAttribute("pageNumber", page);

        SearchDegreeLogBean logPagesBean = new SearchDegreeLogBean(degree);

        searchLogs(logPagesBean);

        logPagesBean.setDegreeLogs(pager.getPage(page));
        if (seclb.getViewPhoto()) {
            logPagesBean.setViewPhoto(true);
        }
        request.setAttribute("logPagesBean", logPagesBean);
    }
View Full Code Here

    public ActionForward search(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) {

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

        SearchDegreeLogBean bean = getRenderedObject();
        RenderUtils.invalidateViewState();
        searchLogs(bean);

        request.setAttribute("searchBean", bean);
        request.setAttribute("degree", bean.getDegree());

        prepareAttendsCollectionPages(request, bean, bean.getDegree());

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

public class DegreeLogTypesProvider implements DataProvider {

    @Override
    public Object provide(final Object source, final Object currentValue) {
        final SearchDegreeLogBean searchDegreeLogBean = (SearchDegreeLogBean) source;
        return searchDegreeLogBean.getDegreeLogTypesAll();
    }
View Full Code Here

TOP

Related Classes of org.fenixedu.academic.dto.coordinator.SearchDegreeLogBean

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.