Search in sources :

Example 26 with TaskImpl

use of org.olat.course.nodes.gta.model.TaskImpl in project openolat by klemens.

the class GTAManagerImpl method allowResetTask.

@Override
public Task allowResetTask(Task task, Identity allower, GTACourseNode cNode) {
    TaskImpl taskImpl = (TaskImpl) task;
    taskImpl.setAllowResetDate(new Date());
    taskImpl.setAllowResetIdentity(allower);
    return updateTask(task, task.getTaskStatus(), cNode, Role.coach);
}
Also used : TaskImpl(org.olat.course.nodes.gta.model.TaskImpl) Date(java.util.Date) TaskDueDate(org.olat.course.nodes.gta.TaskDueDate) TaskRevisionDate(org.olat.course.nodes.gta.TaskRevisionDate) DueDate(org.olat.course.nodes.gta.model.DueDate)

Aggregations

TaskImpl (org.olat.course.nodes.gta.model.TaskImpl)26 Date (java.util.Date)16 TaskDueDate (org.olat.course.nodes.gta.TaskDueDate)16 TaskRevisionDate (org.olat.course.nodes.gta.TaskRevisionDate)16 DueDate (org.olat.course.nodes.gta.model.DueDate)16 TaskProcess (org.olat.course.nodes.gta.TaskProcess)12 Task (org.olat.course.nodes.gta.Task)6 File (java.io.File)4 AssignmentResponse (org.olat.course.nodes.gta.AssignmentResponse)4 TaskList (org.olat.course.nodes.gta.TaskList)4 OLATResource (org.olat.resource.OLATResource)2