1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
package org.kuali.rice.krms.impl.ui; |
17 | |
|
18 | |
import javax.servlet.http.HttpServletRequest; |
19 | |
import javax.servlet.http.HttpServletResponse; |
20 | |
|
21 | |
import org.apache.commons.collections.MapUtils; |
22 | |
import org.kuali.rice.krad.service.BusinessObjectService; |
23 | |
import org.kuali.rice.krad.service.KRADServiceLocator; |
24 | |
import org.kuali.rice.krad.web.spring.controller.MaintenanceDocumentController; |
25 | |
import org.kuali.rice.krad.web.spring.controller.UifControllerBase; |
26 | |
import org.kuali.rice.krad.web.spring.form.MaintenanceForm; |
27 | |
import org.kuali.rice.krad.web.spring.form.UifFormBase; |
28 | |
import org.kuali.rice.krms.impl.repository.AgendaBo; |
29 | |
import org.kuali.rice.krms.impl.repository.ContextBo; |
30 | |
import org.springframework.stereotype.Controller; |
31 | |
import org.springframework.validation.BindingResult; |
32 | |
import org.springframework.web.bind.annotation.ModelAttribute; |
33 | |
import org.springframework.web.bind.annotation.RequestMapping; |
34 | |
import org.springframework.web.bind.annotation.RequestMethod; |
35 | |
import org.springframework.web.servlet.ModelAndView; |
36 | |
|
37 | |
|
38 | |
|
39 | |
|
40 | |
|
41 | |
|
42 | 0 | @Controller |
43 | |
@RequestMapping(value = "/krmsAgendaEditor") |
44 | 0 | public class EditorDocumentController extends MaintenanceDocumentController { |
45 | |
|
46 | |
@Override |
47 | |
public MaintenanceForm createInitialForm(HttpServletRequest request) { |
48 | 0 | return new MaintenanceForm(); |
49 | |
} |
50 | |
|
51 | |
|
52 | |
|
53 | |
|
54 | |
|
55 | |
|
56 | |
@Override |
57 | |
public ModelAndView refresh(UifFormBase form, BindingResult result, |
58 | |
HttpServletRequest request, HttpServletResponse response) |
59 | |
throws Exception { |
60 | |
|
61 | 0 | MapUtils.verbosePrint(System.out, "actionParameters", form.getActionParameters()); |
62 | |
|
63 | 0 | return super.refresh(form, result, request, response); |
64 | |
} |
65 | |
|
66 | |
private BusinessObjectService getBoService() { |
67 | 0 | return KRADServiceLocator.getBusinessObjectService(); |
68 | |
} |
69 | |
|
70 | |
} |