1 package org.kuali.rice.krms.dto;
2
3 import org.kuali.rice.core.api.util.tree.Tree;
4 import org.kuali.rice.krad.web.form.UifFormBase;
5 import org.kuali.rice.krms.tree.node.CompareTreeNode;
6 import org.kuali.rice.krms.tree.node.RuleEditorTreeNode;
7 import org.kuali.rice.krms.tree.node.TreeNode;
8
9 import java.util.ArrayList;
10 import java.util.List;
11
12
13
14
15
16
17
18
19 public class RuleManagementWrapper extends UifFormBase {
20
21 private String refObjectId;
22 private String selectedRuleId;
23 private String namePrefix;
24 private String namespace;
25
26 private List<AgendaEditor> agendas;
27 private RuleEditor ruleEditor;
28
29 private List<String> deletedRuleIds;
30
31 private Tree<CompareTreeNode, String> compareTree;
32
33 public String getRefObjectId() {
34 return refObjectId;
35 }
36
37 public void setRefObjectId(String refObjectId) {
38 this.refObjectId = refObjectId;
39 }
40
41 public String getSelectedRuleId() {
42 return selectedRuleId;
43 }
44
45 public void setSelectedRuleId(String selectedRuleId) {
46 this.selectedRuleId = selectedRuleId;
47 }
48
49 public List<AgendaEditor> getAgendas() {
50 return agendas;
51 }
52
53 public void setAgendas(List<AgendaEditor> agendas) {
54 this.agendas = agendas;
55 }
56
57 public Tree<CompareTreeNode, String> getCompareTree() {
58 return compareTree;
59 }
60
61 public void setCompareTree(Tree<CompareTreeNode, String> compareTree) {
62 this.compareTree = compareTree;
63 }
64
65 public RuleEditor getRuleEditor() {
66 return ruleEditor;
67 }
68
69 public void setRuleEditor(RuleEditor ruleEditor) {
70 this.ruleEditor = ruleEditor;
71 }
72
73 public Tree<RuleEditorTreeNode, String> getEditTree() {
74 return this.getRuleEditor().getEditTree();
75 }
76
77 public Tree<TreeNode, String> getPreviewTree() {
78 return this.getRuleEditor().getPreviewTree();
79 }
80
81 public Tree<TreeNode, String> getViewTree() {
82 return this.getRuleEditor().getViewTree();
83 }
84
85 public void setActiveSelections(List<String> activeSelections) {
86 this.getRuleEditor().setActiveSelections(activeSelections);
87 }
88
89 public List<String> getActiveSelections(){
90 return this.getRuleEditor().getActiveSelections();
91 }
92
93 public String getSelectedKey() {
94 return this.getRuleEditor().getSelectedKey();
95 }
96
97 public void setSelectedKey(String selectedKey) {
98 this.getRuleEditor().setSelectedKey(selectedKey);
99 }
100
101 public String getCutKey() {
102 return this.getRuleEditor().getCutKey();
103 }
104
105 public void setCutKey(String cutKey) {
106 this.getRuleEditor().setCutKey(cutKey);
107 }
108
109 public String getCopyKey() {
110 return this.getRuleEditor().getCopyKey();
111 }
112
113 public void setCopyKey(String copyKey) {
114 this.getRuleEditor().setCopyKey(copyKey);
115 }
116
117 public String getLogicArea() {
118 return this.getRuleEditor().getLogicArea();
119 }
120
121 public void setLogicArea(String logicArea) {
122 this.getRuleEditor().setLogicArea(logicArea);
123 }
124
125 public String getSelectedTab() {
126 return this.getRuleEditor().getSelectedTab();
127 }
128
129 public void setSelectedTab(String selectedTab) {
130 this.getRuleEditor().setSelectedTab(selectedTab);
131 }
132
133 public List<String> getDeletedRuleIds() {
134 if(this.deletedRuleIds == null) {
135 return deletedRuleIds = new ArrayList<String>();
136 }
137 return deletedRuleIds;
138 }
139
140 public void setDeletedRuleIds(List<String> deletedRuleIds) {
141 this.deletedRuleIds = deletedRuleIds;
142 }
143
144 public String getNamePrefix() {
145 return namePrefix;
146 }
147
148 public void setRulePrefix(String namePrefix) {
149 this.namePrefix = namePrefix;
150 }
151
152 public String getNamespace() {
153 return namespace;
154 }
155
156 public void setNamespace(String namespace) {
157 this.namespace = namespace;
158 }
159 }