Package org.fenixedu.academic.domain.caseHandling

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


    static private class CandidacyPayment 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 EditCandidacyPersonalInformation 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 EditCandidacyInformation extends Activity<SecondCycleIndividualCandidacyProcess> {

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

    static private class IntroduceCandidacyResult extends Activity<SecondCycleIndividualCandidacyProcess> {

        @Override
        public void checkPreConditions(SecondCycleIndividualCandidacyProcess process, User userView) {
            if (!isAllowedToManageProcess(process, userView) && !userView.getPerson().hasRole(RoleType.COORDINATOR)) {
                throw new PreConditionNotValidException();
            }

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

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

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

    static private class CancelCandidacy extends Activity<SecondCycleIndividualCandidacyProcess> {

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

    static private class CreateRegistration extends Activity<SecondCycleIndividualCandidacyProcess> {

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

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

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

            // TODO: check if can create registration when first cycle is
            // not concluded
        }
View Full Code Here

    static private class ChangeIndividualCandidacyState extends Activity<SecondCycleIndividualCandidacyProcess> {

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

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

    static private class EditPublicCandidacyDocumentFile extends Activity<SecondCycleIndividualCandidacyProcess> {

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

    static private class EditPublicCandidacyHabilitations extends Activity<SecondCycleIndividualCandidacyProcess> {

        @Override
        public void checkPreConditions(SecondCycleIndividualCandidacyProcess process, User userView) {
            if (!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.