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