1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.rice.krms.service;
17
18 import org.kuali.rice.core.api.util.tree.Tree;
19 import org.kuali.rice.krms.api.repository.reference.ReferenceObjectBinding;
20 import org.kuali.rice.krms.api.repository.rule.RuleDefinitionContract;
21 import org.kuali.rice.krms.dto.PropositionEditor;
22 import org.kuali.rice.krms.dto.RuleEditor;
23 import org.kuali.rice.krms.dto.TemplateInfo;
24 import org.kuali.rice.krms.dto.TermParameterEditor;
25 import org.kuali.rice.krms.tree.node.CompareTreeNode;
26
27 import java.util.List;
28 import java.util.Map;
29
30
31
32
33
34 public interface RuleViewHelperService {
35
36 public Boolean validateRule(RuleEditor rule);
37
38 public Boolean validateProposition(PropositionEditor proposition);
39
40 public void resetDescription(PropositionEditor proposition);
41
42 public void buildActions(RuleEditor rule);
43
44 public void configurePropositionForType(PropositionEditor proposition);
45
46 public TemplateInfo getTemplateForType(String type);
47
48 public void refreshInitTrees(RuleEditor rule);
49
50 public void refreshViewTree(RuleEditor rule);
51
52 public Tree<CompareTreeNode, String> buildCompareTree(RuleEditor original, RuleEditor compare);
53
54 public Tree<CompareTreeNode, String> buildMultiViewTree(RuleEditor coRuleEditor, RuleEditor cluRuleEditor);
55
56 public Boolean compareRules(RuleEditor original);
57
58 public void initPropositionEditor(PropositionEditor propositionEditor);
59
60 public void finPropositionEditor(PropositionEditor propositionEditor);
61
62 public Map<String, String> getTermParameters(PropositionEditor proposition);
63
64 public PropositionEditor copyProposition(PropositionEditor proposition);
65
66 public PropositionEditor createCompoundPropositionBoStub(PropositionEditor existing, boolean addNewChild);
67
68 public void setTypeForCompoundOpCode(PropositionEditor proposition, String compoundOpCode);
69
70 public PropositionEditor createSimplePropositionBoStub(PropositionEditor sibling);
71
72 public Boolean compareProposition(PropositionEditor original, PropositionEditor compare);
73
74 public Boolean compareCompoundProposition(List<PropositionEditor> original, List<PropositionEditor> compare);
75
76 public Boolean compareTerm(List<TermParameterEditor> original, List<TermParameterEditor> compare);
77
78 }