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  
29  /**
30   *
31   * @author Kuali Student Team
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  }