Package org.fenixedu.academic.domain.caseHandling

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


    static private class IntroduceCandidacyResult extends Activity<DegreeCandidacyForGraduatedPersonIndividualProcess> {

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

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

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


    static private class ChangeIndividualCandidacyState extends Activity<DegreeCandidacyForGraduatedPersonIndividualProcess> {

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

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

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

            if (!process.isSentToCoordinator() && !process.isSentToScientificCouncil()) {
                throw new PreConditionNotValidException();
            }
        }
View Full Code Here

    static private class CancelCandidacy extends Activity<DegreeCandidacyForGraduatedPersonIndividualProcess> {

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

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

    static private class CreateRegistration extends Activity<DegreeCandidacyForGraduatedPersonIndividualProcess> {

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

            Activity<DegreeCandidacyForGraduatedPersonIndividualProcess> {

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

        @Override
        public void checkPreConditions(DegreeCandidacyForGraduatedPersonIndividualProcess process, User userView) {

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

        }
View Full Code Here

    static private class EditPublicCandidacyHabilitations extends Activity<DegreeCandidacyForGraduatedPersonIndividualProcess> {

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

    static private class EditDocuments extends Activity<DegreeCandidacyForGraduatedPersonIndividualProcess> {

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

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

    static private class ChangeProcessCheckedState extends Activity<DegreeCandidacyForGraduatedPersonIndividualProcess> {

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

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

        }
View Full Code Here

    static private class ChangePaymentCheckedState extends Activity<DegreeCandidacyForGraduatedPersonIndividualProcess> {

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

            if (process.isCandidacyCancelled()) {
                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.