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