Package org.fenixedu.academic.domain.caseHandling

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


    static private class EditDocuments extends Activity<SecondCycleIndividualCandidacyProcess> {

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

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


    static private class BindPersonToCandidacy extends Activity<SecondCycleIndividualCandidacyProcess> {

        @Override
        public void checkPreConditions(SecondCycleIndividualCandidacyProcess 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 private class ChangeProcessCheckedState extends Activity<SecondCycleIndividualCandidacyProcess> {

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

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

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

        }
View Full Code Here

    static protected class RevokeDocumentFile extends Activity<SecondCycleIndividualCandidacyProcess> {

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

    static private class RejectCandidacy extends Activity<SecondCycleIndividualCandidacyProcess> {

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

    static private class RevertApplicationToStandBy extends Activity<SecondCycleIndividualCandidacyProcess> {

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

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

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

            if (!isAllowedToManageProcess(process, userView)) {
                throw new PreConditionNotValidException();
            }

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

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

    static private class CancelCandidacy extends Activity<DegreeTransferIndividualCandidacyProcess> {
        @Override
        public void checkPreConditions(DegreeTransferIndividualCandidacyProcess process, User userView) {
            if (!isAllowedToManageProcess(process, userView)) {
                throw new PreConditionNotValidException();
            }
            if (process.hasAnyPaymentForCandidacy() || !process.isCandidacyInStandBy()) {
                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.