Package org.fenixedu.academic.domain.caseHandling

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


    static protected class RevokeDocumentFile extends Activity<DegreeCandidacyForGraduatedPersonIndividualProcess> {

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


    static private class RejectCandidacy extends Activity<DegreeCandidacyForGraduatedPersonIndividualProcess> {

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

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

    static private class RevertApplicationToStandBy extends Activity<DegreeCandidacyForGraduatedPersonIndividualProcess> {

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

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

    static public class CreateCandidacyPeriod extends Activity<DegreeCandidacyForGraduatedPersonProcess> {

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

    static private class EditCandidacyPeriod extends Activity<DegreeCandidacyForGraduatedPersonProcess> {

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

    static private class SendToCoordinator extends Activity<DegreeCandidacyForGraduatedPersonProcess> {

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

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

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

    static private class SendToScientificCouncil extends Activity<DegreeCandidacyForGraduatedPersonProcess> {

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

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

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

    static private class PrintCandidacies extends Activity<DegreeCandidacyForGraduatedPersonProcess> {

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

    static private class ExportCandidacies extends Activity<DegreeCandidacyForGraduatedPersonProcess> {

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

    static private class SelectAvailableDegrees extends Activity<DegreeCandidacyForGraduatedPersonProcess> {

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