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