use of org.olat.course.nodes.gta.model.TaskRevisionDateImpl in project OpenOLAT by OpenOLAT.
the class GTAManagerImpl method createAndPersistTaskRevisionDate.
public TaskRevisionDate createAndPersistTaskRevisionDate(Task task, int revisionLoop, TaskProcess status) {
TaskRevisionDateImpl rev = new TaskRevisionDateImpl();
rev.setCreationDate(new Date());
rev.setDate(rev.getCreationDate());
rev.setRevisionLoop(revisionLoop);
rev.setStatus(status.name());
rev.setTask(task);
dbInstance.getCurrentEntityManager().persist(rev);
return rev;
}
use of org.olat.course.nodes.gta.model.TaskRevisionDateImpl in project openolat by klemens.
the class GTAManagerImpl method createAndPersistTaskRevisionDate.
public TaskRevisionDate createAndPersistTaskRevisionDate(Task task, int revisionLoop, TaskProcess status) {
TaskRevisionDateImpl rev = new TaskRevisionDateImpl();
rev.setCreationDate(new Date());
rev.setDate(rev.getCreationDate());
rev.setRevisionLoop(revisionLoop);
rev.setStatus(status.name());
rev.setTask(task);
dbInstance.getCurrentEntityManager().persist(rev);
return rev;
}
Aggregations