1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.rice.kew.rule.bo;
17
18 import java.util.List;
19 import java.util.Map;
20
21 import org.kuali.rice.kew.rule.RuleDelegationBo;
22 import org.kuali.rice.kew.rule.web.WebRuleUtils;
23 import org.kuali.rice.kns.inquiry.KualiInquirableImpl;
24 import org.kuali.rice.kns.web.ui.Section;
25 import org.kuali.rice.krad.bo.BusinessObject;
26
27
28
29
30
31
32
33 public class RuleDelegationInquirableImpl extends KualiInquirableImpl {
34
35 @Override
36 public Object retrieveDataObject(Map fieldValues){
37 RuleDelegationBo rule = (RuleDelegationBo)super.retrieveDataObject(fieldValues);
38 WebRuleUtils.populateRuleMaintenanceFields(rule.getDelegationRule());
39 return rule;
40 }
41
42
43
44
45
46
47 public BusinessObject getBusinessObject(Map fieldValues) {
48 RuleDelegationBo rule = (RuleDelegationBo)super.getBusinessObject(fieldValues);
49 WebRuleUtils.populateRuleMaintenanceFields(rule.getDelegationRule());
50 return rule;
51 }
52
53
54
55
56
57
58 public List getSections(BusinessObject bo) {
59 List<Section> sections = super.getSections(bo);
60
61 return WebRuleUtils.customizeSections(((RuleDelegationBo)bo).getDelegationRule(), sections, true);
62
63 }
64
65 }