001 package org.kuali.rice.krms.service; 002 003 import org.kuali.rice.core.api.util.tree.Tree; 004 import org.kuali.rice.krms.api.repository.rule.RuleDefinitionContract; 005 import org.kuali.rice.krms.dto.PropositionEditor; 006 import org.kuali.rice.krms.dto.RuleEditor; 007 import org.kuali.rice.krms.dto.TemplateInfo; 008 import org.kuali.student.enrollment.class1.krms.dto.EnrolPropositionEditor; 009 import org.kuali.student.enrollment.class1.krms.dto.EnrolRuleEditor; 010 import org.kuali.rice.krms.tree.node.CompareTreeNode; 011 012 /** 013 * Created with IntelliJ IDEA. 014 * User: SW 015 * Date: 2012/12/04 016 * Time: 11:51 AM 017 * To change this template use File | Settings | File Templates. 018 */ 019 public interface RuleViewHelperService { 020 021 public String resetDescription(PropositionEditor prop); 022 023 public TemplateInfo getTemplateForType(String type); 024 025 public String getViewTypeName(); 026 027 public boolean validateProposition(PropositionEditor proposition, String namespace); 028 029 public void refreshInitTrees(RuleEditor rule); 030 031 public void refreshViewTree(RuleEditor rule); 032 033 public Tree<CompareTreeNode, String> buildCompareTree(RuleDefinitionContract original, String compareToRefObjectId) throws Exception; 034 035 public PropositionEditor copyProposition(PropositionEditor proposition); 036 037 public PropositionEditor createCompoundPropositionBoStub(PropositionEditor existing, boolean addNewChild); 038 039 public PropositionEditor createSimplePropositionBoStub(PropositionEditor sibling); 040 041 }