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.ole.coa.businessobject.Organization;
22  import org.kuali.rice.core.api.mo.common.active.MutableInactivatable;
23  import org.kuali.rice.core.api.util.type.KualiDecimal;
24  import org.kuali.rice.krad.bo.PersistableBusinessObjectBase;
25  
26  import java.util.LinkedHashMap;
27  
28  /**
29   * Negative Payment Request Approval Limit Business Object. Maintenance document for setting limits for the auto-approve PREQ batch
30   * job.
31   */
32  public class NegativePaymentRequestApprovalLimit extends PersistableBusinessObjectBase implements MutableInactivatable {
33  
34      private Integer negativePaymentRequestApprovalLimitIdentifier;
35      private String chartOfAccountsCode;
36      private String organizationCode;
37      private String accountNumber;
38      private KualiDecimal negativePaymentRequestApprovalLimitAmount;
39      private boolean active;
40      private Chart chartOfAccounts;
41      private Account account;
42      private Organization organization;
43  
44      /**
45       * Default constructor.
46       */
47      public NegativePaymentRequestApprovalLimit() {
48  
49      }
50  
51      public Account getAccount() {
52          return account;
53      }
54  
55      /**
56       * @deprecated
57       */
58      public void setAccount(Account account) {
59          this.account = account;
60      }
61  
62      public String getAccountNumber() {
63          return accountNumber;
64      }
65  
66      public void setAccountNumber(String accountNumber) {
67          this.accountNumber = accountNumber;
68      }
69  
70      public Chart getChartOfAccounts() {
71          return chartOfAccounts;
72      }
73  
74      /**
75       * @deprecated
76       */
77      public void setChartOfAccounts(Chart chartOfAccounts) {
78          this.chartOfAccounts = chartOfAccounts;
79      }
80  
81      public String getChartOfAccountsCode() {
82          return chartOfAccountsCode;
83      }
84  
85      public void setChartOfAccountsCode(String chartOfAccountsCode) {
86          this.chartOfAccountsCode = chartOfAccountsCode;
87      }
88  
89      public KualiDecimal getNegativePaymentRequestApprovalLimitAmount() {
90          return negativePaymentRequestApprovalLimitAmount;
91      }
92  
93      public void setNegativePaymentRequestApprovalLimitAmount(KualiDecimal negativePaymentRequestApprovalLimitAmount) {
94          this.negativePaymentRequestApprovalLimitAmount = negativePaymentRequestApprovalLimitAmount;
95      }
96  
97      public Integer getNegativePaymentRequestApprovalLimitIdentifier() {
98          return negativePaymentRequestApprovalLimitIdentifier;
99      }
100 
101     public void setNegativePaymentRequestApprovalLimitIdentifier(Integer negativePaymentRequestApprovalLimitIdentifier) {
102         this.negativePaymentRequestApprovalLimitIdentifier = negativePaymentRequestApprovalLimitIdentifier;
103     }
104 
105     public Organization getOrganization() {
106         return organization;
107     }
108 
109     /**
110      * @deprecated
111      */
112     public void setOrganization(Organization organization) {
113         this.organization = organization;
114     }
115 
116     public String getOrganizationCode() {
117         return organizationCode;
118     }
119 
120     public void setOrganizationCode(String organizationCode) {
121         this.organizationCode = organizationCode;
122     }
123 
124     /**
125      * @see org.kuali.rice.krad.bo.BusinessObjectBase#toStringMapper()
126      */
127     protected LinkedHashMap toStringMapper_RICE20_REFACTORME() {
128         LinkedHashMap m = new LinkedHashMap();
129         if (this.negativePaymentRequestApprovalLimitIdentifier != null) {
130             m.put("negativePaymentRequestApprovalLimitIdentifier", this.negativePaymentRequestApprovalLimitIdentifier.toString());
131         }
132         return m;
133     }
134 
135     public boolean isActive() {
136         return active;
137     }
138 
139     public void setActive(boolean active) {
140         this.active = active;
141     }
142 
143 }