1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20 package org.kuali.ole.pdp.businessobject;
21
22 import java.util.Date;
23 import java.util.LinkedHashMap;
24 import java.util.List;
25
26 import org.kuali.ole.pdp.PdpPropertyConstants;
27 import org.kuali.rice.core.api.util.type.KualiDecimal;
28 import org.kuali.rice.core.api.util.type.KualiInteger;
29 import org.kuali.rice.krad.bo.TransientBusinessObjectBase;
30 import org.kuali.rice.krad.util.MessageMap;
31
32
33
34
35
36 public class LoadPaymentStatus extends TransientBusinessObjectBase {
37 public static enum LoadStatus {
38 SUCCESS, FAILURE
39 }
40
41 private int detailCount;
42 private KualiDecimal detailTotal;
43 private String chart;
44 private String unit;
45 private String subUnit;
46 private Date creationDate;
47 private KualiInteger batchId;
48
49 private LoadStatus loadStatus;
50 private List<String> warnings;
51 private MessageMap errorMap;
52
53 public LoadPaymentStatus() {
54 super();
55 }
56
57 public LoadPaymentStatus(List<String> w, int d, KualiDecimal dt) {
58 warnings = w;
59 detailCount = d;
60 detailTotal = dt;
61 }
62
63
64
65
66
67
68 public List<String> getWarnings() {
69 return warnings;
70 }
71
72
73
74
75
76
77 public void setWarnings(List<String> warnings) {
78 this.warnings = warnings;
79 }
80
81
82
83
84
85
86 public int getDetailCount() {
87 return detailCount;
88 }
89
90
91
92
93
94
95 public void setDetailCount(int detailCount) {
96 this.detailCount = detailCount;
97 }
98
99
100
101
102
103
104 public KualiDecimal getDetailTotal() {
105 return detailTotal;
106 }
107
108
109
110
111
112
113 public void setDetailTotal(KualiDecimal detailTotal) {
114 this.detailTotal = detailTotal;
115 }
116
117
118
119
120
121
122 public KualiInteger getBatchId() {
123 return batchId;
124 }
125
126
127
128
129
130
131 public void setBatchId(KualiInteger batchId) {
132 this.batchId = batchId;
133 }
134
135
136
137
138
139
140 public LoadStatus getLoadStatus() {
141 return loadStatus;
142 }
143
144
145
146
147
148
149 public void setLoadStatus(LoadStatus loadStatus) {
150 this.loadStatus = loadStatus;
151 }
152
153
154
155
156
157
158 public MessageMap getMessageMap() {
159 return errorMap;
160 }
161
162
163
164
165
166
167 public void setMessageMap(MessageMap errorMap) {
168 this.errorMap = errorMap;
169 }
170
171
172
173
174
175
176 public String getChart() {
177 return chart;
178 }
179
180
181
182
183
184
185 public void setChart(String chart) {
186 this.chart = chart;
187 }
188
189
190
191
192
193
194 public String getUnit() {
195 return unit;
196 }
197
198
199
200
201
202
203 public void setUnit(String unit) {
204 this.unit = unit;
205 }
206
207
208
209
210
211
212 public String getSubUnit() {
213 return subUnit;
214 }
215
216
217
218
219
220
221 public void setSubUnit(String subUnit) {
222 this.subUnit = subUnit;
223 }
224
225
226
227
228
229
230 public Date getCreationDate() {
231 return creationDate;
232 }
233
234
235
236
237
238
239 public void setCreationDate(Date creationDate) {
240 this.creationDate = creationDate;
241 }
242
243
244 protected LinkedHashMap toStringMapper_RICE20_REFACTORME() {
245 LinkedHashMap m = new LinkedHashMap();
246 m.put(PdpPropertyConstants.DETAIL_COUNT, this.detailCount);
247 m.put(PdpPropertyConstants.BATCH_ID, this.batchId);
248
249 return m;
250 }
251 }