Package org.fenixedu.academic.service.services.exceptions

Examples of org.fenixedu.academic.service.services.exceptions.InvalidArgumentsServiceException


            throw new InvalidSituationServiceException();
        }

        result = strategy.checkPossibleToEnrolInExistingGroup(groupProperties, studentGroup);
        if (!result) {
            throw new InvalidArgumentsServiceException();
        }

        return true;
    }
View Full Code Here


        Shift shift = FenixFramework.getDomainObject(shiftCode);
        result = strategy.checkNumberOfGroups(groupProperties, shift);

        if (!result) {
            throw new InvalidArgumentsServiceException();
        }

        result = strategy.checkAlreadyEnroled(groupProperties, username);

        if (result) {
View Full Code Here

            throw new InvalidSituationServiceException();
        }

        result = strategy.checkNumberOfGroupElements(groupProperties, studentGroup);
        if (!result) {
            throw new InvalidArgumentsServiceException();
        }

        return true;
    }
View Full Code Here

        final WrittenEvaluation writtenEvaluation = (WrittenEvaluation) FenixFramework.getDomainObject(writtenEvaluationOID);
        final Person person = Person.readPersonByUsername(username);
        final Student student = person.getStudent();
        final Registration registration = findCorrectRegistration(student, writtenEvaluation.getAssociatedExecutionCoursesSet());
        if (writtenEvaluation == null || registration == null) {
            throw new InvalidArgumentsServiceException();
        }

        enrolmentAction(writtenEvaluation, registration);
    }
View Full Code Here

                    }
                }
            }

        } else {
            throw new InvalidArgumentsServiceException();
        }

        if (roomsToAssociate != null) {
            for (final Space allocatableSpace : roomsToAssociate) {
                int intervalCount = 0;
View Full Code Here

            eval =
                    new WrittenTest(writtenEvaluationDate, writtenEvaluationStartTime, writtenEvaluationEndTime,
                            executionCoursesToAssociate, degreeModuleScopesToAssociate, roomsToAssociate, gradeScale,
                            writtenTestDescription);
        } else {
            throw new InvalidArgumentsServiceException();
        }
    }
View Full Code Here

    }

    @Atomic
    public MarkSheet createRectificationOldMarkSheet(Person person) throws InvalidArgumentsServiceException {
        if (getEnrolmentEvaluation() == null) {
            throw new InvalidArgumentsServiceException();
        }
        return getEnrolmentEvaluation()
                .getEnrolment()
                .getCurricularCourse()
                .rectifyOldEnrolmentEvaluation(getEnrolmentEvaluation(), getMarkSheetType(), getEvaluationDate(),
View Full Code Here

            throw new ExistingServiceException();
        }

        StudentGroup studentGroup = FenixFramework.getDomainObject(studentGroupCode);
        if (studentGroup == null) {
            throw new InvalidArgumentsServiceException();
        }

        Shift shift = FenixFramework.getDomainObject(newShiftCode);
        if (groupProperties.getShiftType() == null || studentGroup.getShift() != null
                || (!shift.containsType(groupProperties.getShiftType()))) {
View Full Code Here

    @Atomic
    public static void run(InfoClass infoClass, List<String> shiftOIDs) throws FenixServiceException {
        check(RolePredicates.RESOURCE_ALLOCATION_MANAGER_PREDICATE);
        final SchoolClass schoolClass = FenixFramework.getDomainObject(infoClass.getExternalId());
        if (schoolClass == null) {
            throw new InvalidArgumentsServiceException();
        }

        for (final String shiftOID : shiftOIDs) {
            final Shift shift = FenixFramework.getDomainObject(shiftOID);
            if (shift == null) {
                throw new InvalidArgumentsServiceException();
            }
            schoolClass.associateShift(shift);
        }
    }
View Full Code Here

            throw new ExistingServiceException();
        }

        final StudentGroup studentGroup = FenixFramework.getDomainObject(studentGroupID);
        if (studentGroup == null) {
            throw new InvalidArgumentsServiceException();
        }

        final Shift shift = FenixFramework.getDomainObject(newShiftID);
        if (grouping.getShiftType() == null || !shift.containsType(grouping.getShiftType())) {
            throw new InvalidStudentNumberServiceException();
View Full Code Here

TOP

Related Classes of org.fenixedu.academic.service.services.exceptions.InvalidArgumentsServiceException

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.