use of org.olat.course.nodes.gta.model.TaskListImpl in project openolat by klemens.
the class GTAManagerImpl method createIfNotExists.
@Override
public TaskList createIfNotExists(RepositoryEntry entry, GTACourseNode cNode) {
TaskList tasks = getTaskList(entry, cNode);
if (tasks == null) {
TaskListImpl tasksImpl = new TaskListImpl();
Date creationDate = new Date();
tasksImpl.setCreationDate(creationDate);
tasksImpl.setLastModified(creationDate);
tasksImpl.setEntry(entry);
tasksImpl.setCourseNodeIdent(cNode.getIdent());
dbInstance.getCurrentEntityManager().persist(tasksImpl);
tasks = tasksImpl;
}
return tasks;
}
Aggregations