Esempio n. 1
0
 public void editAction(Action action) { // редактировать
   //        action.setAction(actionName);
   //        action.setDate(date);
   //        action.setIsMade(isMade);
   //        action.setNote(note);
   actionRepository.save(action);
 }
Esempio n. 2
0
 public Page<Action> findAll(Pageable pegable) {
   Page<Action> actionPage = actionRepository.findAll(pegable);
   return actionPage;
 }
Esempio n. 3
0
 public Page<Action> findByIsMade(Pageable pegable, Boolean isMade) {
   Page<Action> actionPage = actionRepository.findByIsMade(pegable, isMade);
   return actionPage;
 }
Esempio n. 4
0
 public Long changeIsMade(Long id, Boolean isMade) { // отмечать как «Выполнено»
   Action action = actionRepository.findOne(id);
   action.setIsMade(isMade);
   actionRepository.save(action);
   return action.getId();
 }
Esempio n. 5
0
 public void dellAction(Long id) { // удалять
   actionRepository.delete(id);
 }
Esempio n. 6
0
 public Long addAction(Action action) { // добавлять новые
   // Action action = new Action(actionName, date, note);
   actionRepository.save(action);
   return action.getId();
 }
Esempio n. 7
0
 public Action getAction(Long id) {
   return actionRepository.findOne(id);
 }