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.vnd.businessobject.ContractManager;
020import org.kuali.rice.core.api.mo.common.active.MutableInactivatable;
021import org.kuali.rice.krad.bo.PersistableBusinessObjectBase;
022
023import java.util.ArrayList;
024import java.util.LinkedHashMap;
025import java.util.List;
026
027/**
028 * Purchase Order Quote List Business Object.
029 */
030public class PurchaseOrderQuoteList extends PersistableBusinessObjectBase implements MutableInactivatable {
031
032    private Integer purchaseOrderQuoteListIdentifier;
033    private String purchaseOrderQuoteListName;
034    private Integer contractManagerCode;
035    private String contractManagerName;
036    private boolean active;
037
038    private ContractManager contractManager;
039
040    private List<PurchaseOrderQuoteListVendor> quoteListVendors;
041
042    /**
043     * Default constructor.
044     */
045    public PurchaseOrderQuoteList() {
046        quoteListVendors = new ArrayList<PurchaseOrderQuoteListVendor>();
047    }
048
049    public Integer getPurchaseOrderQuoteListIdentifier() {
050        return purchaseOrderQuoteListIdentifier;
051    }
052
053    public void setPurchaseOrderQuoteListIdentifier(Integer purchaseOrderQuoteListIdentifier) {
054        this.purchaseOrderQuoteListIdentifier = purchaseOrderQuoteListIdentifier;
055    }
056
057    public String getPurchaseOrderQuoteListName() {
058        return purchaseOrderQuoteListName;
059    }
060
061    public void setPurchaseOrderQuoteListName(String purchaseOrderQuoteListName) {
062        this.purchaseOrderQuoteListName = purchaseOrderQuoteListName;
063    }
064
065    public Integer getContractManagerCode() {
066        return contractManagerCode;
067    }
068
069    public void setContractManagerCode(Integer contractManagerCode) {
070        this.contractManagerCode = contractManagerCode;
071    }
072
073    public List<PurchaseOrderQuoteListVendor> getQuoteListVendors() {
074        return quoteListVendors;
075    }
076
077    public void setQuoteListVendors(List<PurchaseOrderQuoteListVendor> quoteListVendors) {
078        this.quoteListVendors = quoteListVendors;
079    }
080
081    public ContractManager getContractManager() {
082        return contractManager;
083    }
084
085    /**
086     * @param contractManager
087     * @deprecated
088     */
089    public void setContractManager(ContractManager contractManager) {
090        this.contractManager = contractManager;
091    }
092
093    public String getContractManagerName() {
094        return contractManager.getContractManagerName();
095    }
096
097    public void setContractManagerName(String contractManagerName) {
098        this.contractManagerName = contractManagerName;
099    }
100
101    /**
102     * @see org.kuali.rice.krad.bo.BusinessObjectBase#toStringMapper()
103     */
104    protected LinkedHashMap toStringMapper_RICE20_REFACTORME() {
105        LinkedHashMap m = new LinkedHashMap();
106        if (this.purchaseOrderQuoteListIdentifier != null) {
107            m.put("purchaseOrderQuoteListIdentifier", this.purchaseOrderQuoteListIdentifier.toString());
108        }
109        return m;
110    }
111
112    public boolean isActive() {
113        return active;
114    }
115
116    public void setActive(boolean active) {
117        this.active = active;
118    }
119
120}