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

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


            String newBibliographyReference, String newBibliographyYear, Boolean newBibliographyOptional)
            throws FenixServiceException {

        final ExecutionCourse executionCourse = FenixFramework.getDomainObject(infoExecutionCourseID);
        if (executionCourse == null) {
            throw new InvalidArgumentsServiceException();
        }

        executionCourse.createBibliographicReference(newBibliographyTitle, newBibliographyAuthors, newBibliographyReference,
                newBibliographyYear, newBibliographyOptional);
        return true;
View Full Code Here


    protected Boolean run(String bibliographicReferenceOID) throws FenixServiceException {

        BibliographicReference bibliographicReference = FenixFramework.getDomainObject(bibliographicReferenceOID);
        if (bibliographicReference == null) {
            throw new InvalidArgumentsServiceException();
        }

        bibliographicReference.delete();
        return true;
    }
View Full Code Here

            throws FenixServiceException {

        ServiceMonitoring.logService(this.getClass(), executionCourse, summary, professorship);

        if (summary == null) {
            throw new InvalidArgumentsServiceException();
        }

        summary.delete();
        return true;
    }
View Full Code Here

    protected Boolean run(String bibliographicReferenceID, String newTitle, String newAuthors, String newReference,
            String newYear, Boolean optional) throws FenixServiceException {

        final BibliographicReference bibliographicReference = FenixFramework.getDomainObject(bibliographicReferenceID);
        if (bibliographicReference == null) {
            throw new InvalidArgumentsServiceException();
        }
        bibliographicReference.edit(newTitle, newAuthors, newReference, newYear, optional);

        return true;
    }
View Full Code Here

    public static void run(DegreeOfficialPublication degreeOfficialPublication, String officialReference)
            throws FenixServiceException {
        check(RolePredicates.SCIENTIFIC_COUNCIL_PREDICATE);

        if (degreeOfficialPublication == null || officialReference == null) {
            throw new InvalidArgumentsServiceException();
        }

        degreeOfficialPublication.setOfficialReference(officialReference);
    }
View Full Code Here

    @Atomic
    public static void run(String externalId) throws FenixServiceException {
        check(RolePredicates.SCIENTIFIC_COUNCIL_PREDICATE);
        if (externalId == null) {
            throw new InvalidArgumentsServiceException();
        }

        final DegreeCurricularPlan dcpToDelete = FenixFramework.getDomainObject(externalId);

        if (dcpToDelete == null) {
View Full Code Here

            GradeScale gradeScale, String prevailingScientificArea, AdministrativeOffice administrativeOffice)
            throws FenixServiceException {
        check(RolePredicates.SCIENTIFIC_COUNCIL_PREDICATE);

        if (name == null || nameEn == null || acronym == null || degreeType == null || ectsCredits == null) {
            throw new InvalidArgumentsServiceException();
        }

        final List<Degree> degrees = Degree.readNotEmptyDegrees();

        for (Degree degree : degrees) {
View Full Code Here

    @Atomic
    public static void run(String degreeId, String name, GradeScale gradeScale) throws FenixServiceException {
        check(RolePredicates.SCIENTIFIC_COUNCIL_PREDICATE);

        if (degreeId == null || name == null) {
            throw new InvalidArgumentsServiceException();
        }

        final Person creator = AccessControl.getPerson();
        if (creator == null) {
            throw new FenixServiceException("error.degreeCurricularPlan.non.existing.creator");
View Full Code Here

    @Atomic
    public static void run(Degree degree, LocalDate date, String officialReference) throws FenixServiceException {
        check(RolePredicates.SCIENTIFIC_COUNCIL_PREDICATE);

        if (degree == null || date == null) {
            throw new InvalidArgumentsServiceException();
        }

        DegreeOfficialPublication degreeOfficialPublication = new DegreeOfficialPublication(degree, date);
        degreeOfficialPublication.setOfficialReference(officialReference);
View Full Code Here

    @Atomic
    public static void run(String externalId) throws FenixServiceException {
        check(RolePredicates.SCIENTIFIC_COUNCIL_PREDICATE);
        if (externalId == null) {
            throw new InvalidArgumentsServiceException();
        }

        final Degree degreeToDelete = FenixFramework.getDomainObject(externalId);

        if (degreeToDelete == null) {
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.