1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.rice.krad.document;
17
18 import org.kuali.rice.krad.util.KRADConstants;
19 import org.kuali.rice.krad.web.form.TransactionalDocumentFormBase;
20 import org.kuali.rice.krad.web.service.ControllerService;
21 import org.springframework.beans.factory.annotation.Autowired;
22 import org.springframework.beans.factory.annotation.Qualifier;
23 import org.springframework.web.bind.annotation.RequestMapping;
24 import org.springframework.web.bind.annotation.RequestMethod;
25 import org.springframework.web.servlet.ModelAndView;
26
27
28
29
30
31
32
33 public abstract class TransactionalDocumentControllerBase extends DocumentControllerBase {
34
35
36
37
38 @RequestMapping(method = RequestMethod.POST, params = "methodToCall=" + KRADConstants.Document.METHOD_TO_CALL_COPY)
39 public ModelAndView copy(TransactionalDocumentFormBase form) {
40 return getControllerService().copy(form);
41 }
42
43 @Override
44 protected TransactionalDocumentControllerService getControllerService() {
45 return (TransactionalDocumentControllerService) super.getControllerService();
46 }
47
48 @Override
49 @Autowired
50 @Qualifier("transactionalDocumentControllerService")
51 public void setControllerService(ControllerService controllerService) {
52 super.setControllerService(controllerService);
53 }
54
55 }