View Javadoc

1   package org.kuali.rice.krms.service;
2   
3   import org.kuali.rice.core.api.util.tree.Tree;
4   import org.kuali.rice.krms.api.repository.rule.RuleDefinitionContract;
5   import org.kuali.rice.krms.dto.PropositionEditor;
6   import org.kuali.rice.krms.dto.RuleEditor;
7   import org.kuali.rice.krms.dto.TemplateInfo;
8   import org.kuali.student.enrollment.class1.krms.dto.EnrolPropositionEditor;
9   import org.kuali.student.enrollment.class1.krms.dto.EnrolRuleEditor;
10  import org.kuali.rice.krms.tree.node.CompareTreeNode;
11  
12  /**
13   * Created with IntelliJ IDEA.
14   * User: SW
15   * Date: 2012/12/04
16   * Time: 11:51 AM
17   * To change this template use File | Settings | File Templates.
18   */
19  public interface RuleViewHelperService {
20  
21      public String resetDescription(PropositionEditor prop);
22  
23      public TemplateInfo getTemplateForType(String type);
24  
25      public String getViewTypeName();
26  
27      public boolean validateProposition(PropositionEditor proposition, String namespace);
28  
29      public void refreshInitTrees(RuleEditor rule);
30  
31      public void refreshViewTree(RuleEditor rule);
32  
33      public Tree<CompareTreeNode, String> buildCompareTree(RuleDefinitionContract original, String compareToRefObjectId) throws Exception;
34  
35      public PropositionEditor copyProposition(PropositionEditor proposition);
36  
37      public PropositionEditor createCompoundPropositionBoStub(PropositionEditor existing, boolean addNewChild);
38  
39      public PropositionEditor createSimplePropositionBoStub(PropositionEditor sibling);
40  
41  }