Package org.fenixedu.academic.util

Examples of org.fenixedu.academic.util.InvocationResult.addMessage()


            return InvocationResult.createSuccess();

        }

        final InvocationResult result = InvocationResult.createInsuccess();
        result.addMessage(
                LabelFormatter.APPLICATION_RESOURCES,
                "error.accounting.events.AccountingEventsManager.registration.for.student.does.not.respect.requirements.to.create.standalone.gratuity.event");

        return result;
View Full Code Here


                        .createSuccess();

        if (result.isSuccess()) {

            if (studentCurricularPlan.getRegistration().hasGratuityEvent(executionYear, DfaGratuityEvent.class)) {
                result.addMessage(LabelFormatter.APPLICATION_RESOURCES,
                        "error.accounting.events.AccountingEventsManager.student.already.has.gratuity.event.for.execution.year",
                        studentCurricularPlan.getRegistration().getStudent().getNumber().toString(), studentCurricularPlan
                                .getRegistration().getDegree().getPresentationName(), executionYear.getYear());

                result.setSuccess(false);
View Full Code Here

                checkConditions ? verifyConditionsToCreateGratuityEvent(executionYear, studentCurricularPlan) : InvocationResult
                        .createSuccess();

        if (result.isSuccess()) {
            if (studentCurricularPlan.getRegistration().hasGratuityEvent(executionYear, SpecializationDegreeGratuityEvent.class)) {
                result.addMessage(LabelFormatter.APPLICATION_RESOURCES, studentCurricularPlan.getRegistration().getStudent()
                        .getNumber().toString(), studentCurricularPlan.getRegistration().getDegree().getPresentationName(),
                        executionYear.getYear());

                result.setSuccess(false);
View Full Code Here

                        .createSuccess();

        if (result.isSuccess()) {

            if (studentCurricularPlan.getRegistration().hasGratuityEvent(executionYear, GratuityEventWithPaymentPlan.class)) {
                result.addMessage(LabelFormatter.APPLICATION_RESOURCES,
                        "error.accounting.events.AccountingEventsManager.student.already.has.gratuity.event.for.execution.year",
                        studentCurricularPlan.getRegistration().getStudent().getNumber().toString(), studentCurricularPlan
                                .getRegistration().getDegree().getPresentationName(), executionYear.getYear());

                result.setSuccess(false);
View Full Code Here

        if (verifyCommonConditionsToCreateGratuityAndAdministrativeOfficeEvents(executionYear, studentCurricularPlan,
                registration) && studentCurricularPlan.getDegree().canCreateGratuityEvent()) {

            if (!acceptedDegreeTypesForGratuityEvent.contains(studentCurricularPlan.getDegreeType())) {
                result.addMessage(LabelFormatter.APPLICATION_RESOURCES,
                        "error.accounting.events.AccountingEventsManager.cannot.create.gratuity.event.for.degree.type",
                        studentCurricularPlan.getDegree().getPresentationName());
                return result;
            }
View Full Code Here

            }

            result.setSuccess(true);

        } else {
            result.addMessage(
                    LabelFormatter.APPLICATION_RESOURCES,
                    "error.accounting.events.AccountingEventsManager.registration.for.student.does.not.respect.requirements.to.create.gratuity.event",
                    studentCurricularPlan.getRegistration().getStudent().getNumber().toString(), studentCurricularPlan
                            .getDegree().getPresentationName());
View Full Code Here

        if (result.isSuccess()) {

            final Student student = studentCurricularPlan.getRegistration().getStudent();

            if (student.getPerson().hasAdministrativeOfficeFeeInsuranceEventFor(executionYear)) {
                result.addMessage(
                        LabelFormatter.APPLICATION_RESOURCES,
                        "error.accounting.events.AccountingEventsManager.student.already.has.administrativeoffice.fee.and.insurance.event.for.year",
                        student.getNumber().toString(), executionYear.getYear());

                result.setSuccess(false);
View Full Code Here

        final Registration registration = studentCurricularPlan.getRegistration();

        if (verifyCommonConditionsToCreateGratuityAndAdministrativeOfficeEvents(executionYear, studentCurricularPlan,
                registration)) {
            if (!acceptedDegreeTypesForAdministrativeOfficeFeeAndInsuranceEvent.contains(studentCurricularPlan.getDegreeType())) {
                result.addMessage(
                        LabelFormatter.APPLICATION_RESOURCES,
                        "error.accounting.events.AccountingEventsManager.cannot.create.administrativeoffice.fee.and.insurance.event.for.degree.type",
                        studentCurricularPlan.getDegree().getPresentationName());

                return result;
View Full Code Here

            }

            result.setSuccess(true);

        } else {
            result.addMessage(
                    LabelFormatter.APPLICATION_RESOURCES,
                    "error.accounting.events.AccountingEventsManager.registration.for.student.does.not.respect.requirements.to.create.administrativeoffice.fee.and.insurance.event",
                    studentCurricularPlan.getRegistration().getStudent().getNumber().toString(), studentCurricularPlan
                            .getDegree().getPresentationName());
        }
View Full Code Here

        if (result.isSuccess()) {

            final Student student = studentCurricularPlan.getRegistration().getStudent();

            if (student.getPerson().hasInsuranceEventOrAdministrativeOfficeFeeInsuranceEventFor(executionYear)) {
                result.addMessage(LabelFormatter.APPLICATION_RESOURCES,
                        "error.accounting.events.AccountingEventsManager.student.already.has.insurance.event.for.year", student
                                .getNumber().toString(), executionYear.getYear());

                result.setSuccess(false);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.