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