Package org.fenixedu.academic.domain.caseHandling

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


            if (isInternationalRelationsOfficer(userView)) {
                return;
            }

            throw new PreConditionNotValidException();
        }
View Full Code Here


    static public class IndividualCandidacyInformation extends Activity<StandaloneIndividualCandidacyProcess> {

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

    static private class CandidacyPayment extends Activity<StandaloneIndividualCandidacyProcess> {

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

    static private class EditCandidacyPersonalInformation extends Activity<StandaloneIndividualCandidacyProcess> {

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

    static private class EditCandidacyInformation extends Activity<StandaloneIndividualCandidacyProcess> {

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

            if (process.isCandidacyCancelled() || process.isCandidacyAccepted()) {
                throw new PreConditionNotValidException();
            }
        }
View Full Code Here

    static private class IntroduceCandidacyResult extends Activity<StandaloneIndividualCandidacyProcess> {

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

            if (process.isCandidacyCancelled()) {
                throw new PreConditionNotValidException();
            }

            if (!process.isSentToCoordinator() && !process.isSentToScientificCouncil()) {
                throw new PreConditionNotValidException();
            }

            if (process.getCandidacy().getEvent() == null || process.getCandidacy().getEvent().isCancelled()) {
                return;
            }

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

        }
View Full Code Here

    static private class CancelCandidacy extends Activity<StandaloneIndividualCandidacyProcess> {

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

    static private class CreateRegistration extends Activity<StandaloneIndividualCandidacyProcess> {

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

            if (process.hasRegistrationForCandidacy()) {
                throw new PreConditionNotValidException();
            }
        }
View Full Code Here

    static private class BindPersonToCandidacy extends Activity<StandaloneIndividualCandidacyProcess> {

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

            if (process.isCandidacyInternal()) {
                throw new PreConditionNotValidException();
            }

            if (process.isCandidacyCancelled()) {
                throw new PreConditionNotValidException();
            }

        }
View Full Code Here

    static public class CreateCandidacyPeriod extends Activity<SecondCycleCandidacyProcess> {

        @Override
        public void checkPreConditions(SecondCycleCandidacyProcess 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.