use of de.symeda.sormas.app.backend.task.Task in project SORMAS-Project by hzi-braunschweig.
the class TestEntityCreator method createEventTask.
public static Task createEventTask(Event event, TaskStatus taskStatus, User user) {
TaskDto taskDto = new TaskDto();
Task task = new TaskDtoHelper().fillOrCreateFromDto(null, taskDto);
task.setUuid(DataHelper.createUuid());
task.setCreationDate(new Date());
task.setChangeDate(new Date());
task.setTaskContext(TaskContext.CASE);
task.setTaskType(TaskType.CASE_INVESTIGATION);
task.setTaskStatus(taskStatus);
task.setEvent(event);
task.setAssigneeUser(user);
try {
DatabaseHelper.getTaskDao().saveAndSnapshot(task);
DatabaseHelper.getTaskDao().accept(task);
} catch (DaoException e) {
throw new RuntimeException(e);
}
return DatabaseHelper.getTaskDao().queryForIdWithEmbedded(task.getId());
}
use of de.symeda.sormas.app.backend.task.Task in project SORMAS-Project by hzi-braunschweig.
the class CaseEditTaskListFragment method onListItemClick.
@Override
public void onListItemClick(View view, int position, Object item) {
Task task = (Task) item;
TaskEditActivity.startActivity(getContext(), task.getUuid());
}
use of de.symeda.sormas.app.backend.task.Task in project SORMAS-Project by hzi-braunschweig.
the class ContactEditTaskListFragment method onListItemClick.
@Override
public void onListItemClick(View view, int position, Object item) {
Task task = (Task) item;
TaskEditActivity.startActivity(getContext(), task.getUuid());
}
use of de.symeda.sormas.app.backend.task.Task in project SORMAS-Project by hzi-braunschweig.
the class EventEditTaskListFragment method onListItemClick.
@Override
public void onListItemClick(View view, int position, Object item) {
Task task = (Task) item;
TaskEditActivity.startActivity(getActivity(), task.getUuid());
}
use of de.symeda.sormas.app.backend.task.Task in project SORMAS-Project by hzi-braunschweig.
the class EventReadTaskListFragment method onListItemClick.
@Override
public void onListItemClick(View view, int position, Object item) {
Task task = (Task) item;
TaskEditActivity.startActivity(getContext(), task.getUuid());
}
Aggregations