1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.rice.krad.web.service.impl;
17
18 import org.kuali.rice.krad.web.form.UifFormBase;
19 import org.kuali.rice.krad.web.service.ModelAndViewService;
20 import org.kuali.rice.krad.web.service.SaveControllerService;
21 import org.springframework.web.servlet.ModelAndView;
22
23
24
25
26
27
28 public class SaveControllerServiceImpl implements SaveControllerService{
29
30 private ModelAndViewService modelAndViewService;
31
32
33
34
35 @Override
36 public ModelAndView save(UifFormBase form) {
37
38 return getModelAndViewService().getModelAndView(form);
39 }
40
41
42
43
44 @Override
45 public ModelAndView saveField(UifFormBase form) {
46
47 return getModelAndViewService().getModelAndView(form);
48 }
49
50 public ModelAndViewService getModelAndViewService() {
51 return modelAndViewService;
52 }
53
54 public void setModelAndViewService(ModelAndViewService modelAndViewService) {
55 this.modelAndViewService = modelAndViewService;
56 }
57 }