001/** 002 * Copyright 2005-2013 The Kuali Foundation 003 * 004 * Licensed under the Educational Community License, Version 2.0 (the "License"); 005 * you may not use this file except in compliance with the License. 006 * You may obtain a copy of the License at 007 * 008 * http://www.opensource.org/licenses/ecl2.php 009 * 010 * Unless required by applicable law or agreed to in writing, software 011 * distributed under the License is distributed on an "AS IS" BASIS, 012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 013 * See the License for the specific language governing permissions and 014 * limitations under the License. 015 */ 016package org.kuali.rice.krms.service; 017 018import org.kuali.rice.core.api.util.tree.Tree; 019import org.kuali.rice.krms.api.repository.reference.ReferenceObjectBinding; 020import org.kuali.rice.krms.api.repository.rule.RuleDefinitionContract; 021import org.kuali.rice.krms.dto.PropositionEditor; 022import org.kuali.rice.krms.dto.RuleEditor; 023import org.kuali.rice.krms.dto.TemplateInfo; 024import org.kuali.rice.krms.dto.TermParameterEditor; 025import org.kuali.rice.krms.tree.node.CompareTreeNode; 026 027import java.util.List; 028 029/** 030 * 031 * @author Kuali Student Team 032 */ 033public interface RuleViewHelperService { 034 035 public void validateProposition(PropositionEditor proposition); 036 037 public void resetDescription(PropositionEditor proposition); 038 039 public void configurePropositionForType(PropositionEditor proposition); 040 041 public TemplateInfo getTemplateForType(String type); 042 043 public void refreshInitTrees(RuleEditor rule); 044 045 public void refreshViewTree(RuleEditor rule); 046 047 public Tree<CompareTreeNode, String> buildCompareTree(RuleEditor original, RuleEditor compare) throws Exception; 048 049 public Tree<CompareTreeNode, String> buildMultiViewTree(RuleEditor coRuleEditor, RuleEditor cluRuleEditor) throws Exception; 050 051 public Boolean compareRules(RuleEditor original); 052 053 public PropositionEditor copyProposition(PropositionEditor proposition); 054 055 public PropositionEditor createCompoundPropositionBoStub(PropositionEditor existing, boolean addNewChild); 056 057 public void setTypeForCompoundOpCode(PropositionEditor proposition, String compoundOpCode); 058 059 public PropositionEditor createSimplePropositionBoStub(PropositionEditor sibling); 060 061 public Boolean compareProposition(PropositionEditor original, PropositionEditor compare); 062 063 public Boolean compareCompoundProposition(List<PropositionEditor> original, List<PropositionEditor> compare); 064 065 public Boolean compareTerm(List<TermParameterEditor> original, List<TermParameterEditor> compare); 066 067}