return addTask(taskName, parentTaskName, null);
}
public TaskDO addTask(final String taskName, final String parentTaskName, final String shortDescription)
{
TaskDO task = new TaskDO();
task.setTitle(taskName);
if (parentTaskName != null) {
task.setParentTask(getTask(parentTaskName));
}
if (shortDescription != null) {
task.setShortDescription(shortDescription);
}
final Serializable id = taskDao.internalSave(task);
task = taskDao.internalGetById(id);
putTask(task);
return task;