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.Chart;
20  import org.kuali.ole.coa.businessobject.Organization;
21  import org.kuali.rice.core.api.util.type.KualiDecimal;
22  import org.kuali.rice.krad.bo.PersistableBusinessObjectBase;
23  
24  import java.util.LinkedHashMap;
25  
26  /**
27   * Organization Parameter Business Object. Maintenance document for organization parameters.
28   */
29  public class OrganizationParameter extends PersistableBusinessObjectBase {
30  
31      private String chartOfAccountsCode;
32      private String organizationCode;
33      private KualiDecimal organizationAutomaticPurchaseOrderLimit;
34  
35      private Chart chartOfAccounts;
36      private Organization organization;
37      private boolean activeIndicator;
38  
39      public boolean isActiveIndicator() {
40          return activeIndicator;
41      }
42  
43      public void setActiveIndicator(boolean activeIndicator) {
44          this.activeIndicator = activeIndicator;
45      }
46  
47      /**
48       * Default constructor.
49       */
50      public OrganizationParameter() {
51  
52      }
53  
54      public Chart getChartOfAccounts() {
55          return chartOfAccounts;
56      }
57  
58      /**
59       * @deprecated
60       */
61      public void setChartOfAccounts(Chart chartOfAccounts) {
62          this.chartOfAccounts = chartOfAccounts;
63      }
64  
65      public String getChartOfAccountsCode() {
66          return chartOfAccountsCode;
67      }
68  
69      public void setChartOfAccountsCode(String chartOfAccountsCode) {
70          this.chartOfAccountsCode = chartOfAccountsCode;
71      }
72  
73      public Organization getOrganization() {
74          return organization;
75      }
76  
77      /**
78       * @deprecated
79       */
80      public void setOrganization(Organization organization) {
81          this.organization = organization;
82      }
83  
84      public KualiDecimal getOrganizationAutomaticPurchaseOrderLimit() {
85          return organizationAutomaticPurchaseOrderLimit;
86      }
87  
88      public void setOrganizationAutomaticPurchaseOrderLimit(KualiDecimal organizationAutomaticPurchaseOrderLimit) {
89          this.organizationAutomaticPurchaseOrderLimit = organizationAutomaticPurchaseOrderLimit;
90      }
91  
92      public String getOrganizationCode() {
93          return organizationCode;
94      }
95  
96      public void setOrganizationCode(String organizationCode) {
97          this.organizationCode = organizationCode;
98      }
99  
100     /**
101      * @see org.kuali.rice.krad.bo.BusinessObjectBase#toStringMapper()
102      */
103     protected LinkedHashMap toStringMapper_RICE20_REFACTORME() {
104         LinkedHashMap m = new LinkedHashMap();
105         m.put("chartOfAccountsCode", this.chartOfAccountsCode);
106         m.put("organizationCode", this.organizationCode);
107         return m;
108     }
109 }