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.ObjectCode; 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 029 /** 030 * 031 */ 032 public class BudgetConstructionObjectDump extends PersistableBusinessObjectBase { 033 034 private String organizationChartOfAccountsCode; 035 private String organizationCode; 036 private String subFundGroupCode; 037 private Integer universityFiscalYear; 038 private String chartOfAccountsCode; 039 private String accountNumber; 040 private String subAccountNumber; 041 private String financialObjectCode; 042 private String principalId; 043 044 private Chart organizationChartOfAccounts; 045 private Organization organization; 046 private ObjectCode financialObject; 047 private Account account; 048 private Chart chartOfAccounts; 049 private SubFundGroup subFundGroup; 050 private SubAccount subAccount; 051 052 /** 053 * Default constructor. 054 */ 055 public BudgetConstructionObjectDump() { 056 057 } 058 059 /** 060 * Gets the organizationChartOfAccountsCode attribute. 061 * 062 * @return Returns the organizationChartOfAccountsCode 063 */ 064 public String getOrganizationChartOfAccountsCode() { 065 return organizationChartOfAccountsCode; 066 } 067 068 /** 069 * Sets the organizationChartOfAccountsCode attribute. 070 * 071 * @param organizationChartOfAccountsCode The organizationChartOfAccountsCode to set. 072 */ 073 public void setOrganizationChartOfAccountsCode(String organizationChartOfAccountsCode) { 074 this.organizationChartOfAccountsCode = organizationChartOfAccountsCode; 075 } 076 077 078 /** 079 * Gets the organizationCode attribute. 080 * 081 * @return Returns the organizationCode 082 */ 083 public String getOrganizationCode() { 084 return organizationCode; 085 } 086 087 /** 088 * Sets the organizationCode attribute. 089 * 090 * @param organizationCode The organizationCode to set. 091 */ 092 public void setOrganizationCode(String organizationCode) { 093 this.organizationCode = organizationCode; 094 } 095 096 097 /** 098 * Gets the subFundGroupCode attribute. 099 * 100 * @return Returns the subFundGroupCode 101 */ 102 public String getSubFundGroupCode() { 103 return subFundGroupCode; 104 } 105 106 /** 107 * Sets the subFundGroupCode attribute. 108 * 109 * @param subFundGroupCode The subFundGroupCode to set. 110 */ 111 public void setSubFundGroupCode(String subFundGroupCode) { 112 this.subFundGroupCode = subFundGroupCode; 113 } 114 115 116 /** 117 * Gets the universityFiscalYear attribute. 118 * 119 * @return Returns the universityFiscalYear 120 */ 121 public Integer getUniversityFiscalYear() { 122 return universityFiscalYear; 123 } 124 125 /** 126 * Sets the universityFiscalYear attribute. 127 * 128 * @param universityFiscalYear The universityFiscalYear to set. 129 */ 130 public void setUniversityFiscalYear(Integer universityFiscalYear) { 131 this.universityFiscalYear = universityFiscalYear; 132 } 133 134 135 /** 136 * Gets the chartOfAccountsCode attribute. 137 * 138 * @return Returns the chartOfAccountsCode 139 */ 140 public String getChartOfAccountsCode() { 141 return chartOfAccountsCode; 142 } 143 144 /** 145 * Sets the chartOfAccountsCode attribute. 146 * 147 * @param chartOfAccountsCode The chartOfAccountsCode to set. 148 */ 149 public void setChartOfAccountsCode(String chartOfAccountsCode) { 150 this.chartOfAccountsCode = chartOfAccountsCode; 151 } 152 153 154 /** 155 * Gets the accountNumber attribute. 156 * 157 * @return Returns the accountNumber 158 */ 159 public String getAccountNumber() { 160 return accountNumber; 161 } 162 163 /** 164 * Sets the accountNumber attribute. 165 * 166 * @param accountNumber The accountNumber to set. 167 */ 168 public void setAccountNumber(String accountNumber) { 169 this.accountNumber = accountNumber; 170 } 171 172 173 /** 174 * Gets the subAccountNumber attribute. 175 * 176 * @return Returns the subAccountNumber 177 */ 178 public String getSubAccountNumber() { 179 return subAccountNumber; 180 } 181 182 /** 183 * Sets the subAccountNumber attribute. 184 * 185 * @param subAccountNumber The subAccountNumber to set. 186 */ 187 public void setSubAccountNumber(String subAccountNumber) { 188 this.subAccountNumber = subAccountNumber; 189 } 190 191 192 /** 193 * Gets the financialObjectCode attribute. 194 * 195 * @return Returns the financialObjectCode 196 */ 197 public String getFinancialObjectCode() { 198 return financialObjectCode; 199 } 200 201 /** 202 * Sets the financialObjectCode attribute. 203 * 204 * @param financialObjectCode The financialObjectCode to set. 205 */ 206 public void setFinancialObjectCode(String financialObjectCode) { 207 this.financialObjectCode = financialObjectCode; 208 } 209 210 211 /** 212 * Gets the principalId attribute. 213 * 214 * @return Returns the principalId. 215 */ 216 public String getPrincipalId() { 217 return principalId; 218 } 219 220 /** 221 * Sets the principalId attribute value. 222 * 223 * @param principalId The principalId to set. 224 */ 225 public void setPrincipalId(String principalId) { 226 this.principalId = principalId; 227 } 228 229 /** 230 * Gets the organizationChartOfAccounts attribute. 231 * 232 * @return Returns the organizationChartOfAccounts 233 */ 234 public Chart getOrganizationChartOfAccounts() { 235 return organizationChartOfAccounts; 236 } 237 238 /** 239 * Sets the organizationChartOfAccounts attribute. 240 * 241 * @param organizationChartOfAccounts The organizationChartOfAccounts to set. 242 * @deprecated 243 */ 244 public void setOrganizationChartOfAccounts(Chart organizationChartOfAccounts) { 245 this.organizationChartOfAccounts = organizationChartOfAccounts; 246 } 247 248 /** 249 * Gets the organization attribute. 250 * 251 * @return Returns the organization 252 */ 253 public Organization getOrganization() { 254 return organization; 255 } 256 257 /** 258 * Sets the organization attribute. 259 * 260 * @param organization The organization to set. 261 * @deprecated 262 */ 263 public void setOrganization(Organization organization) { 264 this.organization = organization; 265 } 266 267 /** 268 * Gets the financialObject attribute. 269 * 270 * @return Returns the financialObject 271 */ 272 public ObjectCode getFinancialObject() { 273 return financialObject; 274 } 275 276 /** 277 * Sets the financialObject attribute. 278 * 279 * @param financialObject The financialObject to set. 280 * @deprecated 281 */ 282 public void setFinancialObject(ObjectCode financialObject) { 283 this.financialObject = financialObject; 284 } 285 286 /** 287 * Gets the account attribute. 288 * 289 * @return Returns the account 290 */ 291 public Account getAccount() { 292 return account; 293 } 294 295 /** 296 * Sets the account attribute. 297 * 298 * @param account The account to set. 299 * @deprecated 300 */ 301 public void setAccount(Account account) { 302 this.account = account; 303 } 304 305 /** 306 * Gets the chartOfAccounts attribute. 307 * 308 * @return Returns the chartOfAccounts 309 */ 310 public Chart getChartOfAccounts() { 311 return chartOfAccounts; 312 } 313 314 /** 315 * Sets the chartOfAccounts attribute. 316 * 317 * @param chartOfAccounts The chartOfAccounts to set. 318 * @deprecated 319 */ 320 public void setChartOfAccounts(Chart chartOfAccounts) { 321 this.chartOfAccounts = chartOfAccounts; 322 } 323 324 /** 325 * Gets the subAccount attribute. 326 * 327 * @return Returns the subAccount. 328 */ 329 public SubAccount getSubAccount() { 330 return subAccount; 331 } 332 333 /** 334 * Sets the subAccount attribute value. 335 * 336 * @param subAccount The subAccount to set. 337 * @deprecated 338 */ 339 public void setSubAccount(SubAccount subAccount) { 340 this.subAccount = subAccount; 341 } 342 343 /** 344 * Gets the subFundGroup attribute. 345 * 346 * @return Returns the subFundGroup. 347 */ 348 public SubFundGroup getSubFundGroup() { 349 return subFundGroup; 350 } 351 352 /** 353 * Sets the subFundGroup attribute value. 354 * 355 * @param subFundGroup The subFundGroup to set. 356 * @deprecated 357 */ 358 public void setSubFundGroup(SubFundGroup subFundGroup) { 359 this.subFundGroup = subFundGroup; 360 } 361 362 /** 363 * @see org.kuali.rice.kns.bo.BusinessObjectBase#toStringMapper() 364 */ 365 protected LinkedHashMap toStringMapper() { 366 LinkedHashMap m = new LinkedHashMap(); 367 m.put("principalId", this.principalId); 368 m.put("organizationChartOfAccountsCode", this.organizationChartOfAccountsCode); 369 m.put("organizationCode", this.organizationCode); 370 m.put("subFundGroupCode", this.subFundGroupCode); 371 if (this.universityFiscalYear != null) { 372 m.put("universityFiscalYear", this.universityFiscalYear.toString()); 373 } 374 m.put("chartOfAccountsCode", this.chartOfAccountsCode); 375 m.put("accountNumber", this.accountNumber); 376 m.put("subAccountNumber", this.subAccountNumber); 377 m.put("financialObjectCode", this.financialObjectCode); 378 return m; 379 } 380 381 } 382