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.FundGroup; 024 import org.kuali.kfs.coa.businessobject.Organization; 025 import org.kuali.kfs.coa.businessobject.SubAccount; 026 import org.kuali.kfs.coa.businessobject.SubFundGroup; 027 import org.kuali.rice.kns.bo.PersistableBusinessObjectBase; 028 import org.kuali.rice.kns.util.KualiInteger; 029 030 /** 031 * 032 */ 033 public class BudgetConstructionAccountSummary extends PersistableBusinessObjectBase { 034 035 private String principalId; 036 private String organizationChartOfAccountsCode; 037 private String organizationCode; 038 private String chartOfAccountsCode; 039 private String fundGroupCode; 040 private String subFundGroupCode; 041 private String accountNumber; 042 private String subAccountNumber; 043 private String incomeExpenseCode; 044 private KualiInteger accountLineAnnualBalanceAmount; 045 private KualiInteger financialBeginningBalanceLineAmount; 046 private String subFundSortCode; 047 048 private Chart organizationChartOfAccounts; 049 private Organization organization; 050 private Account account; 051 private Chart chartOfAccounts; 052 private SubAccount subAccount; 053 private SubFundGroup subFundGroup; 054 private FundGroup fundGroup; 055 056 /** 057 * Default constructor. 058 */ 059 public BudgetConstructionAccountSummary() { 060 061 062 } 063 064 /** 065 * Gets the principalId attribute. 066 * 067 * @return Returns the principalId 068 */ 069 public String getPrincipalId() { 070 return principalId; 071 } 072 073 /** 074 * Sets the principalId attribute. 075 * 076 * @param principalId The principalId to set. 077 */ 078 public void setPrincipalId(String principalId) { 079 this.principalId = principalId; 080 } 081 082 083 /** 084 * Gets the organizationChartOfAccountsCode attribute. 085 * 086 * @return Returns the organizationChartOfAccountsCode 087 */ 088 public String getOrganizationChartOfAccountsCode() { 089 return organizationChartOfAccountsCode; 090 } 091 092 /** 093 * Sets the organizationChartOfAccountsCode attribute. 094 * 095 * @param organizationChartOfAccountsCode The organizationChartOfAccountsCode to set. 096 */ 097 public void setOrganizationChartOfAccountsCode(String organizationChartOfAccountsCode) { 098 this.organizationChartOfAccountsCode = organizationChartOfAccountsCode; 099 } 100 101 102 /** 103 * Gets the organizationCode attribute. 104 * 105 * @return Returns the organizationCode 106 */ 107 public String getOrganizationCode() { 108 return organizationCode; 109 } 110 111 /** 112 * Sets the organizationCode attribute. 113 * 114 * @param organizationCode The organizationCode to set. 115 */ 116 public void setOrganizationCode(String organizationCode) { 117 this.organizationCode = organizationCode; 118 } 119 120 121 /** 122 * Gets the chartOfAccountsCode attribute. 123 * 124 * @return Returns the chartOfAccountsCode 125 */ 126 public String getChartOfAccountsCode() { 127 return chartOfAccountsCode; 128 } 129 130 /** 131 * Sets the chartOfAccountsCode attribute. 132 * 133 * @param chartOfAccountsCode The chartOfAccountsCode to set. 134 */ 135 public void setChartOfAccountsCode(String chartOfAccountsCode) { 136 this.chartOfAccountsCode = chartOfAccountsCode; 137 } 138 139 140 /** 141 * Gets the fundGroupCode attribute. 142 * 143 * @return Returns the fundGroupCode 144 */ 145 public String getFundGroupCode() { 146 return fundGroupCode; 147 } 148 149 /** 150 * Sets the fundGroupCode attribute. 151 * 152 * @param fundGroupCode The fundGroupCode to set. 153 */ 154 public void setFundGroupCode(String fundGroupCode) { 155 this.fundGroupCode = fundGroupCode; 156 } 157 158 159 /** 160 * Gets the subFundGroupCode attribute. 161 * 162 * @return Returns the subFundGroupCode 163 */ 164 public String getSubFundGroupCode() { 165 return subFundGroupCode; 166 } 167 168 /** 169 * Sets the subFundGroupCode attribute. 170 * 171 * @param subFundGroupCode The subFundGroupCode to set. 172 */ 173 public void setSubFundGroupCode(String subFundGroupCode) { 174 this.subFundGroupCode = subFundGroupCode; 175 } 176 177 178 /** 179 * Gets the accountNumber attribute. 180 * 181 * @return Returns the accountNumber 182 */ 183 public String getAccountNumber() { 184 return accountNumber; 185 } 186 187 /** 188 * Sets the accountNumber attribute. 189 * 190 * @param accountNumber The accountNumber to set. 191 */ 192 public void setAccountNumber(String accountNumber) { 193 this.accountNumber = accountNumber; 194 } 195 196 197 /** 198 * Gets the subAccountNumber attribute. 199 * 200 * @return Returns the subAccountNumber 201 */ 202 public String getSubAccountNumber() { 203 return subAccountNumber; 204 } 205 206 /** 207 * Sets the subAccountNumber attribute. 208 * 209 * @param subAccountNumber The subAccountNumber to set. 210 */ 211 public void setSubAccountNumber(String subAccountNumber) { 212 this.subAccountNumber = subAccountNumber; 213 } 214 215 216 /** 217 * Gets the incomeExpenseCode attribute. 218 * 219 * @return Returns the incomeExpenseCode 220 */ 221 public String getIncomeExpenseCode() { 222 return incomeExpenseCode; 223 } 224 225 /** 226 * Sets the incomeExpenseCode attribute. 227 * 228 * @param incomeExpenseCode The incomeExpenseCode to set. 229 */ 230 public void setIncomeExpenseCode(String incomeExpenseCode) { 231 this.incomeExpenseCode = incomeExpenseCode; 232 } 233 234 235 /** 236 * Gets the accountLineAnnualBalanceAmount attribute. 237 * 238 * @return Returns the accountLineAnnualBalanceAmount. 239 */ 240 public KualiInteger getAccountLineAnnualBalanceAmount() { 241 return accountLineAnnualBalanceAmount; 242 } 243 244 /** 245 * Sets the accountLineAnnualBalanceAmount attribute value. 246 * 247 * @param accountLineAnnualBalanceAmount The accountLineAnnualBalanceAmount to set. 248 */ 249 public void setAccountLineAnnualBalanceAmount(KualiInteger accountLineAnnualBalanceAmount) { 250 this.accountLineAnnualBalanceAmount = accountLineAnnualBalanceAmount; 251 } 252 253 /** 254 * Gets the financialBeginningBalanceLineAmount attribute. 255 * 256 * @return Returns the financialBeginningBalanceLineAmount. 257 */ 258 public KualiInteger getFinancialBeginningBalanceLineAmount() { 259 return financialBeginningBalanceLineAmount; 260 } 261 262 /** 263 * Sets the financialBeginningBalanceLineAmount attribute value. 264 * 265 * @param financialBeginningBalanceLineAmount The financialBeginningBalanceLineAmount to set. 266 */ 267 public void setFinancialBeginningBalanceLineAmount(KualiInteger financialBeginningBalanceLineAmount) { 268 this.financialBeginningBalanceLineAmount = financialBeginningBalanceLineAmount; 269 } 270 271 /** 272 * Gets the subFundSortCode attribute. 273 * 274 * @return Returns the subFundSortCode 275 */ 276 public String getSubFundSortCode() { 277 return subFundSortCode; 278 } 279 280 /** 281 * Sets the subFundSortCode attribute. 282 * 283 * @param subFundSortCode The subFundSortCode to set. 284 */ 285 public void setSubFundSortCode(String subFundSortCode) { 286 this.subFundSortCode = subFundSortCode; 287 } 288 289 290 /** 291 * Gets the organizationChartOfAccounts attribute. 292 * 293 * @return Returns the organizationChartOfAccounts 294 */ 295 public Chart getOrganizationChartOfAccounts() { 296 return organizationChartOfAccounts; 297 } 298 299 /** 300 * Sets the organizationChartOfAccounts attribute. 301 * 302 * @param organizationChartOfAccounts The organizationChartOfAccounts to set. 303 * @deprecated 304 */ 305 public void setOrganizationChartOfAccounts(Chart organizationChartOfAccounts) { 306 this.organizationChartOfAccounts = organizationChartOfAccounts; 307 } 308 309 /** 310 * Gets the organization attribute. 311 * 312 * @return Returns the organization 313 */ 314 public Organization getOrganization() { 315 return organization; 316 } 317 318 /** 319 * Sets the organization attribute. 320 * 321 * @param organization The organization to set. 322 * @deprecated 323 */ 324 public void setOrganization(Organization organization) { 325 this.organization = organization; 326 } 327 328 /** 329 * Gets the account attribute. 330 * 331 * @return Returns the account 332 */ 333 public Account getAccount() { 334 return account; 335 } 336 337 /** 338 * Sets the account attribute. 339 * 340 * @param account The account to set. 341 * @deprecated 342 */ 343 public void setAccount(Account account) { 344 this.account = account; 345 } 346 347 /** 348 * Gets the chartOfAccounts attribute. 349 * 350 * @return Returns the chartOfAccounts 351 */ 352 public Chart getChartOfAccounts() { 353 return chartOfAccounts; 354 } 355 356 /** 357 * Sets the chartOfAccounts attribute. 358 * 359 * @param chartOfAccounts The chartOfAccounts to set. 360 * @deprecated 361 */ 362 public void setChartOfAccounts(Chart chartOfAccounts) { 363 this.chartOfAccounts = chartOfAccounts; 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 subFundGroup attribute. 387 * 388 * @return Returns the subFundGroup. 389 */ 390 public SubFundGroup getSubFundGroup() { 391 return subFundGroup; 392 } 393 394 /** 395 * Sets the subFundGroup attribute value. 396 * 397 * @param subFundGroup The subFundGroup to set. 398 * @deprecated 399 */ 400 public void setSubFundGroup(SubFundGroup subFundGroup) { 401 this.subFundGroup = subFundGroup; 402 } 403 404 /** 405 * Gets the fundGroup attribute. 406 * 407 * @return Returns the fundGroup. 408 */ 409 public FundGroup getFundGroup() { 410 return fundGroup; 411 } 412 413 /** 414 * Sets the fundGroup attribute value. 415 * 416 * @param fundGroup The fundGroup to set. 417 * @deprecated 418 */ 419 public void setFundGroup(FundGroup fundGroup) { 420 this.fundGroup = fundGroup; 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("organizationChartOfAccountsCode", this.organizationChartOfAccountsCode); 430 m.put("organizationCode", this.organizationCode); 431 m.put("chartOfAccountsCode", this.chartOfAccountsCode); 432 m.put("fundGroupCode", this.fundGroupCode); 433 m.put("subFundGroupCode", this.subFundGroupCode); 434 m.put("accountNumber", this.accountNumber); 435 m.put("subAccountNumber", this.subAccountNumber); 436 m.put("incomeExpenseCode", this.incomeExpenseCode); 437 return m; 438 } 439 440 } 441