Package org.fenixedu.academic.domain

Examples of org.fenixedu.academic.domain.DegreeOfficialPublication


    private void addProgrammeRequirements(String graduateDegree) {
        String labelThe =
                getDocumentRequest().getRequestedCycle().equals(CycleType.FIRST_CYCLE) ? BundleUtil.getString(Bundle.ACADEMIC,
                        getLocale(), "label.the.female") : BundleUtil.getString(Bundle.ACADEMIC, getLocale(), "label.the.male");
        long ectsCredits = getDocumentRequest().getEctsCredits();
        DegreeOfficialPublication dr = getDocumentRequest().getDegreeOfficialPublication();

        if (dr == null) {
            throw new DomainException("error.DiplomaSupplement.degreeOfficialPublicationNotFound");
        }

        String officialPublication = dr.getOfficialReference();

        String programmeRequirements;

        if (getDocumentRequest().isRequestForPhd()) {
            programmeRequirements =
                    applyMessageArguments(BundleUtil.getString(Bundle.ACADEMIC, getLocale(),
                            "diploma.supplement.four.two.programmerequirements.template.noareas.with.official.publication"),
                            labelThe, graduateDegree, Long.toString(ectsCredits), officialPublication);
        } else if (getDocumentRequest().getRequestedCycle().equals(CycleType.FIRST_CYCLE)
                || dr.getSpecializationAreaSet().size() == 0) {
            programmeRequirements =
                    applyMessageArguments(BundleUtil.getString(Bundle.ACADEMIC, getLocale(),
                            "diploma.supplement.four.two.programmerequirements.template.noareas"), labelThe, graduateDegree,
                            Long.toString(ectsCredits));
        } else {
            List<String> areas = new ArrayList<String>();
            for (DegreeSpecializationArea area : dr.getSpecializationAreaSet()) {
                areas.add(area.getName().getContent(getLanguage()));
            }
            programmeRequirements =
                    applyMessageArguments(BundleUtil.getString(Bundle.ACADEMIC, getLocale(),
                            "diploma.supplement.four.two.programmerequirements.template.withareas"), labelThe, graduateDegree,
View Full Code Here


        @Forward(name = "deletePublication", path = "/scientificCouncil/curricularPlans/deleteDegreeOfficialPublication.jsp") })
public class EditDegreeOfficialPublicationDA extends FenixDispatchAction {

    public ActionForward preparePubs(ActionMapping mapping, ActionForm form, HttpServletRequest request,
            HttpServletResponse response) {
        DegreeOfficialPublication degreeOfficialPublication = (DegreeOfficialPublication) request.getAttribute("officialPub");

        if (degreeOfficialPublication == null) {
            degreeOfficialPublication = FenixFramework.getDomainObject(request.getParameter("officialPubId"));
        }
        if (degreeOfficialPublication == null) {
View Full Code Here

    public ActionForward removeSpecializationArea(ActionMapping mapping, ActionForm form, HttpServletRequest request,
            HttpServletResponse response) {

        DegreeSpecializationArea specializationArea = FenixFramework.getDomainObject(request.getParameter("specializationId"));

        DegreeOfficialPublication degreeOfficialPublication = specializationArea.getOfficialPublication();
        OfficialPublicationBean bean = new OfficialPublicationBean(degreeOfficialPublication);

        bean.removeSpecializationArea(specializationArea);

        request.setAttribute("officialPub", degreeOfficialPublication);
View Full Code Here

    public ActionForward createNewSpecializationArea(ActionMapping mapping, ActionForm form, HttpServletRequest request,
            HttpServletResponse response) {
        OfficialPublicationBean bean = getRenderedObject("pubBean");

        DegreeOfficialPublication degreeOfficialPublication = bean.getDegreeOfficialPublication();

        if (bean.getNewNameEn().compareTo("") == 0 || bean.getNewNamePt().compareTo("") == 0) {
            addErrorMessage(request, "error", "confirm.error.edit.name.specializationArea");
            request.setAttribute("officialPub", degreeOfficialPublication);
            return preparePubs(mapping, form, request, response);
        }

        degreeOfficialPublication.createSpecializationArea(bean.getNewNameEn(), bean.getNewNamePt());
        request.setAttribute("officialPub", degreeOfficialPublication);
        return preparePubs(mapping, form, request, response);
    }
View Full Code Here

    public ActionForward prepareDeleteDegreeOfficialPublication(final ActionMapping mapping, final ActionForm form,
            final HttpServletRequest request, final HttpServletResponse response) {
        String degreeId = request.getParameter("degreeId");
        String officialPubId = request.getParameter("officialPubId");

        DegreeOfficialPublication publication = FenixFramework.getDomainObject(officialPubId);

        request.setAttribute("publication", publication);
        request.setAttribute("degreeId", degreeId);

        return mapping.findForward("deletePublication");
View Full Code Here

    public ActionForward deleteDegreeOfficialPublication(final ActionMapping mapping, final ActionForm form,
            final HttpServletRequest request, final HttpServletResponse response) {
        String degreeId = request.getParameter("degreeId");
        String officialPubId = request.getParameter("officialPubId");

        DegreeOfficialPublication publication = FenixFramework.getDomainObject(officialPubId);

        publication.delete();

        return new FenixActionForward(request, new ActionForward("/curricularPlans/editDegree.faces?degreeId=" + degreeId, false));
    }
View Full Code Here

    }

    @Atomic
    public void update(List<SpecializationName> names) {
        DegreeOfficialPublication degreeOfficialPublication = this.getDegreeOfficialPublication();

        // check officialReference
        if (this.getNewReference().compareTo(degreeOfficialPublication.getOfficialReference()) != 0) {
            degreeOfficialPublication.setOfficialReference(this.getNewReference());
        }

        // check specializationNames
        for (SpecializationName name : names) {
View Full Code Here

        if (degree == null || date == null) {
            throw new InvalidArgumentsServiceException();
        }

        DegreeOfficialPublication degreeOfficialPublication = new DegreeOfficialPublication(degree, date);
        degreeOfficialPublication.setOfficialReference(officialReference);

    }
View Full Code Here

            String newOfficialReferece = this.getNewOfficialReference();

            String engName = getSpecializationNameEng();
            String portName = getSpecializationNamePt();
            DegreeOfficialPublication degreeOfficialPublication = getDegreeOfficialPublication();

            // Modify officialpublication official reference if its name is
            // changed
            if (newOfficialReferece != null && newOfficialReferece.compareTo("") != 0
                    && newOfficialReferece.compareTo(getDegreeOfficialPublication().getOfficialReference()) != 0) {
View Full Code Here

    @Override
    public DegreeOfficialPublication getDegreeOfficialPublication() {
        CycleConclusionProcess conclusionProcess =
                getRegistration().getLastStudentCurricularPlan().getCycle(getRequestedCycle()).getConclusionProcess();

        DegreeOfficialPublication dr =
                getRegistration().getDegree().getOfficialPublication(
                        conclusionProcess.getConclusionDate().toDateTimeAtStartOfDay());

        return dr;
    }
View Full Code Here

TOP

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

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.