new MobilityApplicationPeriod(this, executionYear, start, end);
}
public void delete() {
if (getChildProcessesSet().size() > 0) {
throw new DomainException("error.mobiliy.application.proccess.cant.be.deleted.it.has.individual.application");
}
if (getCoordinatorsSet().size() > 0) {
throw new DomainException("error.mobiliy.application.proccess.cant.be.deleted.it.has.coordinators");
}
if (getCandidacyPeriod() != null) {
throw new DomainException("error.mobiliy.application.proccess.cant.be.deleted.it.defined.period");
}
if (getErasmusCandidacyProcessExecutedActionSet().size() > 0) {
throw new DomainException("error.mobiliy.application.proccess.cant.be.deleted.it.has.executed.actions");
}
if (getErasmusCandidacyProcessReportsSet().size() > 0) {
throw new DomainException("error.mobiliy.application.proccess.cant.be.deleted.it.has.reports");
}
if (getProcessLogsSet().size() > 0) {
throw new DomainException("error.mobiliy.application.proccess.cant.be.deleted.it.has.logs");
}
setForSemester(null);
setRootDomainObject(null);
deleteDomainObject();
}