View Javadoc
1   /*
2    * Copyright 2006 The Kuali Foundation
3    * 
4    * Licensed under the Educational Community License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    * 
8    * http://www.opensource.org/licenses/ecl2.php
9    * 
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   */
16  
17  package org.kuali.ole.module.purap.businessobject;
18  
19  import org.kuali.ole.coa.businessobject.Account;
20  import org.kuali.ole.coa.businessobject.Chart;
21  import org.kuali.rice.core.api.mo.common.active.MutableInactivatable;
22  import org.kuali.rice.krad.bo.PersistableBusinessObjectBase;
23  
24  import java.util.LinkedHashMap;
25  
26  /**
27   * Auto Approve Exclude Business Object. Defines attributes in maintenance document for excluding payment request from automatic
28   * approval.
29   */
30  public class AutoApproveExclude extends PersistableBusinessObjectBase implements MutableInactivatable {
31  
32      private String chartOfAccountsCode;
33      private String accountNumber;
34      private boolean active;
35  
36      private Account account;
37      private Chart chartOfAccounts;
38  
39      /**
40       * Default constructor.
41       */
42      public AutoApproveExclude() {
43  
44      }
45  
46      public String getChartOfAccountsCode() {
47          return chartOfAccountsCode;
48      }
49  
50      public void setChartOfAccountsCode(String chartOfAccountsCode) {
51          this.chartOfAccountsCode = chartOfAccountsCode;
52      }
53  
54      public String getAccountNumber() {
55          return accountNumber;
56      }
57  
58      public void setAccountNumber(String accountNumber) {
59          this.accountNumber = accountNumber;
60      }
61  
62      public boolean isActive() {
63          return active;
64      }
65  
66      public void setActive(boolean active) {
67          this.active = active;
68      }
69  
70      public Account getAccount() {
71          return account;
72      }
73  
74      /**
75       * @deprecated
76       */
77      public void setAccount(Account account) {
78          this.account = account;
79      }
80  
81      public Chart getChartOfAccounts() {
82          return chartOfAccounts;
83      }
84  
85      /**
86       * @deprecated
87       */
88      public void setChartOfAccounts(Chart chartOfAccounts) {
89          this.chartOfAccounts = chartOfAccounts;
90      }
91  
92      /**
93       * @see org.kuali.rice.krad.bo.BusinessObjectBase#toStringMapper()
94       */
95      protected LinkedHashMap toStringMapper_RICE20_REFACTORME() {
96          LinkedHashMap m = new LinkedHashMap();
97          m.put("chartOfAccountsCode", this.chartOfAccountsCode);
98          m.put("accountNumber", this.accountNumber);
99          return m;
100     }
101 }