Package org.fenixedu.academic.domain.phd

Examples of org.fenixedu.academic.domain.phd.PhdIndividualProgramProcess


        return true;
    }

    @Override
    public RegistryCode getRegistryCode() {
        PhdIndividualProgramProcess phdIndividualProgramProcess = getPhdIndividualProgramProcess();
        RegistryCode registryCode = null;

        if (phdIndividualProgramProcess.hasRegistryDiplomaRequest()) {
            registryCode = phdIndividualProgramProcess.getRegistryDiplomaRequest().getRegistryCode();
        }

        return registryCode != null ? registryCode : super.getRegistryCode();
    }
View Full Code Here


    @Override
    protected void internalChangeState(AcademicServiceRequestBean academicServiceRequestBean) {
        super.internalChangeState(academicServiceRequestBean);

        if (academicServiceRequestBean.isToConclude()) {
            PhdIndividualProgramProcess process = getPhdIndividualProgramProcess();
            PhdProgramProcessState lastActiveState = process.getLastActiveState();
            String remarks =
                    String.format(
                            BundleUtil
                                    .getString(Bundle.PHD,
                                            "message.net.sourceforge.fenixedu.domain.phd.serviceRequests.PhdStudentReingressionRequest.conclusion.remark"),
                            getServiceRequestNumberYear());

            process.createState(lastActiveState.getType(), AccessControl.getPerson(), remarks);

            if (process.getRegistration() != null && !process.getRegistration().isActive()) {
                RegistrationState registrationLastActiveState = process.getRegistration().getLastActiveState();

                RegistrationState.createRegistrationState(process.getRegistration(), AccessControl.getPerson(), new DateTime(),
                        registrationLastActiveState.getStateType());
            }

        }
    }
View Full Code Here

        if (phdEvent.hasPhdRegistrationFeePenaltyExemption()) {
            return false;
        }

        final PhdIndividualProgramProcess process = phdEvent.getProcess();
        return PhdProgramCalendarUtil.countWorkDaysBetween(process.getCandidacyProcess().getWhenRatified(),
                process.getWhenFormalizedRegistration()) > 20;

    }
View Full Code Here

        if (!fullName.equals(composedName)) {
            throw new DomainException("error.diplomaSupplementRequest.splittedNamesDoNotMatch");
        }

        PhdIndividualProgramProcess process = getPhdIndividualProgramProcess();
        if (!process.hasRegistryDiplomaRequest() && process.hasDiplomaRequest()) {
            throw new DomainException(
                    "error.diplomaSupplementRequest.cannotAskForSupplementWithoutEitherRegistryDiplomaOrDiplomaRequest");
        }

        final PhdDiplomaSupplementRequest supplement = process.getDiplomaSupplementRequest();
        if (supplement != null && supplement != this) {
            throw new DomainException("error.diplomaSupplementRequest.alreadyRequested");
        }
    }
View Full Code Here

        super.setUploader(uploader);
        super.setDocumentAccepted(true);

        final Group roleGroup = AcademicAuthorizationGroup.get(AcademicOperationType.MANAGE_PHD_PROCESSES);

        final PhdIndividualProgramProcess individualProgramProcess =
                meeting.getMeetingProcess().getThesisProcess().getIndividualProgramProcess();
        final PhdProgram phdProgram = individualProgramProcess.getPhdProgram();
        final Group coordinatorGroup = CoordinatorGroup.get(phdProgram.getDegree());

        final Group group = roleGroup.or(coordinatorGroup);
        super.init(filename, filename, content, group);
    }
View Full Code Here

    }

    @Override
    protected PhdProgramCandidacyProcess executeActivity(PhdProgramCandidacyProcess process, User userView, Object object) {

        final PhdIndividualProgramProcess mainProcess = process.getIndividualProgramProcess();
        if (mainProcess.getPhdProgram() == null) {
            throw new DomainException("error.phd.candidacy.PhdProgramCandidacyProcess.RequestCandidacyReview.invalid.phd.program");
        }

        final PhdProgramCandidacyProcessStateBean bean = (PhdProgramCandidacyProcessStateBean) object;
        process.createState(PhdProgramCandidacyProcessState.PENDING_FOR_COORDINATOR_OPINION, userView.getPerson(),
View Full Code Here

    @Override
    protected PhdThesisProcess executeActivity(PhdThesisProcess process, User userView, Object object) {
        PhdConclusionProcessBean bean = (PhdConclusionProcessBean) object;
        PhdConclusionProcess.create(bean, userView.getPerson());

        PhdIndividualProgramProcess individualProgramProcess = process.getIndividualProgramProcess();

        if (!PhdIndividualProgramProcessState.CONCLUDED.equals(individualProgramProcess.getActiveState())) {
            individualProgramProcess.createState(PhdIndividualProgramProcessState.CONCLUDED, userView.getPerson(), "");
        }

        RoleType.grant(RoleType.ALUMNI, process.getPerson().getUser());

        return process;
View Full Code Here

TOP

Related Classes of org.fenixedu.academic.domain.phd.PhdIndividualProgramProcess

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.