001 /*
002 * Copyright 2011 The Kuali Foundation.
003 *
004 * Licensed under the Educational Community License, Version 2.0 (the "License");
005 * you may not use this file except in compliance with the License.
006 * You may obtain a copy of the License at
007 *
008 * http://www.opensource.org/licenses/ecl2.php
009 *
010 * Unless required by applicable law or agreed to in writing, software
011 * distributed under the License is distributed on an "AS IS" BASIS,
012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013 * See the License for the specific language governing permissions and
014 * limitations under the License.
015 */
016
017 package org.kuali.kfs.module.bc.businessobject;
018
019 import java.util.LinkedHashMap;
020
021 import org.kuali.kfs.coa.businessobject.Account;
022 import org.kuali.kfs.coa.businessobject.Chart;
023 import org.kuali.kfs.coa.businessobject.Organization;
024 import org.kuali.kfs.coa.businessobject.SubAccount;
025 import org.kuali.kfs.coa.businessobject.SubFundGroup;
026 import org.kuali.kfs.sys.KFSPropertyConstants;
027 import org.kuali.rice.kns.bo.PersistableBusinessObjectBase;
028
029 /**
030 *
031 */
032 public class BudgetConstructionControlList extends PersistableBusinessObjectBase {
033
034 private String principalId;
035 private String documentNumber;
036 private Integer universityFiscalYear;
037 private String chartOfAccountsCode;
038 private String accountNumber;
039 private String subAccountNumber;
040 private Integer hierarchyOrganizationLevelCode;
041 private Integer selectedOrganizationLevelCode;
042 private String selectedOrganizationChartOfAccountsCode;
043 private String selectedOrganizationCode;
044 private Integer selectedPullFlag;
045 private String selectedSubFundGroupCode;
046
047 private BudgetConstructionHeader budgetConstructionHeader;
048 private Account account;
049 private Chart chartOfAccounts;
050 private Organization selectedOrganization;
051 private Chart selectedOrganizationChartOfAccounts;
052 private SubAccount subAccount;
053 private SubFundGroup selectedSubFundGroup;
054
055 /**
056 * Default constructor.
057 */
058 public BudgetConstructionControlList() {
059
060 }
061
062 /**
063 * Gets the principalId attribute.
064 *
065 * @return Returns the principalId
066 */
067 public String getPrincipalId() {
068 return principalId;
069 }
070
071 /**
072 * Sets the principalId attribute.
073 *
074 * @param principalId The principalId to set.
075 */
076 public void setPrincipalId(String principalId) {
077 this.principalId = principalId;
078 }
079
080
081 /**
082 * Gets the documentNumber attribute.
083 *
084 * @return Returns the documentNumber
085 */
086 public String getDocumentNumber() {
087 return documentNumber;
088 }
089
090 /**
091 * Sets the documentNumber attribute.
092 *
093 * @param documentNumber The documentNumber to set.
094 */
095 public void setDocumentNumber(String documentNumber) {
096 this.documentNumber = documentNumber;
097 }
098
099
100 /**
101 * Gets the universityFiscalYear attribute.
102 *
103 * @return Returns the universityFiscalYear
104 */
105 public Integer getUniversityFiscalYear() {
106 return universityFiscalYear;
107 }
108
109 /**
110 * Sets the universityFiscalYear attribute.
111 *
112 * @param universityFiscalYear The universityFiscalYear to set.
113 */
114 public void setUniversityFiscalYear(Integer universityFiscalYear) {
115 this.universityFiscalYear = universityFiscalYear;
116 }
117
118
119 /**
120 * Gets the chartOfAccountsCode attribute.
121 *
122 * @return Returns the chartOfAccountsCode
123 */
124 public String getChartOfAccountsCode() {
125 return chartOfAccountsCode;
126 }
127
128 /**
129 * Sets the chartOfAccountsCode attribute.
130 *
131 * @param chartOfAccountsCode The chartOfAccountsCode to set.
132 */
133 public void setChartOfAccountsCode(String chartOfAccountsCode) {
134 this.chartOfAccountsCode = chartOfAccountsCode;
135 }
136
137
138 /**
139 * Gets the accountNumber attribute.
140 *
141 * @return Returns the accountNumber
142 */
143 public String getAccountNumber() {
144 return accountNumber;
145 }
146
147 /**
148 * Sets the accountNumber attribute.
149 *
150 * @param accountNumber The accountNumber to set.
151 */
152 public void setAccountNumber(String accountNumber) {
153 this.accountNumber = accountNumber;
154 }
155
156
157 /**
158 * Gets the subAccountNumber attribute.
159 *
160 * @return Returns the subAccountNumber
161 */
162 public String getSubAccountNumber() {
163 return subAccountNumber;
164 }
165
166 /**
167 * Sets the subAccountNumber attribute.
168 *
169 * @param subAccountNumber The subAccountNumber to set.
170 */
171 public void setSubAccountNumber(String subAccountNumber) {
172 this.subAccountNumber = subAccountNumber;
173 }
174
175
176 /**
177 * Gets the hierarchyOrganizationLevelCode attribute.
178 *
179 * @return Returns the hierarchyOrganizationLevelCode
180 */
181 public Integer getHierarchyOrganizationLevelCode() {
182 return hierarchyOrganizationLevelCode;
183 }
184
185 /**
186 * Sets the hierarchyOrganizationLevelCode attribute.
187 *
188 * @param hierarchyOrganizationLevelCode The hierarchyOrganizationLevelCode to set.
189 */
190 public void setHierarchyOrganizationLevelCode(Integer hierarchyOrganizationLevelCode) {
191 this.hierarchyOrganizationLevelCode = hierarchyOrganizationLevelCode;
192 }
193
194
195 /**
196 * Gets the selectedOrganizationLevelCode attribute.
197 *
198 * @return Returns the selectedOrganizationLevelCode
199 */
200 public Integer getSelectedOrganizationLevelCode() {
201 return selectedOrganizationLevelCode;
202 }
203
204 /**
205 * Sets the selectedOrganizationLevelCode attribute.
206 *
207 * @param selectedOrganizationLevelCode The selectedOrganizationLevelCode to set.
208 */
209 public void setSelectedOrganizationLevelCode(Integer selectedOrganizationLevelCode) {
210 this.selectedOrganizationLevelCode = selectedOrganizationLevelCode;
211 }
212
213
214 /**
215 * Gets the selectedOrganizationChartOfAccountsCode attribute.
216 *
217 * @return Returns the selectedOrganizationChartOfAccountsCode
218 */
219 public String getSelectedOrganizationChartOfAccountsCode() {
220 return selectedOrganizationChartOfAccountsCode;
221 }
222
223 /**
224 * Sets the selectedOrganizationChartOfAccountsCode attribute.
225 *
226 * @param selectedOrganizationChartOfAccountsCode The selectedOrganizationChartOfAccountsCode to set.
227 */
228 public void setSelectedOrganizationChartOfAccountsCode(String selectedOrganizationChartOfAccountsCode) {
229 this.selectedOrganizationChartOfAccountsCode = selectedOrganizationChartOfAccountsCode;
230 }
231
232
233 /**
234 * Gets the selectedOrganizationCode attribute.
235 *
236 * @return Returns the selectedOrganizationCode
237 */
238 public String getSelectedOrganizationCode() {
239 return selectedOrganizationCode;
240 }
241
242 /**
243 * Sets the selectedOrganizationCode attribute.
244 *
245 * @param selectedOrganizationCode The selectedOrganizationCode to set.
246 */
247 public void setSelectedOrganizationCode(String selectedOrganizationCode) {
248 this.selectedOrganizationCode = selectedOrganizationCode;
249 }
250
251
252 /**
253 * Gets the selectedPullFlag attribute.
254 *
255 * @return Returns the selectedPullFlag
256 */
257 public Integer getSelectedPullFlag() {
258 return selectedPullFlag;
259 }
260
261 /**
262 * Sets the selectedPullFlag attribute.
263 *
264 * @param selectedPullFlag The selectedPullFlag to set.
265 */
266 public void setSelectedPullFlag(Integer selectedPullFlag) {
267 this.selectedPullFlag = selectedPullFlag;
268 }
269
270
271 /**
272 * Gets the selectedSubFundGroupCode attribute.
273 *
274 * @return Returns the selectedSubFundGroupCode
275 */
276 public String getSelectedSubFundGroupCode() {
277 return selectedSubFundGroupCode;
278 }
279
280 /**
281 * Sets the selectedSubFundGroupCode attribute.
282 *
283 * @param selectedSubFundGroupCode The selectedSubFundGroupCode to set.
284 */
285 public void setSelectedSubFundGroupCode(String selectedSubFundGroupCode) {
286 this.selectedSubFundGroupCode = selectedSubFundGroupCode;
287 }
288
289
290 /**
291 * Gets the account attribute.
292 *
293 * @return Returns the account
294 */
295 public Account getAccount() {
296 return account;
297 }
298
299 /**
300 * Sets the account attribute.
301 *
302 * @param account The account to set.
303 * @deprecated
304 */
305 public void setAccount(Account account) {
306 this.account = account;
307 }
308
309 /**
310 * Gets the chartOfAccounts attribute.
311 *
312 * @return Returns the chartOfAccounts
313 */
314 public Chart getChartOfAccounts() {
315 return chartOfAccounts;
316 }
317
318 /**
319 * Sets the chartOfAccounts attribute.
320 *
321 * @param chartOfAccounts The chartOfAccounts to set.
322 * @deprecated
323 */
324 public void setChartOfAccounts(Chart chartOfAccounts) {
325 this.chartOfAccounts = chartOfAccounts;
326 }
327
328 /**
329 * Gets the selectedOrganization attribute.
330 *
331 * @return Returns the selectedOrganization
332 */
333 public Organization getSelectedOrganization() {
334 return selectedOrganization;
335 }
336
337 /**
338 * Sets the selectedOrganization attribute.
339 *
340 * @param selectedOrganization The selectedOrganization to set.
341 * @deprecated
342 */
343 public void setSelectedOrganization(Organization selectedOrganization) {
344 this.selectedOrganization = selectedOrganization;
345 }
346
347 /**
348 * Gets the selectedOrganizationChartOfAccounts attribute.
349 *
350 * @return Returns the selectedOrganizationChartOfAccounts
351 */
352 public Chart getSelectedOrganizationChartOfAccounts() {
353 return selectedOrganizationChartOfAccounts;
354 }
355
356 /**
357 * Sets the selectedOrganizationChartOfAccounts attribute.
358 *
359 * @param selectedOrganizationChartOfAccounts The selectedOrganizationChartOfAccounts to set.
360 * @deprecated
361 */
362 public void setSelectedOrganizationChartOfAccounts(Chart selectedOrganizationChartOfAccounts) {
363 this.selectedOrganizationChartOfAccounts = selectedOrganizationChartOfAccounts;
364 }
365
366 /**
367 * Gets the subAccount attribute.
368 *
369 * @return Returns the subAccount.
370 */
371 public SubAccount getSubAccount() {
372 return subAccount;
373 }
374
375 /**
376 * Sets the subAccount attribute value.
377 *
378 * @param subAccount The subAccount to set.
379 * @deprecated
380 */
381 public void setSubAccount(SubAccount subAccount) {
382 this.subAccount = subAccount;
383 }
384
385 /**
386 * Gets the selectedSubFundGroup attribute.
387 *
388 * @return Returns the selectedSubFundGroup.
389 */
390 public SubFundGroup getSelectedSubFundGroup() {
391 return selectedSubFundGroup;
392 }
393
394 /**
395 * Sets the selectedSubFundGroup attribute value.
396 *
397 * @param selectedSubFundGroup The selectedSubFundGroup to set.
398 * @deprecated
399 */
400 public void setSelectedSubFundGroup(SubFundGroup selectedSubFundGroup) {
401 this.selectedSubFundGroup = selectedSubFundGroup;
402 }
403
404 /**
405 * Gets the budgetConstructionHeader attribute.
406 *
407 * @return Returns the budgetConstructionHeader.
408 */
409 public BudgetConstructionHeader getBudgetConstructionHeader() {
410 return budgetConstructionHeader;
411 }
412
413 /**
414 * Sets the budgetConstructionHeader attribute value.
415 *
416 * @param budgetConstructionHeader The budgetConstructionHeader to set.
417 * @deprecated
418 */
419 public void setBudgetConstructionHeader(BudgetConstructionHeader budgetConstructionHeader) {
420 this.budgetConstructionHeader = budgetConstructionHeader;
421 }
422
423 /**
424 * @see org.kuali.rice.kns.bo.BusinessObjectBase#toStringMapper()
425 */
426 protected LinkedHashMap toStringMapper() {
427 LinkedHashMap m = new LinkedHashMap();
428 m.put("principalId", this.principalId);
429 m.put(KFSPropertyConstants.DOCUMENT_NUMBER, this.documentNumber);
430 if (this.universityFiscalYear != null) {
431 m.put("universityFiscalYear", this.universityFiscalYear.toString());
432 }
433 m.put("chartOfAccountsCode", this.chartOfAccountsCode);
434 m.put("accountNumber", this.accountNumber);
435 m.put("subAccountNumber", this.subAccountNumber);
436 return m;
437 }
438
439 }
440