}
private List<TaskDO> queryList(final String searchTerm, final Boolean notOpened, final Boolean opened, final Boolean closed,
final Boolean deleted)
{
final TaskFilter filter = new TaskFilter();
if (closed != null) {
filter.setClosed(closed.booleanValue());
}
if (deleted != null) {
filter.setDeleted(deleted.booleanValue());
}
if (opened != null) {
filter.setOpened(opened.booleanValue());
}
if (notOpened != null) {
filter.setNotOpened(notOpened.booleanValue());
}
filter.setSearchString(searchTerm);
final List<TaskDO> list = taskDao.getList(filter);
return list;
}