Package org.fenixedu.academic.domain.caseHandling

Examples of org.fenixedu.academic.domain.caseHandling.PreConditionNotValidException


    static private class CreateStudentData extends Activity<MobilityIndividualApplicationProcess> {

        @Override
        public void checkPreConditions(MobilityIndividualApplicationProcess process, User userView) {
            if (!isManager(userView)) {
                throw new PreConditionNotValidException();
            }
        }
View Full Code Here


    private static class SetEIdentifierForTesting extends Activity<MobilityIndividualApplicationProcess> {
        @Override
        public void checkPreConditions(MobilityIndividualApplicationProcess process, User userView) {
            if (!isManager(userView)) {
                throw new PreConditionNotValidException();
            }
        }
View Full Code Here

    private static class BindLinkSubmitedIndividualCandidacyWithEidentifier extends
            Activity<MobilityIndividualApplicationProcess> {
        @Override
        public void checkPreConditions(MobilityIndividualApplicationProcess process, User userView) {
            if (!StringUtils.isEmpty(process.getPersonalDetails().getEidentifier())) {
                throw new PreConditionNotValidException();
            }

        }
View Full Code Here

            if (process.isCoordinatorOfProcess(userView)) {
                return;
            }

            throw new PreConditionNotValidException();
        }
View Full Code Here

    static public class CreateCandidacyPeriod extends Activity<StandaloneCandidacyProcess> {

        @Override
        public void checkPreConditions(StandaloneCandidacyProcess process, User userView) {
            if (!isAllowedToManageProcess(userView)) {
                throw new PreConditionNotValidException();
            }
        }
View Full Code Here

    static private class EditCandidacyPeriod extends Activity<StandaloneCandidacyProcess> {

        @Override
        public void checkPreConditions(StandaloneCandidacyProcess process, User userView) {
            if (!isAllowedToManageProcess(userView)) {
                throw new PreConditionNotValidException();
            }
        }
View Full Code Here

    static private class SendToCoordinator extends Activity<StandaloneCandidacyProcess> {

        @Override
        public void checkPreConditions(StandaloneCandidacyProcess process, User userView) {
            if (!isAllowedToManageProcess(userView)) {
                throw new PreConditionNotValidException();
            }

            if (!process.isInStandBy()) {
                throw new PreConditionNotValidException();
            }

            if (process.getCandidacyPeriod() == null || !process.hasStarted() || process.hasOpenCandidacyPeriod()) {
                throw new PreConditionNotValidException();
            }
        }
View Full Code Here

    static private class PrintCandidacies extends Activity<StandaloneCandidacyProcess> {

        @Override
        public void checkPreConditions(StandaloneCandidacyProcess process, User userView) {
            if (!isAllowedToManageProcess(userView)) {
                throw new PreConditionNotValidException();
            }
            if (process.isInStandBy()) {
                throw new PreConditionNotValidException();
            }
        }
View Full Code Here

    static public class CreateCandidacyPeriod extends Activity<MobilityApplicationProcess> {

        @Override
        public void checkPreConditions(MobilityApplicationProcess process, User userView) {
            if (!isAllowedToManageProcess(userView)) {
                throw new PreConditionNotValidException();
            }
        }
View Full Code Here

    static private class EditCandidacyPeriod extends Activity<MobilityApplicationProcess> {

        @Override
        public void checkPreConditions(MobilityApplicationProcess process, User userView) {
            if (!isAllowedToManageProcess(userView)) {
                throw new PreConditionNotValidException();
            }
        }
View Full Code Here

TOP

Related Classes of org.fenixedu.academic.domain.caseHandling.PreConditionNotValidException

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.