Examples of DFACandidacyEvent


Examples of org.fenixedu.academic.domain.accounting.events.dfa.DFACandidacyEvent

        addCandidacyDocuments(new CandidacyDocument("habilitation.certificate"));
        addCandidacyDocuments(new CandidacyDocument("second.habilitation.certificate"));
        addCandidacyDocuments(new CandidacyDocument("interest.letter"));

        final AdministrativeOffice administrativeOffice = executionDegree.getDegree().getAdministrativeOffice();
        new DFACandidacyEvent(administrativeOffice, person, this);
        new DegreeCurricularPlanServiceAgreement(person, executionDegree.getDegreeCurricularPlan().getServiceAgreementTemplate());
    }
View Full Code Here

Examples of org.fenixedu.academic.domain.accounting.events.dfa.DFACandidacyEvent

    }

    public void cancelEvents() {
        for (Event event : getPerson().getEventsByEventType(EventType.CANDIDACY_ENROLMENT)) {
            DFACandidacyEvent candidacyEvent = (DFACandidacyEvent) event;
            if (candidacyEvent.getCandidacy() == this) {
                candidacyEvent.cancel(AccessControl.getPerson());
            }
        }
    }
View Full Code Here

Examples of org.fenixedu.academic.domain.accounting.events.dfa.DFACandidacyEvent

    }

    @Override
    protected boolean hasPenalty(Event event, DateTime when) {
        final DFACandidacyEvent dfaCandidacyEvent = (DFACandidacyEvent) event;
        return dfaCandidacyEvent.hasCandidacyPeriodInDegreeCurricularPlan()
                && !dfaCandidacyEvent.getCandidacyPeriodInDegreeCurricularPlan().containsDate(
                        dfaCandidacyEvent.getCandidacyDate());

    }
View Full Code Here

Examples of org.fenixedu.academic.domain.accounting.events.dfa.DFACandidacyEvent

        checkPreconditionsToProcess(event);
        return super.internalProcess(user, entryDTOs, event, fromAccount, toAccount, transactionDetail);
    }

    private void checkPreconditionsToProcess(Event event) {
        final DFACandidacyEvent dfaCandidacyEvent = (DFACandidacyEvent) event;
        if (!dfaCandidacyEvent.hasCandidacyPeriodInDegreeCurricularPlan()) {
            throw new DomainException(
                    "error.accounting.postingRules.dfa.DFACandidacyPR.cannot.process.without.candidacy.period.defined");
        }
    }
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.