Examples of edit()


Examples of org.fenixedu.academic.domain.organizationalStructure.Unit.edit()

public class EditExternalUnit {

    @Atomic
    public static void run(final EditExternalUnitBean externalUnitBean) {
        final Unit externalUnit = externalUnitBean.getExternalUnit();
        externalUnit.edit(new MultiLanguageString(Locale.getDefault(), externalUnitBean.getUnitName()),
                externalUnitBean.getUnitCode());
    }
}
View Full Code Here

Examples of org.fenixedu.academic.domain.phd.PhdProgramInformation.edit()

    public ActionForward edit(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) {
        PhdProgramInformation phdProgramInformation = readPhdProgramInformation(request);
        PhdProgramInformationBean readPhdInformationBean = readPhdInformationBean();

        try {
            phdProgramInformation.edit(readPhdInformationBean);
        } catch (PhdDomainOperationException e) {
            request.setAttribute("phdProgramInformation", phdProgramInformation);
            request.setAttribute("phdProgramInformationBean", readPhdInformationBean);
            setError(request, mapping, null, null, e);
            return mapping.findForward("editPhdProgramInformation");
View Full Code Here

Examples of org.fenixedu.academic.domain.phd.ThesisSubject.edit()

            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

Examples of org.fenixedu.academic.domain.phd.candidacy.PhdCandidacyPeriod.edit()

            HttpServletResponse response) {
        PhdCandidacyPeriod phdCandidacyPeriod = readPhdCandidacyPeriod(request);
        PhdCandidacyPeriodBean bean = readPhdCandidacyPeriodBean();

        try {
            phdCandidacyPeriod.edit(bean.getStart(), bean.getEnd());
        } catch (DomainException e) {
            addActionMessage("error", request, e.getKey(), e.getArgs());
            return editPhdCandidacyPeriodInvalid(mapping, form, request, response);
        }
View Full Code Here

Examples of org.fenixedu.academic.domain.phd.thesis.ThesisJuryElement.edit()

        final PhdThesisJuryElementBean bean = (PhdThesisJuryElementBean) object;
        final ThesisJuryElement juryElement = bean.getJuryElement();

        if (process.getThesisJuryElementsSet().contains(juryElement)) {
            juryElement.edit(bean);
        }

        return process;
    }
}
View Full Code Here

Examples of org.fenixedu.academic.domain.space.LessonInstanceSpaceOccupation.edit()

                            (LessonInstanceSpaceOccupation) SpaceUtils.getFirstOccurrenceOfResourceAllocationByClass(newRoom,
                                    this);
                    if (allocation == null) {
                        allocation = new LessonInstanceSpaceOccupation(newRoom);
                    }
                    allocation.edit(lessonInstance);
                }
            }
        }
    }
View Full Code Here

Examples of org.fenixedu.academic.domain.space.LessonSpaceOccupation.edit()

        if (newRoom != null) {
            if (!wasFinished()) {
                if (lessonSpaceOccupation == null) {
                    lessonSpaceOccupation = new LessonSpaceOccupation(newRoom, this);
                } else {
                    lessonSpaceOccupation.edit(newRoom);
                }
            }
        } else {
            if (lessonSpaceOccupation != null) {
                lessonSpaceOccupation.delete();
View Full Code Here

Examples of org.fenixedu.academic.domain.space.WrittenEvaluationSpaceOccupation.edit()

            WrittenEvaluationSpaceOccupation occupation =
                    (WrittenEvaluationSpaceOccupation) SpaceUtils.getFirstOccurrenceOfResourceAllocationByClass(room, this);

            occupation = occupation == null ? new WrittenEvaluationSpaceOccupation(room) : occupation;
            occupation.edit(this);
            return occupation;
        } else {
            return null;
        }
    }
View Full Code Here

Examples of org.fenixedu.academic.domain.student.PersonalIngressionData.edit()

        } else {
            personalData = precedentInfo.getPersonalIngressionData();
        }

        precedentInfo.edit(this, isStudentEditing);
        personalData.edit(this);
    }
}
View Full Code Here

Examples of org.fenixedu.academic.domain.student.PrecedentDegreeInformation.edit()

            }
        } else {
            personalData = precedentInfo.getPersonalIngressionData();
        }

        precedentInfo.edit(this, isStudentEditing);
        personalData.edit(this);
    }
}
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.