1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package org.kuali.ole.module.cg.businessobject;
18
19 import java.util.LinkedHashMap;
20
21 import org.kuali.ole.integration.cg.ContractsAndGrantsAgency;
22 import org.kuali.ole.sys.OLEConstants;
23 import org.kuali.rice.core.api.mo.common.active.MutableInactivatable;
24 import org.kuali.rice.core.api.util.type.KualiDecimal;
25 import org.kuali.rice.krad.bo.PersistableBusinessObjectBase;
26
27
28
29
30
31 public class Agency extends PersistableBusinessObjectBase implements ContractsAndGrantsAgency, MutableInactivatable {
32
33 private String agencyNumber;
34 private String reportingName;
35 private String fullName;
36 private String agencyTypeCode;
37 private String reportsToAgencyNumber;
38 private KualiDecimal indirectAmount;
39 private boolean inStateIndicator;
40 private Agency reportsToAgency;
41 private AgencyType agencyType;
42 private boolean active;
43
44 public static final String CACHE_NAME = OLEConstants.APPLICATION_NAMESPACE_CODE + "/" + "Agency";
45
46
47
48
49
50
51 public String getAgencyTypeCode() {
52 return agencyTypeCode;
53 }
54
55
56
57
58
59
60 public void setAgencyTypeCode(String agencyTypeCode) {
61 this.agencyTypeCode = agencyTypeCode;
62 }
63
64
65
66
67
68
69 public String getReportsToAgencyNumber() {
70 return reportsToAgencyNumber;
71 }
72
73
74
75
76
77
78 public void setReportsToAgencyNumber(String reportsToAgencyNumber) {
79 this.reportsToAgencyNumber = reportsToAgencyNumber;
80 }
81
82
83
84
85 public Agency() {
86
87 }
88
89
90
91
92
93
94 @Override
95 public String getAgencyNumber() {
96 return agencyNumber;
97 }
98
99
100
101
102
103
104 public void setAgencyNumber(String agencyNumber) {
105 this.agencyNumber = agencyNumber;
106 }
107
108
109
110
111
112
113 public String getReportingName() {
114 return reportingName;
115 }
116
117
118
119
120
121
122 public void setReportingName(String reportingName) {
123 this.reportingName = reportingName;
124 }
125
126
127
128
129
130
131 public String getFullName() {
132 return fullName;
133 }
134
135
136
137
138
139
140 public void setFullName(String fullName) {
141 this.fullName = fullName;
142 }
143
144
145
146
147
148
149 public KualiDecimal getIndirectAmount() {
150 return indirectAmount;
151 }
152
153
154
155
156
157
158 public void setIndirectAmount(KualiDecimal indirectAmount) {
159 this.indirectAmount = indirectAmount;
160 }
161
162
163
164
165
166
167 public boolean isInStateIndicator() {
168 return inStateIndicator;
169 }
170
171
172
173
174
175
176 public void setInStateIndicator(boolean inStateIndicator) {
177 this.inStateIndicator = inStateIndicator;
178 }
179
180
181
182
183
184
185 public Agency getReportsToAgency() {
186 return reportsToAgency;
187 }
188
189
190
191
192
193
194
195
196 @Deprecated
197 public void setReportsToAgency(Agency reportsToAgencyNumber) {
198 this.reportsToAgency = reportsToAgencyNumber;
199 }
200
201
202
203
204
205
206 public AgencyType getAgencyType() {
207 return agencyType;
208 }
209
210
211
212
213
214
215
216
217 @Deprecated
218 public void setAgencyType(AgencyType agencyType) {
219 this.agencyType = agencyType;
220 }
221
222
223
224
225 protected LinkedHashMap toStringMapper_RICE20_REFACTORME() {
226 LinkedHashMap m = new LinkedHashMap();
227
228 m.put("agencyNumber", getAgencyNumber());
229 return m;
230 }
231
232
233
234
235
236
237
238
239 public boolean equals(Agency agency) {
240 return this.agencyNumber.equals(agency.getAgencyNumber());
241 }
242
243
244
245
246
247 @Override
248 public boolean isActive() {
249 return active;
250 }
251
252
253
254
255
256 @Override
257 public void setActive(boolean active) {
258 this.active = active;
259 }
260
261 }