001/*
002 * Copyright 2006 The Kuali Foundation
003 * 
004 * Licensed under the Educational Community License, Version 2.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/ecl2.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
017package org.kuali.ole.module.purap.businessobject;
018
019import org.kuali.ole.coa.businessobject.Chart;
020import org.kuali.ole.coa.businessobject.Organization;
021import org.kuali.rice.core.api.util.type.KualiDecimal;
022import org.kuali.rice.krad.bo.PersistableBusinessObjectBase;
023
024import java.util.LinkedHashMap;
025
026/**
027 * Organization Parameter Business Object. Maintenance document for organization parameters.
028 */
029public class OrganizationParameter extends PersistableBusinessObjectBase {
030
031    private String chartOfAccountsCode;
032    private String organizationCode;
033    private KualiDecimal organizationAutomaticPurchaseOrderLimit;
034
035    private Chart chartOfAccounts;
036    private Organization organization;
037    private boolean activeIndicator;
038
039    public boolean isActiveIndicator() {
040        return activeIndicator;
041    }
042
043    public void setActiveIndicator(boolean activeIndicator) {
044        this.activeIndicator = activeIndicator;
045    }
046
047    /**
048     * Default constructor.
049     */
050    public OrganizationParameter() {
051
052    }
053
054    public Chart getChartOfAccounts() {
055        return chartOfAccounts;
056    }
057
058    /**
059     * @deprecated
060     */
061    public void setChartOfAccounts(Chart chartOfAccounts) {
062        this.chartOfAccounts = chartOfAccounts;
063    }
064
065    public String getChartOfAccountsCode() {
066        return chartOfAccountsCode;
067    }
068
069    public void setChartOfAccountsCode(String chartOfAccountsCode) {
070        this.chartOfAccountsCode = chartOfAccountsCode;
071    }
072
073    public Organization getOrganization() {
074        return organization;
075    }
076
077    /**
078     * @deprecated
079     */
080    public void setOrganization(Organization organization) {
081        this.organization = organization;
082    }
083
084    public KualiDecimal getOrganizationAutomaticPurchaseOrderLimit() {
085        return organizationAutomaticPurchaseOrderLimit;
086    }
087
088    public void setOrganizationAutomaticPurchaseOrderLimit(KualiDecimal organizationAutomaticPurchaseOrderLimit) {
089        this.organizationAutomaticPurchaseOrderLimit = organizationAutomaticPurchaseOrderLimit;
090    }
091
092    public String getOrganizationCode() {
093        return organizationCode;
094    }
095
096    public void setOrganizationCode(String organizationCode) {
097        this.organizationCode = organizationCode;
098    }
099
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}