Package org.fenixedu.academic.domain

Examples of org.fenixedu.academic.domain.Qualification


        return mapping.findForward("qualification");
    }

    public ActionForward prepareEditQualification(ActionMapping mapping, ActionForm actionForm, HttpServletRequest request,
            HttpServletResponse response) throws Exception {
        Qualification qualification = getQualificationFromParameter(request);
        request.setAttribute("qualification", qualification);
        setAttributePerson(request);
        return mapping.findForward("qualification");
    }
View Full Code Here


    }

    @Atomic
    public ActionForward deleteQualification(ActionMapping mapping, ActionForm actionForm, HttpServletRequest request,
            HttpServletResponse response) throws Exception {
        Qualification qualification = getQualificationFromParameter(request);
        qualification.delete();
        return backToShowQualifications(mapping, actionForm, request, response);
    }
View Full Code Here

        final PhdProgramCandidacyProcessBean bean = getCandidacyBean();

        final String externalId = (String) getFromRequest(request, "removeIndex");
        PhdIndividualProgramProcess individualProgramProcess = bean.getCandidacyHashCode().getIndividualProgramProcess();

        final Qualification qualification = getQualification(individualProgramProcess, externalId);

        try {
            ExecuteProcessActivity.run(individualProgramProcess, DeleteQualification.class, qualification);
            addSuccessMessage(request, "message.qualification.information.delete.success");
View Full Code Here

        request.setAttribute("formationUpdate", "true");
        return getFormation(mapping, request);
    }

    private ActionForward getFormation(ActionMapping mapping, HttpServletRequest request) {
        final Qualification qualification = getDomainObject(request, "formationId");
        final AlumniFormation formation = AlumniFormation.buildFrom((Formation) qualification);
        request.setAttribute("formationEducationArea", formation.getEducationArea().getExternalId());
        request.setAttribute("alumniFormation", formation);
        return mapping.findForward("alumniEditFormation");
    }
View Full Code Here

    }

    private void createQualification() {
        DFACandidacy dfaCandidacy = (DFACandidacy) getCandidacy();
        if (dfaCandidacy.getPrecedentDegreeInformation() != null) {
            Qualification qualification = new Qualification();
            qualification.setPerson(dfaCandidacy.getPerson());
            qualification.setMark(dfaCandidacy.getPrecedentDegreeInformation().getConclusionGrade());
            qualification.setSchool(dfaCandidacy.getPrecedentDegreeInformation().getInstitutionName());
            qualification.setDegree(dfaCandidacy.getPrecedentDegreeInformation().getDegreeDesignation());
            if (dfaCandidacy.getPrecedentDegreeInformation().getConclusionYear() != null) {
                qualification.setDateYearMonthDay(new YearMonthDay(dfaCandidacy.getPrecedentDegreeInformation()
                        .getConclusionYear(), 1, 1));
            }
            qualification.setCountry(dfaCandidacy.getPrecedentDegreeInformation().getCountry());
        }
    }
View Full Code Here

    private boolean isOtherCollaborationType() {
        return getCollaborationType() == PhdIndividualProgramCollaborationType.OTHER;
    }

    public PhdIndividualProgramProcess addQualification(final Person person, final QualificationBean bean) {
        final Qualification qualification = new Qualification(getPerson(), bean);
        qualification.setCreator(person);
        return this;
    }
View Full Code Here

        return getPerson().getName();
    }

    @Override
    public String getQualification() {
        final Qualification qualification = getPerson().getLastQualification();
        return qualification != null ? qualification.getType().getLocalizedName() : EMPTY;
    }
View Full Code Here

    protected void activityPreConditions(PhdIndividualProgramProcess arg0, User userView) {
    }

    @Override
    protected PhdIndividualProgramProcess executeActivity(PhdIndividualProgramProcess process, User userView, Object object) {
        final Qualification qualification = (Qualification) object;
        if (process.getPerson().getAssociatedQualificationsSet().contains(qualification)) {
            if (!canDelete(qualification, process, userView != null ? userView.getPerson() : null)) {
                throw new DomainException("error.PhdIndividualProgramProcess.DeleteQualification.not.authorized");
            }
            qualification.delete();
        }
        return process;
    }
View Full Code Here

        }
        PrecedentDegreeInformation precedentDegreeInformation = studentCandidacy.getPrecedentDegreeInformation();
        precedentDegreeInformation.edit(personalIngressionData, registration, precedentDegreeInformationBean, studentCandidacy);

        // create qualification
        new Qualification(person, precedentDegreeInformation);

        // add roles
        //  person.addPersonRoleByRoleType(RoleType.STUDENT);
        //  person.addPersonRoleByRoleType(RoleType.PERSON);
View Full Code Here

*/
public class DeleteQualification {

    @Atomic
    public static void run(String qualificationId) {
        Qualification qualification = FenixFramework.getDomainObject(qualificationId);
        qualification.delete();
    }
View Full Code Here

TOP

Related Classes of org.fenixedu.academic.domain.Qualification

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.