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.dto; 017 018import org.kuali.rice.core.api.util.tree.Tree; 019import org.kuali.rice.krad.web.form.UifFormBase; 020import org.kuali.rice.krms.tree.node.CompareTreeNode; 021import org.kuali.rice.krms.tree.node.RuleEditorTreeNode; 022import org.kuali.rice.krms.tree.node.TreeNode; 023 024import java.util.ArrayList; 025import java.util.List; 026 027/** 028 * @author Kuali Student Team 029 */ 030public class RuleManagementWrapper extends UifFormBase { 031 032 private String refObjectId; 033 private String namespace; 034 private String refDiscriminatorType; 035 036 private List<AgendaEditor> agendas; 037 private RuleEditor ruleEditor; 038 039 private Tree<CompareTreeNode, String> compareTree; 040 041 private String compareLightBoxHeader; 042 043 public String getRefObjectId() { 044 return refObjectId; 045 } 046 047 public void setRefObjectId(String refObjectId) { 048 this.refObjectId = refObjectId; 049 } 050 051 public List<AgendaEditor> getAgendas() { 052 return agendas; 053 } 054 055 public void setAgendas(List<AgendaEditor> agendas) { 056 this.agendas = agendas; 057 } 058 059 public Tree<CompareTreeNode, String> getCompareTree() { 060 return compareTree; 061 } 062 063 public void setCompareTree(Tree<CompareTreeNode, String> compareTree) { 064 this.compareTree = compareTree; 065 } 066 067 public RuleEditor getRuleEditor() { 068 return ruleEditor; 069 } 070 071 public void setRuleEditor(RuleEditor ruleEditor) { 072 this.ruleEditor = ruleEditor; 073 } 074 075 public Tree<RuleEditorTreeNode, String> getEditTree() { 076 return this.getRuleEditor().getEditTree(); 077 } 078 079 public Tree<TreeNode, String> getPreviewTree() { 080 return this.getRuleEditor().getPreviewTree(); 081 } 082 083 public Tree<TreeNode, String> getViewTree() { 084 return this.getRuleEditor().getViewTree(); 085 } 086 087 public void setActiveSelections(List<String> activeSelections) { 088 this.getRuleEditor().setActiveSelections(activeSelections); 089 } 090 091 public List<String> getActiveSelections(){ 092 return this.getRuleEditor().getActiveSelections(); 093 } 094 095 public String getSelectedKey() { 096 return this.getRuleEditor().getSelectedKey(); 097 } 098 099 public void setSelectedKey(String selectedKey) { 100 this.getRuleEditor().setSelectedKey(selectedKey); 101 } 102 103 public String getCutKey() { 104 return this.getRuleEditor().getCutKey(); 105 } 106 107 public void setCutKey(String cutKey) { 108 this.getRuleEditor().setCutKey(cutKey); 109 } 110 111 public String getCopyKey() { 112 return this.getRuleEditor().getCopyKey(); 113 } 114 115 public void setCopyKey(String copyKey) { 116 this.getRuleEditor().setCopyKey(copyKey); 117 } 118 119 public String getLogicArea() { 120 return this.getRuleEditor().getLogicArea(); 121 } 122 123 public void setLogicArea(String logicArea) { 124 this.getRuleEditor().setLogicArea(logicArea); 125 } 126 127 public String getNamespace() { 128 return namespace; 129 } 130 131 public void setNamespace(String namespace) { 132 this.namespace = namespace; 133 } 134 135 public String getRefDiscriminatorType() { 136 return refDiscriminatorType; 137 } 138 139 public void setRefDiscriminatorType(String refDiscriminatorType) { 140 this.refDiscriminatorType = refDiscriminatorType; 141 } 142 143 public String getCompareLightBoxHeader(){ 144 return compareLightBoxHeader; 145 } 146 147 public void setCompareLightBoxHeader( String compareLightBoxHeader){ 148 this.compareLightBoxHeader = compareLightBoxHeader; 149 } 150}