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 package org.kuali.kfs.sys.identity; 017 018 import java.util.LinkedHashMap; 019 020 import org.kuali.kfs.coa.businessobject.Account; 021 import org.kuali.kfs.coa.businessobject.Chart; 022 import org.kuali.kfs.coa.businessobject.Organization; 023 import org.kuali.kfs.coa.businessobject.SubAccount; 024 import org.kuali.kfs.coa.businessobject.SubFundGroup; 025 import org.kuali.kfs.pdp.businessobject.CustomerProfile; 026 import org.kuali.kfs.vnd.businessobject.CommodityCode; 027 import org.kuali.kfs.vnd.businessobject.ContractManager; 028 import org.kuali.kfs.vnd.businessobject.VendorType; 029 import org.kuali.rice.kns.util.KualiInteger; 030 031 public class KfsKimAttributes extends org.kuali.rice.kim.bo.impl.KimAttributes { 032 033 public static final String CHART_OF_ACCOUNTS_CODE = "chartOfAccountsCode"; 034 public static final String ACCOUNT_NUMBER = "accountNumber"; 035 public static final String FINANCIAL_SYSTEM_DOCUMENT_TYPE_CODE = "financialSystemDocumentTypeCode"; 036 public static final String ORGANIZATION_CODE = "organizationCode"; 037 public static final String DESCEND_HIERARCHY = "descendHierarchy"; 038 public static final String FROM_AMOUNT = "fromAmount"; 039 public static final String TO_AMOUNT = "toAmount"; 040 public static final String FINANCIAL_DOCUMENT_TOTAL_AMOUNT = "financialDocumentTotalAmount"; 041 public static final String ACCOUNTING_LINE_OVERRIDE_CODE = "accountingLineOverrideCode"; 042 public static final String SUB_FUND_GROUP_CODE = "subFundGroupCode"; 043 public static final String PURCHASING_COMMODITY_CODE = "purchasingCommodityCode"; 044 public static final String CONTRACT_MANAGER_CODE = "contractManagerCode"; 045 public static final String CUSTOMER_PROFILE_ID = "customerProfileId"; 046 public static final String VENDOR_TYPE_CODE = "vendorTypeCode"; 047 public static final String CONTRACTS_AND_GRANTS_ACCOUNT_RESPONSIBILITY_ID = "contractsAndGrantsAccountResponsibilityId"; 048 public static final String DISBURSEMENT_VOUCHER_PAYMENT_METHOD_CODE = "disbursementVoucherPaymentMethodCode"; 049 public static final String SUB_ACCOUNT_NUMBER = "subAccountNumber"; 050 051 protected String chartOfAccountsCode; 052 protected String accountNumber; 053 protected String organizationCode; 054 protected Boolean descendHierarchy; 055 protected String fromAmount; 056 protected String toAmount; 057 protected String accountingLineOverrideCode; 058 protected String subFundGroupCode; 059 protected String purchasingCommodityCode; 060 protected Integer contractManagerCode; 061 protected KualiInteger customerProfileId; 062 protected String vendorTypeCode; 063 protected String contractsAndGrantsAccountResponsibilityId; 064 protected String disbursementVoucherPaymentMethodCode; 065 protected String subAccountNumber; 066 067 protected Chart chart; 068 protected Organization organization; 069 protected Account account; 070 protected SubFundGroup subFundGroup; 071 protected ContractManager contractManager; 072 protected CommodityCode commodityCode; 073 protected CustomerProfile customerProfile; 074 protected SubAccount subAccount; 075 protected VendorType vendorType; 076 077 078 @SuppressWarnings("unchecked") 079 @Override 080 protected LinkedHashMap toStringMapper() { 081 LinkedHashMap m = new LinkedHashMap(); 082 return m; 083 } 084 085 /** 086 * Gets the chartOfAccountsCode attribute. 087 * 088 * @return Returns the chartOfAccountsCode. 089 */ 090 public String getChartOfAccountsCode() { 091 return chartOfAccountsCode; 092 } 093 094 /** 095 * Sets the chartOfAccountsCode attribute value. 096 * 097 * @param chartOfAccountsCode The chartOfAccountsCode to set. 098 */ 099 public void setChartOfAccountsCode(String chartOfAccountsCode) { 100 this.chartOfAccountsCode = chartOfAccountsCode; 101 } 102 103 /** 104 * Gets the accountNumber attribute. 105 * 106 * @return Returns the accountNumber. 107 */ 108 public String getAccountNumber() { 109 return accountNumber; 110 } 111 112 /** 113 * Sets the accountNumber attribute value. 114 * 115 * @param accountNumber The accountNumber to set. 116 */ 117 public void setAccountNumber(String accountNumber) { 118 this.accountNumber = accountNumber; 119 } 120 121 /** 122 * Gets the organizationCode attribute. 123 * 124 * @return Returns the organizationCode. 125 */ 126 public String getOrganizationCode() { 127 return organizationCode; 128 } 129 130 /** 131 * Sets the organizationCode attribute value. 132 * 133 * @param organizationCode The organizationCode to set. 134 */ 135 public void setOrganizationCode(String organizationCode) { 136 this.organizationCode = organizationCode; 137 } 138 139 /** 140 * Gets the descendHierarchy attribute. 141 * 142 * @return Returns the descendHierarchy. 143 */ 144 public Boolean isDescendHierarchy() { 145 return descendHierarchy; 146 } 147 148 /** 149 * Sets the descendHierarchy attribute value. 150 * 151 * @param descendHierarchy The descendHierarchy to set. 152 */ 153 public void setDescendHierarchy(Boolean descendHierarchy) { 154 this.descendHierarchy = descendHierarchy; 155 } 156 157 /** 158 * Gets the fromAmount attribute. 159 * 160 * @return Returns the fromAmount. 161 */ 162 public String getFromAmount() { 163 return fromAmount; 164 } 165 166 /** 167 * Sets the fromAmount attribute value. 168 * 169 * @param fromAmount The fromAmount to set. 170 */ 171 public void setFromAmount(String fromAmount) { 172 this.fromAmount = fromAmount; 173 } 174 175 /** 176 * Gets the toAmount attribute. 177 * 178 * @return Returns the toAmount. 179 */ 180 public String getToAmount() { 181 return toAmount; 182 } 183 184 /** 185 * Sets the toAmount attribute value. 186 * 187 * @param toAmount The toAmount to set. 188 */ 189 public void setToAmount(String toAmount) { 190 this.toAmount = toAmount; 191 } 192 193 /** 194 * Gets the accountingLineOverrideCode attribute. 195 * 196 * @return Returns the accountingLineOverrideCode. 197 */ 198 public String getAccountingLineOverrideCode() { 199 return accountingLineOverrideCode; 200 } 201 202 /** 203 * Sets the accountingLineOverrideCode attribute value. 204 * 205 * @param accountingLineOverrideCode The accountingLineOverrideCode to set. 206 */ 207 public void setAccountingLineOverrideCode(String accountingLineOverrideCode) { 208 this.accountingLineOverrideCode = accountingLineOverrideCode; 209 } 210 211 /** 212 * Gets the subFundGroupCode attribute. 213 * 214 * @return Returns the subFundGroupCode. 215 */ 216 public String getSubFundGroupCode() { 217 return subFundGroupCode; 218 } 219 220 /** 221 * Sets the subFundGroupCode attribute value. 222 * 223 * @param subFundGroupCode The subFundGroupCode to set. 224 */ 225 public void setSubFundGroupCode(String subFundGroupCode) { 226 this.subFundGroupCode = subFundGroupCode; 227 } 228 229 /** 230 * Gets the purchasingCommodityCode attribute. 231 * 232 * @return Returns the purchasingCommodityCode. 233 */ 234 public String getPurchasingCommodityCode() { 235 return purchasingCommodityCode; 236 } 237 238 /** 239 * Sets the purchasingCommodityCode attribute value. 240 * 241 * @param purchasingCommodityCode The purchasingCommodityCode to set. 242 */ 243 public void setPurchasingCommodityCode(String purchasingCommodityCode) { 244 this.purchasingCommodityCode = purchasingCommodityCode; 245 } 246 247 /** 248 * Gets the contractManagerCode attribute. 249 * 250 * @return Returns the contractManagerCode. 251 */ 252 public Integer getContractManagerCode() { 253 return contractManagerCode; 254 } 255 256 /** 257 * Sets the contractManagerCode attribute value. 258 * 259 * @param contractManagerCode The contractManagerCode to set. 260 */ 261 public void setContractManagerCode(Integer contractManagerCode) { 262 this.contractManagerCode = contractManagerCode; 263 } 264 265 /** 266 * Gets the customerProfileId attribute. 267 * 268 * @return Returns the customerProfileId. 269 */ 270 public KualiInteger getCustomerProfileId() { 271 return customerProfileId; 272 } 273 274 /** 275 * Sets the customerProfileId attribute value. 276 * 277 * @param customerProfileId The customerProfileId to set. 278 */ 279 public void setCustomerProfileId(KualiInteger customerProfileId) { 280 this.customerProfileId = customerProfileId; 281 } 282 283 /** 284 * Gets the vendorTypeCode attribute. 285 * 286 * @return Returns the vendorTypeCode. 287 */ 288 public String getVendorTypeCode() { 289 return vendorTypeCode; 290 } 291 292 /** 293 * Sets the vendorTypeCode attribute value. 294 * 295 * @param vendorTypeCode The vendorTypeCode to set. 296 */ 297 public void setVendorTypeCode(String vendorTypeCode) { 298 this.vendorTypeCode = vendorTypeCode; 299 } 300 301 /** 302 * Gets the contractsAndGrantsAccountResponsibilityId attribute. 303 * 304 * @return Returns the contractsAndGrantsAccountResponsibilityId. 305 */ 306 public String getContractsAndGrantsAccountResponsibilityId() { 307 return contractsAndGrantsAccountResponsibilityId; 308 } 309 310 /** 311 * Sets the contractsAndGrantsAccountResponsibilityId attribute value. 312 * 313 * @param contractsAndGrantsAccountResponsibilityId The contractsAndGrantsAccountResponsibilityId to set. 314 */ 315 public void setContractsAndGrantsAccountResponsibilityId(String contractsAndGrantsAccountResponsibilityId) { 316 this.contractsAndGrantsAccountResponsibilityId = contractsAndGrantsAccountResponsibilityId; 317 } 318 319 /** 320 * 321 * @return Returns the disbursementVoucherPaymentMethodCode. 322 */ 323 public String getDisbursementVoucherPaymentMethodCode() { 324 return disbursementVoucherPaymentMethodCode; 325 } 326 327 /** 328 * Sets the disbursementVoucherPaymentMethodCode attribute value. 329 * 330 * @param disbursementVoucherPaymentMethodCode The disbursementVoucherPaymentMethodCode to set. 331 */ 332 public void setDisbursementVoucherPaymentMethodCode(String disbursementVoucherPaymentMethodCode) { 333 this.disbursementVoucherPaymentMethodCode = disbursementVoucherPaymentMethodCode; 334 } 335 336 /** 337 * Gets the subAccountNumber attribute. 338 * 339 * @return Returns the subAccountNumber. 340 */ 341 public String getSubAccountNumber() { 342 return subAccountNumber; 343 } 344 345 /** 346 * Sets the subAccountNumber attribute value. 347 * 348 * @param subAccountNumber The subAccountNumber to set. 349 */ 350 public void setSubAccountNumber(String subAccountNumber) { 351 this.subAccountNumber = subAccountNumber; 352 } 353 354 public Chart getChart() { 355 return chart; 356 } 357 358 public void setChart(Chart chart) { 359 this.chart = chart; 360 } 361 362 public Organization getOrganization() { 363 return organization; 364 } 365 366 public void setOrganization(Organization organization) { 367 this.organization = organization; 368 } 369 370 public Account getAccount() { 371 return account; 372 } 373 374 public void setAccount(Account account) { 375 this.account = account; 376 } 377 378 public SubFundGroup getSubFundGroup() { 379 return subFundGroup; 380 } 381 382 public void setSubFundGroup(SubFundGroup subFundGroup) { 383 this.subFundGroup = subFundGroup; 384 } 385 386 public ContractManager getContractManager() { 387 return contractManager; 388 } 389 390 public void setContractManager(ContractManager contractManager) { 391 this.contractManager = contractManager; 392 } 393 394 public CommodityCode getCommodityCode() { 395 return commodityCode; 396 } 397 398 public void setCommodityCode(CommodityCode commodityCode) { 399 this.commodityCode = commodityCode; 400 } 401 402 public CustomerProfile getCustomerProfile() { 403 return customerProfile; 404 } 405 406 public void setCustomerProfile(CustomerProfile customerProfile) { 407 this.customerProfile = customerProfile; 408 } 409 410 public SubAccount getSubAccount() { 411 return subAccount; 412 } 413 414 public void setSubAccount(SubAccount subAccount) { 415 this.subAccount = subAccount; 416 } 417 418 public VendorType getVendorType() { 419 return vendorType; 420 } 421 422 public void setVendorType(VendorType vendorType) { 423 this.vendorType = vendorType; 424 } 425 }