Search in sources :

Example 1 with TaskRevisionDateImpl

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;
}
Also used : TaskRevisionDateImpl(org.olat.course.nodes.gta.model.TaskRevisionDateImpl) 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)

Example 2 with TaskRevisionDateImpl

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;
}
Also used : TaskRevisionDateImpl(org.olat.course.nodes.gta.model.TaskRevisionDateImpl) 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

Date (java.util.Date)2 TaskDueDate (org.olat.course.nodes.gta.TaskDueDate)2 TaskRevisionDate (org.olat.course.nodes.gta.TaskRevisionDate)2 DueDate (org.olat.course.nodes.gta.model.DueDate)2 TaskRevisionDateImpl (org.olat.course.nodes.gta.model.TaskRevisionDateImpl)2