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.purap.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.rice.kns.bo.Inactivateable; 024 import org.kuali.rice.kns.bo.PersistableBusinessObjectBase; 025 026 /** 027 * Auto Approve Exclude Business Object. Defines attributes in maintenance document for excluding payment request from automatic 028 * approval. 029 */ 030 public class AutoApproveExclude extends PersistableBusinessObjectBase implements Inactivateable{ 031 032 private String chartOfAccountsCode; 033 private String accountNumber; 034 private boolean active; 035 036 private Account account; 037 private Chart chartOfAccounts; 038 039 /** 040 * Default constructor. 041 */ 042 public AutoApproveExclude() { 043 044 } 045 046 public String getChartOfAccountsCode() { 047 return chartOfAccountsCode; 048 } 049 050 public void setChartOfAccountsCode(String chartOfAccountsCode) { 051 this.chartOfAccountsCode = chartOfAccountsCode; 052 } 053 054 public String getAccountNumber() { 055 return accountNumber; 056 } 057 058 public void setAccountNumber(String accountNumber) { 059 this.accountNumber = accountNumber; 060 } 061 062 public boolean isActive() { 063 return active; 064 } 065 066 public void setActive(boolean active) { 067 this.active = active; 068 } 069 070 public Account getAccount() { 071 return account; 072 } 073 074 /** 075 * @deprecated 076 */ 077 public void setAccount(Account account) { 078 this.account = account; 079 } 080 081 public Chart getChartOfAccounts() { 082 return chartOfAccounts; 083 } 084 085 /** 086 * @deprecated 087 */ 088 public void setChartOfAccounts(Chart chartOfAccounts) { 089 this.chartOfAccounts = chartOfAccounts; 090 } 091 092 /** 093 * @see org.kuali.rice.kns.bo.BusinessObjectBase#toStringMapper() 094 */ 095 protected LinkedHashMap toStringMapper() { 096 LinkedHashMap m = new LinkedHashMap(); 097 m.put("chartOfAccountsCode", this.chartOfAccountsCode); 098 m.put("accountNumber", this.accountNumber); 099 return m; 100 } 101 }