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.vnd.businessobject.ContractManager;
20  import org.kuali.rice.core.api.mo.common.active.MutableInactivatable;
21  import org.kuali.rice.krad.bo.PersistableBusinessObjectBase;
22  
23  import java.util.ArrayList;
24  import java.util.LinkedHashMap;
25  import java.util.List;
26  
27  /**
28   * Purchase Order Quote List Business Object.
29   */
30  public class PurchaseOrderQuoteList extends PersistableBusinessObjectBase implements MutableInactivatable {
31  
32      private Integer purchaseOrderQuoteListIdentifier;
33      private String purchaseOrderQuoteListName;
34      private Integer contractManagerCode;
35      private String contractManagerName;
36      private boolean active;
37  
38      private ContractManager contractManager;
39  
40      private List<PurchaseOrderQuoteListVendor> quoteListVendors;
41  
42      /**
43       * Default constructor.
44       */
45      public PurchaseOrderQuoteList() {
46          quoteListVendors = new ArrayList<PurchaseOrderQuoteListVendor>();
47      }
48  
49      public Integer getPurchaseOrderQuoteListIdentifier() {
50          return purchaseOrderQuoteListIdentifier;
51      }
52  
53      public void setPurchaseOrderQuoteListIdentifier(Integer purchaseOrderQuoteListIdentifier) {
54          this.purchaseOrderQuoteListIdentifier = purchaseOrderQuoteListIdentifier;
55      }
56  
57      public String getPurchaseOrderQuoteListName() {
58          return purchaseOrderQuoteListName;
59      }
60  
61      public void setPurchaseOrderQuoteListName(String purchaseOrderQuoteListName) {
62          this.purchaseOrderQuoteListName = purchaseOrderQuoteListName;
63      }
64  
65      public Integer getContractManagerCode() {
66          return contractManagerCode;
67      }
68  
69      public void setContractManagerCode(Integer contractManagerCode) {
70          this.contractManagerCode = contractManagerCode;
71      }
72  
73      public List<PurchaseOrderQuoteListVendor> getQuoteListVendors() {
74          return quoteListVendors;
75      }
76  
77      public void setQuoteListVendors(List<PurchaseOrderQuoteListVendor> quoteListVendors) {
78          this.quoteListVendors = quoteListVendors;
79      }
80  
81      public ContractManager getContractManager() {
82          return contractManager;
83      }
84  
85      /**
86       * @param contractManager
87       * @deprecated
88       */
89      public void setContractManager(ContractManager contractManager) {
90          this.contractManager = contractManager;
91      }
92  
93      public String getContractManagerName() {
94          return contractManager.getContractManagerName();
95      }
96  
97      public void setContractManagerName(String contractManagerName) {
98          this.contractManagerName = contractManagerName;
99      }
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 }