Package org.fenixedu.academic.domain.student

Examples of org.fenixedu.academic.domain.student.Student


                studentCurricularPlan.enrolInAffinityCycle(cycleCourseGroupToEnrol, executionSemester);
                return studentCurricularPlan.getRegistration();

            } else {

                final Student student = studentCurricularPlan.getRegistration().getStudent();
                if (student.hasActiveRegistrationFor(cycleCourseGroupToEnrol.getParentDegreeCurricularPlan())) {
                    throw new FenixServiceException("error");
                }

                final MDCandidacy candidacy = createMDCandidacy(student, cycleCourseGroupToEnrol, executionSemester);
                final Registration newRegistration =
                        new Registration(student.getPerson(), cycleCourseGroupToEnrol.getParentDegreeCurricularPlan(), candidacy,
                                RegistrationProtocol.getDefault(), cycleCourseGroupToEnrol.getCycleType());

                newRegistration.setSourceRegistration(studentCurricularPlan.getRegistration());
                newRegistration.getActiveState().setResponsiblePerson(null);
                newRegistration.setIngression(Ingression.DA1C);
View Full Code Here


public class StudentThesisAuthorizationFilter {

    public static final StudentThesisAuthorizationFilter instance = new StudentThesisAuthorizationFilter();

    public void execute(Thesis thesis) throws NotAuthorizedException {
        Student student = getStudent();

        if (student == null) {
            abort();
        }
View Full Code Here

    @Override
    public Object provide(Object source, Object currentValue) {
        if (source instanceof PersonalInformationBean) {
            PersonalInformationBean personalInformationBean = (PersonalInformationBean) source;
            Student student = personalInformationBean.getStudent();
            boolean isThirdCycle = false;
            boolean isFirstOrSecondCycle = false;

            isThirdCycle = student.hasActivePhdProgramProcess();
            for (Registration registration : student.getActiveRegistrations()) {
                isThirdCycle |= registration.isDEA();
                isFirstOrSecondCycle |= registration.isDegreeOrBolonhaDegreeOrBolonhaIntegratedMasterDegree();
                isFirstOrSecondCycle |= registration.isMasterDegreeOrBolonhaMasterDegree();
            }
            if (isThirdCycle) {
View Full Code Here

    private void assertPersonInformation() {
        final Person person = getPerson();

        if (getPerson().getStudent() == null) {
            new Student(getPerson());
        }

        Student student = getPerson().getStudent();
        PrecedentDegreeInformation precedentDegreeInformation = getCandidacy().getPrecedentDegreeInformation();
        ExecutionYear executionYear = getExecutionYear();
        if (getPerson().getStudent().getPersonalIngressionDataByExecutionYear(executionYear) == null) {
            new PersonalIngressionData(student, executionYear, precedentDegreeInformation);
        }
View Full Code Here

        Set<Person> result = new HashSet<Person>(Person.findPersonByDocumentID(choosePersonBean.getIdentificationNumber()));
        result.addAll(Person.findByDateOfBirth(choosePersonBean.getDateOfBirth(),
                Person.findPersonMatchingFirstAndLastName(choosePersonBean.getName())));

        if (choosePersonBean.getStudentNumber() != null) {
            Student student = Student.readStudentByNumber(choosePersonBean.getStudentNumber());

            if (student != null) {
                result.add(student.getPerson());
            }
        }

        return result;
    }
View Full Code Here

        if (StringUtils.isEmpty(userName) || !StringUtils.isNumeric(userName)) {
            statusMessage = "label.error.invalid.student.number";
            return false;
        }

        Student student = Student.readStudentByNumber(Integer.valueOf(userName));
        if (student == null || student.getPerson() == null) {
            statusMessage = "label.error.invalid.student.number";
            return false;
        }
        setStudent(student);

        ResidenceYear year = ResidenceYear.getCurrentYear();
        ResidenceManagementUnit unit = year.getUnit();
/*  if (!roomValue.equals(unit.getCurrentSingleRoomValue()) && !roomValue.equals(unit.getCurrentDoubleRoomValue())) {
      statusMessage = "label.error.invalid.payment.amount";
      return false;
  }*/

        String socialSecurityNumber = student.getPerson().getSocialSecurityNumber();
        if (socialSecurityNumber != null && !socialSecurityNumber.equalsIgnoreCase(fiscalNumber.trim())) {
            statusMessage = "label.error.invalid.fiscalNumber";
            return false;
        }

View Full Code Here

        return PhdIndividualProgramProcessState.CANDIDACY.equals(getType());
    }

    @Override
    public void delete() {
        Student student = getProcess().getStudent();
        setProcess(null);
        super.delete();
        if (student != null) {
            student.updateStudentRole();
        }
    }
View Full Code Here

    @Override
    public Object provide(Object source, Object currentValue) {
        final CurriculumLineLocationBean bean = (CurriculumLineLocationBean) source;

        final Student student = bean.getStudent();
        final Set<CurriculumGroup> result = new HashSet<CurriculumGroup>();

        for (final Registration registration : student.getRegistrationsSet()) {

            if (!registration.isBolonha()) {
                result.addAll(registration.getLastStudentCurricularPlan().getAllCurriculumGroups());
                continue;
            }
View Full Code Here

        if (studentCurricularPlan.getRegistration().getStartExecutionYear() != executionYear) {
            return false;
        }

        final Student student = studentCurricularPlan.getRegistration().getStudent();
        return hasOnlyOneValidRegistration(student, studentCurricularPlan.getRegistration());
    }
View Full Code Here

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

        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);

                return result;
View Full Code Here

TOP

Related Classes of org.fenixedu.academic.domain.student.Student

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.