Package org.fenixedu.academic.domain.phd

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


        return mapping.findForward("manageThesisSubjects");
    }

    public ActionForward removeThesisSubject(ActionMapping mapping, ActionForm form, HttpServletRequest request,
            HttpServletResponse response) {
        ThesisSubject thesisSubject =
                (ThesisSubject) FenixFramework.getDomainObject((String) getFromRequest(request, "thesisSubjectId"));
        try {
            thesisSubject.delete();
        } catch (PhdDomainOperationException e) {
            addActionMessage("errors", request, e.getKey(), e.getArgs());
        }

        RenderUtils.invalidateViewState();
View Full Code Here


        return manageThesisSubjects(mapping, form, request, response);
    }

    public ActionForward prepareEditThesisSubject(final ActionMapping mapping, final ActionForm form,
            final HttpServletRequest request, final HttpServletResponse response) {
        ThesisSubject subject = getDomainObject(request, "thesisSubjectId");
        PhdProgramFocusArea focusArea = getDomainObject(request, "focusAreaId");

        ThesisSubjectBean bean = new ThesisSubjectBean(subject);

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

        return mapping.findForward("editThesisSubject");
    }

    public ActionForward editThesisSubject(final ActionMapping mapping, final ActionForm form, final HttpServletRequest request,
            final HttpServletResponse response) {
        ThesisSubject subject = getDomainObject(request, "thesisSubjectId");
        ThesisSubjectBean bean = getRenderedObject("bean");

        try {
            subject.edit(bean.getName(), bean.getDescription(), bean.getTeacher(), bean.getExternalAdvisorName());
        } catch (PhdDomainOperationException e) {
            addActionMessage("error", request, e.getKey(), e.getArgs());
            return editThesisSubjectInvalid(mapping, form, request, response);
        }
View Full Code Here

TOP

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

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.