View Javadoc
1   /**
2    * Copyright 2005-2013 The Kuali Foundation
3    *
4    * Licensed under the Educational Community License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    *
8    * http://www.opensource.org/licenses/ecl2.php
9    *
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
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   * @author Kuali Student Team
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  }