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
29
30
31
32
33 public interface RuleViewHelperService {
34
35 public void validateProposition(PropositionEditor proposition);
36
37 public void resetDescription(PropositionEditor proposition);
38
39 public void configurePropositionForType(PropositionEditor proposition);
40
41 public TemplateInfo getTemplateForType(String type);
42
43 public void refreshInitTrees(RuleEditor rule);
44
45 public void refreshViewTree(RuleEditor rule);
46
47 public Tree<CompareTreeNode, String> buildCompareTree(RuleEditor original, RuleEditor compare) throws Exception;
48
49 public Tree<CompareTreeNode, String> buildMultiViewTree(RuleEditor coRuleEditor, RuleEditor cluRuleEditor) throws Exception;
50
51 public Boolean compareRules(RuleEditor original);
52
53 public PropositionEditor copyProposition(PropositionEditor proposition);
54
55 public PropositionEditor createCompoundPropositionBoStub(PropositionEditor existing, boolean addNewChild);
56
57 public void setTypeForCompoundOpCode(PropositionEditor proposition, String compoundOpCode);
58
59 public PropositionEditor createSimplePropositionBoStub(PropositionEditor sibling);
60
61 public Boolean compareProposition(PropositionEditor original, PropositionEditor compare);
62
63 public Boolean compareCompoundProposition(List<PropositionEditor> original, List<PropositionEditor> compare);
64
65 public Boolean compareTerm(List<TermParameterEditor> original, List<TermParameterEditor> compare);
66
67 }