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.dto;
17  
18  import org.kuali.rice.core.api.util.tree.Tree;
19  import org.kuali.rice.krad.web.form.UifFormBase;
20  import org.kuali.rice.krms.tree.node.CompareTreeNode;
21  import org.kuali.rice.krms.tree.node.RuleEditorTreeNode;
22  import org.kuali.rice.krms.tree.node.TreeNode;
23  
24  import java.util.ArrayList;
25  import java.util.List;
26  
27  /**
28   * @author Kuali Student Team
29   */
30  public class RuleManagementWrapper extends UifFormBase {
31  
32      private String refObjectId;
33      private String namespace;
34      private String refDiscriminatorType;
35  
36      private List<AgendaEditor> agendas;
37      private RuleEditor ruleEditor;
38  
39      private Tree<CompareTreeNode, String> compareTree;
40  
41      private String compareLightBoxHeader;
42  
43      public String getRefObjectId() {
44          return refObjectId;
45      }
46  
47      public void setRefObjectId(String refObjectId) {
48          this.refObjectId = refObjectId;
49      }
50  
51      public List<AgendaEditor> getAgendas() {
52          return agendas;
53      }
54  
55      public void setAgendas(List<AgendaEditor> agendas) {
56          this.agendas = agendas;
57      }
58  
59      public Tree<CompareTreeNode, String> getCompareTree() {
60          return compareTree;
61      }
62  
63      public void setCompareTree(Tree<CompareTreeNode, String> compareTree) {
64          this.compareTree = compareTree;
65      }
66  
67      public RuleEditor getRuleEditor() {
68          return ruleEditor;
69      }
70  
71      public void setRuleEditor(RuleEditor ruleEditor) {
72          this.ruleEditor = ruleEditor;
73      }
74  
75      public Tree<RuleEditorTreeNode, String> getEditTree() {
76          return this.getRuleEditor().getEditTree();
77      }
78  
79      public Tree<TreeNode, String> getPreviewTree() {
80          return this.getRuleEditor().getPreviewTree();
81      }
82  
83      public Tree<TreeNode, String> getViewTree() {
84         return this.getRuleEditor().getViewTree();
85      }
86  
87      public void setActiveSelections(List<String> activeSelections) {
88          this.getRuleEditor().setActiveSelections(activeSelections);
89      }
90  
91      public List<String> getActiveSelections(){
92          return this.getRuleEditor().getActiveSelections();
93      }
94  
95      public String getSelectedKey() {
96          return this.getRuleEditor().getSelectedKey();
97      }
98  
99      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 }