1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package org.kuali.student.enrollment.class2.population.dto;
18
19 import org.kuali.student.r2.core.constants.PopulationServiceConstants;
20 import org.kuali.student.r2.core.population.dto.PopulationInfo;
21 import org.kuali.student.r2.core.population.dto.PopulationRuleInfo;
22
23 import java.io.Serializable;
24 import java.util.ArrayList;
25 import java.util.List;
26
27
28
29
30
31
32 public class PopulationWrapper implements Serializable {
33 private String id;
34 private PopulationInfo populationInfo;
35 private PopulationRuleInfo populationRuleInfo;
36 private String keyword;
37 private String operationType;
38 private String operationTypeText;
39 private String populationRuleTypeKeyName;
40 private String populationStateKeyName;
41 private boolean createByRule;
42 private boolean enableCreateButton;
43
44 private List<PopulationInfo> childPopulations;
45 private PopulationInfo referencePopulation;
46
47 protected String viewId;
48
49 public PopulationWrapper(){
50 createByRule = true;
51 enableCreateButton = true;
52 operationType = PopulationServiceConstants.POPULATION_RULE_TYPE_UNION_KEY;
53 populationInfo = new PopulationInfo();
54 populationRuleInfo = new PopulationRuleInfo();
55 childPopulations = new ArrayList<PopulationInfo>();
56 referencePopulation = new PopulationInfo();
57 }
58
59 public String getId() {
60 return id;
61 }
62
63 public void setId(String id) {
64 this.id = id;
65 }
66
67 public PopulationInfo getPopulationInfo() {
68 return populationInfo;
69 }
70
71 public void setPopulationInfo(PopulationInfo populationInfo) {
72 this.populationInfo = populationInfo;
73 }
74
75 public PopulationRuleInfo getPopulationRuleInfo() {
76 return populationRuleInfo;
77 }
78
79 public void setPopulationRuleInfo(PopulationRuleInfo populationRuleInfo) {
80 this.populationRuleInfo = populationRuleInfo;
81 }
82
83 public String getKeyword() {
84 return keyword;
85 }
86
87 public void setKeyword(String keyword) {
88 this.keyword = keyword;
89 }
90
91 public String getOperationType() {
92 return operationType;
93 }
94
95 public void setOperationType(String operationType) {
96 this.operationType = operationType;
97 }
98
99 public String getOperationTypeText() {
100 return operationTypeText;
101 }
102
103 public void setOperationTypeText(String operationTypeText) {
104 this.operationTypeText = operationTypeText;
105 }
106
107 public String getPopulationRuleTypeKeyName() {
108 return populationRuleTypeKeyName;
109 }
110
111 public void setPopulationRuleTypeKeyName(String populationRuleTypeKeyName) {
112 this.populationRuleTypeKeyName = populationRuleTypeKeyName;
113 }
114
115 public String getPopulationStateKeyName() {
116 return populationStateKeyName;
117 }
118
119 public void setPopulationStateKeyName(String populationStateKeyName) {
120 this.populationStateKeyName = populationStateKeyName;
121 }
122
123 public boolean isCreateByRule() {
124 return createByRule;
125 }
126
127 public void setCreateByRule(boolean createByRule) {
128 this.createByRule = createByRule;
129 }
130
131 public boolean isEnableCreateButton() {
132 return enableCreateButton;
133 }
134
135 public void setEnableCreateButton(boolean enableCreateButton) {
136 this.enableCreateButton = enableCreateButton;
137 }
138
139 public List<PopulationInfo> getChildPopulations() {
140 return childPopulations;
141 }
142
143 public void setChildPopulations(List<PopulationInfo> childPopulations) {
144 this.childPopulations = childPopulations;
145 }
146
147 public PopulationInfo getReferencePopulation() {
148 return referencePopulation;
149 }
150
151 public void setReferencePopulation(PopulationInfo referencePopulation) {
152 this.referencePopulation = referencePopulation;
153 }
154
155 public String getViewId() {
156 return viewId;
157 }
158
159 public void setViewId(String viewId) {
160 this.viewId = viewId;
161 }
162
163 }