Package org.fenixedu.academic.util

Examples of org.fenixedu.academic.util.PeriodState


            HttpServletResponse response) throws Exception {

        final String year = request.getParameter("year");
        final Integer semester = new Integer(request.getParameter("semester"));
        final String periodStateToSet = request.getParameter("periodState");
        final PeriodState periodState = new PeriodState(periodStateToSet);

        try {
            AlterExecutionPeriodState.run(year, semester, periodState);
        } catch (InvalidArgumentsServiceException ex) {
            throw new FenixActionException("errors.nonExisting.executionPeriod", ex);
View Full Code Here


            }
            executionSemester.setState(periodState);
            executionSemester.getExecutionYear().setState(periodState);
        } else {
            executionSemester.setState(periodState);
            PeriodState currentPeriodState = periodState;
            for (final ExecutionSemester otherExecutionPeriod : executionYear.getExecutionPeriodsSet()) {
                if (currentPeriodState != null
                        && !otherExecutionPeriod.getState().getStateCode().equals(currentPeriodState.getStateCode())) {
                    currentPeriodState = null;
                }
            }
            if (currentPeriodState != null) {
                executionYear.setState(currentPeriodState);
View Full Code Here

TOP

Related Classes of org.fenixedu.academic.util.PeriodState

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.