static private class EnrolOnFirstSemester extends Activity<MobilityIndividualApplicationProcess> {
@Override
public void checkPreConditions(MobilityIndividualApplicationProcess process, User userView) {
if (!isAllowedToManageProcess(process, userView)) {
throw new PreConditionNotValidException();
}
if (process.getCandidacy().getRegistration() == null) {
throw new PreConditionNotValidException();
}
if (!process.isStudentAcceptedAndNotified()) {
throw new PreConditionNotValidException();
}
if (!process.isStudentNotifiedWithReceptionEmail()) {
throw new PreConditionNotValidException();
}
}