public Page<Task> getUserTask(Long userId, int pageNumber, int pageSize, String sortType) { PageRequest pageRequest = buildPageRequest(pageNumber, pageSize, sortType); return taskDao.findByUserId(userId, pageRequest); }
public List<Task> getAllTask() { return (List<Task>) taskDao.findAll(); }
@Transactional(readOnly = false) public void saveTask(Task entity) { taskDao.save(entity); }
@Transactional(readOnly = false) public void deleteTask(Long id) { taskDao.delete(id); }
public Task getTask(Long id) { return taskDao.findOne(id); }