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.math.BigDecimal; 020 import java.util.LinkedHashMap; 021 022 import org.kuali.kfs.coa.businessobject.Account; 023 import org.kuali.kfs.coa.businessobject.Chart; 024 import org.kuali.kfs.coa.businessobject.ObjectLevel; 025 import org.kuali.kfs.coa.businessobject.ObjectCode; 026 import org.kuali.kfs.coa.businessobject.Organization; 027 import org.kuali.kfs.coa.businessobject.SubAccount; 028 import org.kuali.kfs.coa.businessobject.SubFundGroup; 029 import org.kuali.kfs.coa.businessobject.SubObjectCode; 030 import org.kuali.rice.kns.bo.PersistableBusinessObjectBase; 031 import org.kuali.rice.kns.util.KualiInteger; 032 033 /** 034 * 035 */ 036 public class BudgetConstructionAccountBalance extends PersistableBusinessObjectBase { 037 038 private String principalId; 039 private String organizationChartOfAccountsCode; 040 private String organizationCode; 041 private String subFundGroupCode; 042 private Integer universityFiscalYear; 043 private String chartOfAccountsCode; 044 private String accountNumber; 045 private String subAccountNumber; 046 private String incomeExpenseCode; 047 private String financialLevelSortCode; 048 private String financialObjectCode; 049 private String financialSubObjectCode; 050 private String financialConsolidationSortCode; 051 private String financialObjectLevelCode; 052 private BigDecimal appointmentRequestedFteQuantity; 053 private BigDecimal appointmentRequestedCsfFteQuantity; 054 private BigDecimal positionFullTimeEquivalencyQuantity; 055 private KualiInteger financialBeginningBalanceLineAmount; 056 private KualiInteger accountLineAnnualBalanceAmount; 057 private BigDecimal positionCsfLeaveFteQuantity; 058 059 private Chart organizationChartOfAccounts; 060 private Organization organization; 061 private ObjectCode financialObject; 062 private Chart chartOfAccounts; 063 private Account account; 064 private SubAccount subAccount; 065 private SubObjectCode financialSubObject; 066 private SubFundGroup subFundGroup; 067 private ObjectLevel financialObjectLevel; 068 069 /** 070 * Default constructor. 071 */ 072 public BudgetConstructionAccountBalance() { 073 074 } 075 076 /** 077 * Gets the principalId attribute. 078 * 079 * @return Returns the principalId 080 */ 081 public String getPrincipalId() { 082 return principalId; 083 } 084 085 /** 086 * Sets the principalId attribute. 087 * 088 * @param principalId The principalId to set. 089 */ 090 public void setPrincipalId(String principalId) { 091 this.principalId = principalId; 092 } 093 094 095 /** 096 * Gets the organizationChartOfAccountsCode attribute. 097 * 098 * @return Returns the organizationChartOfAccountsCode 099 */ 100 public String getOrganizationChartOfAccountsCode() { 101 return organizationChartOfAccountsCode; 102 } 103 104 /** 105 * Sets the organizationChartOfAccountsCode attribute. 106 * 107 * @param organizationChartOfAccountsCode The organizationChartOfAccountsCode to set. 108 */ 109 public void setOrganizationChartOfAccountsCode(String organizationChartOfAccountsCode) { 110 this.organizationChartOfAccountsCode = organizationChartOfAccountsCode; 111 } 112 113 114 /** 115 * Gets the organizationCode attribute. 116 * 117 * @return Returns the organizationCode 118 */ 119 public String getOrganizationCode() { 120 return organizationCode; 121 } 122 123 /** 124 * Sets the organizationCode attribute. 125 * 126 * @param organizationCode The organizationCode to set. 127 */ 128 public void setOrganizationCode(String organizationCode) { 129 this.organizationCode = organizationCode; 130 } 131 132 133 /** 134 * Gets the subFundGroupCode attribute. 135 * 136 * @return Returns the subFundGroupCode 137 */ 138 public String getSubFundGroupCode() { 139 return subFundGroupCode; 140 } 141 142 /** 143 * Sets the subFundGroupCode attribute. 144 * 145 * @param subFundGroupCode The subFundGroupCode to set. 146 */ 147 public void setSubFundGroupCode(String subFundGroupCode) { 148 this.subFundGroupCode = subFundGroupCode; 149 } 150 151 152 /** 153 * Gets the universityFiscalYear attribute. 154 * 155 * @return Returns the universityFiscalYear 156 */ 157 public Integer getUniversityFiscalYear() { 158 return universityFiscalYear; 159 } 160 161 /** 162 * Sets the universityFiscalYear attribute. 163 * 164 * @param universityFiscalYear The universityFiscalYear to set. 165 */ 166 public void setUniversityFiscalYear(Integer universityFiscalYear) { 167 this.universityFiscalYear = universityFiscalYear; 168 } 169 170 171 /** 172 * Gets the chartOfAccountsCode attribute. 173 * 174 * @return Returns the chartOfAccountsCode 175 */ 176 public String getChartOfAccountsCode() { 177 return chartOfAccountsCode; 178 } 179 180 /** 181 * Sets the chartOfAccountsCode attribute. 182 * 183 * @param chartOfAccountsCode The chartOfAccountsCode to set. 184 */ 185 public void setChartOfAccountsCode(String chartOfAccountsCode) { 186 this.chartOfAccountsCode = chartOfAccountsCode; 187 } 188 189 190 /** 191 * Gets the accountNumber attribute. 192 * 193 * @return Returns the accountNumber 194 */ 195 public String getAccountNumber() { 196 return accountNumber; 197 } 198 199 /** 200 * Sets the accountNumber attribute. 201 * 202 * @param accountNumber The accountNumber to set. 203 */ 204 public void setAccountNumber(String accountNumber) { 205 this.accountNumber = accountNumber; 206 } 207 208 209 /** 210 * Gets the subAccountNumber attribute. 211 * 212 * @return Returns the subAccountNumber 213 */ 214 public String getSubAccountNumber() { 215 return subAccountNumber; 216 } 217 218 /** 219 * Sets the subAccountNumber attribute. 220 * 221 * @param subAccountNumber The subAccountNumber to set. 222 */ 223 public void setSubAccountNumber(String subAccountNumber) { 224 this.subAccountNumber = subAccountNumber; 225 } 226 227 228 /** 229 * Gets the incomeExpenseCode attribute. 230 * 231 * @return Returns the incomeExpenseCode 232 */ 233 public String getIncomeExpenseCode() { 234 return incomeExpenseCode; 235 } 236 237 /** 238 * Sets the incomeExpenseCode attribute. 239 * 240 * @param incomeExpenseCode The incomeExpenseCode to set. 241 */ 242 public void setIncomeExpenseCode(String incomeExpenseCode) { 243 this.incomeExpenseCode = incomeExpenseCode; 244 } 245 246 247 /** 248 * Gets the financialLevelSortCode attribute. 249 * 250 * @return Returns the financialLevelSortCode 251 */ 252 public String getFinancialLevelSortCode() { 253 return financialLevelSortCode; 254 } 255 256 /** 257 * Sets the financialLevelSortCode attribute. 258 * 259 * @param financialLevelSortCode The financialLevelSortCode to set. 260 */ 261 public void setFinancialLevelSortCode(String financialLevelSortCode) { 262 this.financialLevelSortCode = financialLevelSortCode; 263 } 264 265 266 /** 267 * Gets the financialObjectCode attribute. 268 * 269 * @return Returns the financialObjectCode 270 */ 271 public String getFinancialObjectCode() { 272 return financialObjectCode; 273 } 274 275 /** 276 * Sets the financialObjectCode attribute. 277 * 278 * @param financialObjectCode The financialObjectCode to set. 279 */ 280 public void setFinancialObjectCode(String financialObjectCode) { 281 this.financialObjectCode = financialObjectCode; 282 } 283 284 285 /** 286 * Gets the financialSubObjectCode attribute. 287 * 288 * @return Returns the financialSubObjectCode 289 */ 290 public String getFinancialSubObjectCode() { 291 return financialSubObjectCode; 292 } 293 294 /** 295 * Sets the financialSubObjectCode attribute. 296 * 297 * @param financialSubObjectCode The financialSubObjectCode to set. 298 */ 299 public void setFinancialSubObjectCode(String financialSubObjectCode) { 300 this.financialSubObjectCode = financialSubObjectCode; 301 } 302 303 304 /** 305 * Gets the financialConsolidationSortCode attribute. 306 * 307 * @return Returns the financialConsolidationSortCode 308 */ 309 public String getFinancialConsolidationSortCode() { 310 return financialConsolidationSortCode; 311 } 312 313 /** 314 * Sets the financialConsolidationSortCode attribute. 315 * 316 * @param financialConsolidationSortCode The financialConsolidationSortCode to set. 317 */ 318 public void setFinancialConsolidationSortCode(String financialConsolidationSortCode) { 319 this.financialConsolidationSortCode = financialConsolidationSortCode; 320 } 321 322 323 /** 324 * Gets the financialObjectLevelCode attribute. 325 * 326 * @return Returns the financialObjectLevelCode 327 */ 328 public String getFinancialObjectLevelCode() { 329 return financialObjectLevelCode; 330 } 331 332 /** 333 * Sets the financialObjectLevelCode attribute. 334 * 335 * @param financialObjectLevelCode The financialObjectLevelCode to set. 336 */ 337 public void setFinancialObjectLevelCode(String financialObjectLevelCode) { 338 this.financialObjectLevelCode = financialObjectLevelCode; 339 } 340 341 342 /** 343 * Gets the appointmentRequestedFteQuantity attribute. 344 * 345 * @return Returns the appointmentRequestedFteQuantity 346 */ 347 public BigDecimal getAppointmentRequestedFteQuantity() { 348 return appointmentRequestedFteQuantity; 349 } 350 351 /** 352 * Sets the appointmentRequestedFteQuantity attribute. 353 * 354 * @param appointmentRequestedFteQuantity The appointmentRequestedFteQuantity to set. 355 */ 356 public void setAppointmentRequestedFteQuantity(BigDecimal appointmentRequestedFteQuantity) { 357 this.appointmentRequestedFteQuantity = appointmentRequestedFteQuantity; 358 } 359 360 361 /** 362 * Gets the appointmentRequestedCsfFteQuantity attribute. 363 * 364 * @return Returns the appointmentRequestedCsfFteQuantity 365 */ 366 public BigDecimal getAppointmentRequestedCsfFteQuantity() { 367 return appointmentRequestedCsfFteQuantity; 368 } 369 370 /** 371 * Sets the appointmentRequestedCsfFteQuantity attribute. 372 * 373 * @param appointmentRequestedCsfFteQuantity The appointmentRequestedCsfFteQuantity to set. 374 */ 375 public void setAppointmentRequestedCsfFteQuantity(BigDecimal appointmentRequestedCsfFteQuantity) { 376 this.appointmentRequestedCsfFteQuantity = appointmentRequestedCsfFteQuantity; 377 } 378 379 380 /** 381 * Gets the positionFullTimeEquivalencyQuantity attribute. 382 * 383 * @return Returns the positionFullTimeEquivalencyQuantity 384 */ 385 public BigDecimal getPositionFullTimeEquivalencyQuantity() { 386 return positionFullTimeEquivalencyQuantity; 387 } 388 389 /** 390 * Sets the positionFullTimeEquivalencyQuantity attribute. 391 * 392 * @param positionFullTimeEquivalencyQuantity The positionFullTimeEquivalencyQuantity to set. 393 */ 394 public void setPositionFullTimeEquivalencyQuantity(BigDecimal positionFullTimeEquivalencyQuantity) { 395 this.positionFullTimeEquivalencyQuantity = positionFullTimeEquivalencyQuantity; 396 } 397 398 399 /** 400 * Gets the accountLineAnnualBalanceAmount attribute. 401 * 402 * @return Returns the accountLineAnnualBalanceAmount. 403 */ 404 public KualiInteger getAccountLineAnnualBalanceAmount() { 405 return accountLineAnnualBalanceAmount; 406 } 407 408 /** 409 * Sets the accountLineAnnualBalanceAmount attribute value. 410 * 411 * @param accountLineAnnualBalanceAmount The accountLineAnnualBalanceAmount to set. 412 */ 413 public void setAccountLineAnnualBalanceAmount(KualiInteger accountLineAnnualBalanceAmount) { 414 this.accountLineAnnualBalanceAmount = accountLineAnnualBalanceAmount; 415 } 416 417 /** 418 * Gets the financialBeginningBalanceLineAmount attribute. 419 * 420 * @return Returns the financialBeginningBalanceLineAmount. 421 */ 422 public KualiInteger getFinancialBeginningBalanceLineAmount() { 423 return financialBeginningBalanceLineAmount; 424 } 425 426 /** 427 * Sets the financialBeginningBalanceLineAmount attribute value. 428 * 429 * @param financialBeginningBalanceLineAmount The financialBeginningBalanceLineAmount to set. 430 */ 431 public void setFinancialBeginningBalanceLineAmount(KualiInteger financialBeginningBalanceLineAmount) { 432 this.financialBeginningBalanceLineAmount = financialBeginningBalanceLineAmount; 433 } 434 435 /** 436 * Gets the positionCsfLeaveFteQuantity attribute. 437 * 438 * @return Returns the positionCsfLeaveFteQuantity 439 */ 440 public BigDecimal getPositionCsfLeaveFteQuantity() { 441 return positionCsfLeaveFteQuantity; 442 } 443 444 /** 445 * Sets the positionCsfLeaveFteQuantity attribute. 446 * 447 * @param positionCsfLeaveFteQuantity The positionCsfLeaveFteQuantity to set. 448 */ 449 public void setPositionCsfLeaveFteQuantity(BigDecimal positionCsfLeaveFteQuantity) { 450 this.positionCsfLeaveFteQuantity = positionCsfLeaveFteQuantity; 451 } 452 453 454 /** 455 * Gets the organizationChartOfAccounts attribute. 456 * 457 * @return Returns the organizationChartOfAccounts 458 */ 459 public Chart getOrganizationChartOfAccounts() { 460 return organizationChartOfAccounts; 461 } 462 463 /** 464 * Sets the organizationChartOfAccounts attribute. 465 * 466 * @param organizationChartOfAccounts The organizationChartOfAccounts to set. 467 * @deprecated 468 */ 469 public void setOrganizationChartOfAccounts(Chart organizationChartOfAccounts) { 470 this.organizationChartOfAccounts = organizationChartOfAccounts; 471 } 472 473 /** 474 * Gets the organization attribute. 475 * 476 * @return Returns the organization 477 */ 478 public Organization getOrganization() { 479 return organization; 480 } 481 482 /** 483 * Sets the organization attribute. 484 * 485 * @param organization The organization to set. 486 * @deprecated 487 */ 488 public void setOrganization(Organization organization) { 489 this.organization = organization; 490 } 491 492 /** 493 * Gets the financialObject attribute. 494 * 495 * @return Returns the financialObject 496 */ 497 public ObjectCode getFinancialObject() { 498 return financialObject; 499 } 500 501 /** 502 * Sets the financialObject attribute. 503 * 504 * @param financialObject The financialObject to set. 505 * @deprecated 506 */ 507 public void setFinancialObject(ObjectCode financialObject) { 508 this.financialObject = financialObject; 509 } 510 511 /** 512 * Gets the chartOfAccounts attribute. 513 * 514 * @return Returns the chartOfAccounts 515 */ 516 public Chart getChartOfAccounts() { 517 return chartOfAccounts; 518 } 519 520 /** 521 * Sets the chartOfAccounts attribute. 522 * 523 * @param chartOfAccounts The chartOfAccounts to set. 524 * @deprecated 525 */ 526 public void setChartOfAccounts(Chart chartOfAccounts) { 527 this.chartOfAccounts = chartOfAccounts; 528 } 529 530 /** 531 * Gets the account attribute. 532 * 533 * @return Returns the account 534 */ 535 public Account getAccount() { 536 return account; 537 } 538 539 /** 540 * Sets the account attribute. 541 * 542 * @param account The account to set. 543 * @deprecated 544 */ 545 public void setAccount(Account account) { 546 this.account = account; 547 } 548 549 /** 550 * Gets the subFundGroup attribute. 551 * 552 * @return Returns the subFundGroup. 553 */ 554 public SubFundGroup getSubFundGroup() { 555 return subFundGroup; 556 } 557 558 /** 559 * Sets the subFundGroup attribute value. 560 * 561 * @param subFundGroup The subFundGroup to set. 562 * @deprecated 563 */ 564 public void setSubFundGroup(SubFundGroup subFundGroup) { 565 this.subFundGroup = subFundGroup; 566 } 567 568 /** 569 * Gets the financialObjectLevel attribute. 570 * 571 * @return Returns the financialObjectLevel. 572 */ 573 public ObjectLevel getFinancialObjectLevel() { 574 return financialObjectLevel; 575 } 576 577 /** 578 * Sets the financialObjectLevel attribute value. 579 * 580 * @param financialObjectLevel The financialObjectLevel to set. 581 * @deprecated 582 */ 583 public void setFinancialObjectLevel(ObjectLevel financialObjectLevel) { 584 this.financialObjectLevel = financialObjectLevel; 585 } 586 587 /** 588 * @see org.kuali.rice.kns.bo.BusinessObjectBase#toStringMapper() 589 */ 590 protected LinkedHashMap toStringMapper() { 591 LinkedHashMap m = new LinkedHashMap(); 592 m.put("principalId", this.principalId); 593 m.put("organizationChartOfAccountsCode", this.organizationChartOfAccountsCode); 594 m.put("organizationCode", this.organizationCode); 595 m.put("subFundGroupCode", this.subFundGroupCode); 596 if (this.universityFiscalYear != null) { 597 m.put("universityFiscalYear", this.universityFiscalYear.toString()); 598 } 599 m.put("chartOfAccountsCode", this.chartOfAccountsCode); 600 m.put("accountNumber", this.accountNumber); 601 m.put("subAccountNumber", this.subAccountNumber); 602 m.put("incomeExpenseCode", this.incomeExpenseCode); 603 m.put("financialLevelSortCode", this.financialLevelSortCode); 604 m.put("financialObjectCode", this.financialObjectCode); 605 m.put("financialSubObjectCode", this.financialSubObjectCode); 606 return m; 607 } 608 609 public SubAccount getSubAccount() { 610 return subAccount; 611 } 612 613 public void setSubAccount(SubAccount subAccount) { 614 this.subAccount = subAccount; 615 } 616 617 public SubObjectCode getFinancialSubObject() { 618 return financialSubObject; 619 } 620 621 public void setFinancialSubObject(SubObjectCode financialSubObject) { 622 this.financialSubObject = financialSubObject; 623 } 624 625 } 626