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.core.util.KualiDecimal;
023: import org.kuali.module.chart.bo.Chart;
024: import org.kuali.module.chart.bo.Org;
025:
026: /**
027: * Organization Parameter Business Object. Maintenance document for organization parameters.
028: */
029: public class OrganizationParameter extends
030: PersistableBusinessObjectBase {
031:
032: private String chartOfAccountsCode;
033: private String organizationCode;
034: private KualiDecimal organizationAutomaticPurchaseOrderLimit;
035:
036: private Chart chartOfAccounts;
037: private Org organization;
038:
039: /**
040: * Default constructor.
041: */
042: public OrganizationParameter() {
043:
044: }
045:
046: public Chart getChartOfAccounts() {
047: return chartOfAccounts;
048: }
049:
050: /**
051: * @deprecated
052: */
053: public void setChartOfAccounts(Chart chartOfAccounts) {
054: this .chartOfAccounts = chartOfAccounts;
055: }
056:
057: public String getChartOfAccountsCode() {
058: return chartOfAccountsCode;
059: }
060:
061: public void setChartOfAccountsCode(String chartOfAccountsCode) {
062: this .chartOfAccountsCode = chartOfAccountsCode;
063: }
064:
065: public Org getOrganization() {
066: return organization;
067: }
068:
069: /**
070: * @deprecated
071: */
072: public void setOrganization(Org organization) {
073: this .organization = organization;
074: }
075:
076: public KualiDecimal getOrganizationAutomaticPurchaseOrderLimit() {
077: return organizationAutomaticPurchaseOrderLimit;
078: }
079:
080: public void setOrganizationAutomaticPurchaseOrderLimit(
081: KualiDecimal organizationAutomaticPurchaseOrderLimit) {
082: this .organizationAutomaticPurchaseOrderLimit = organizationAutomaticPurchaseOrderLimit;
083: }
084:
085: public String getOrganizationCode() {
086: return organizationCode;
087: }
088:
089: public void setOrganizationCode(String organizationCode) {
090: this .organizationCode = organizationCode;
091: }
092:
093: /**
094: * @see org.kuali.core.bo.BusinessObjectBase#toStringMapper()
095: */
096: protected LinkedHashMap toStringMapper() {
097: LinkedHashMap m = new LinkedHashMap();
098: m.put("chartOfAccountsCode", this .chartOfAccountsCode);
099: m.put("organizationCode", this.organizationCode);
100: return m;
101: }
102: }
|