/** * */ package net.sourceforge.fenixedu.applicationTier.Servico.teacher; import net.sourceforge.fenixedu.applicationTier.FenixService; import net.sourceforge.fenixedu.domain.complain.EvaluationComplain; import org.joda.time.YearMonthDay; import pt.ist.fenixWebFramework.security.accessControl.Checked; import pt.ist.fenixWebFramework.services.Service; public class TeacherAnswerEvaluationComplain extends FenixService { @Checked("RolePredicates.TEACHER_PREDICATE") @Service public static void run(Integer evaluationComplainId, String teacherAnswer) { EvaluationComplain evaluationComplain = rootDomainObject.readEvaluationComplainByOID(evaluationComplainId); YearMonthDay teacherAnswerDateYearMonthDay = new YearMonthDay(); evaluationComplain.setTeacherAnswer(teacherAnswer); evaluationComplain.setTeacherAnswerDateYearMonthDay(teacherAnswerDateYearMonthDay); } }