View Javadoc
1   /*
2    * Copyright 2008-2009 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  package org.kuali.ole.vnd.businessobject;
17  
18  import java.util.LinkedHashMap;
19  
20  import org.kuali.ole.vnd.VendorPropertyConstants;
21  import org.kuali.rice.core.api.mo.common.active.MutableInactivatable;
22  import org.kuali.rice.krad.bo.PersistableBusinessObjectBase;
23  
24  /**
25   * @author Kuali Nervous System Team (kualidev@oncourse.iu.edu)
26   */
27  public class CommodityContractManager extends PersistableBusinessObjectBase implements MutableInactivatable {
28  
29  	private String purchasingCommodityCode;
30  	private String campusCode;
31  	private Integer contractManagerCode;
32  
33      private CampusParameter campus;
34      private CommodityCode commodityCode;
35      private ContractManager contractManager;
36      private boolean active;
37      
38  	/**
39  	 * Default constructor.
40  	 */
41  	public CommodityContractManager() {
42  
43  	}
44  
45  	public String getPurchasingCommodityCode() { 
46  		return purchasingCommodityCode;
47  	}
48  
49  	public void setPurchasingCommodityCode(String purchasingCommodityCode) {
50  		this.purchasingCommodityCode = purchasingCommodityCode;
51  	}
52  
53  	public String getCampusCode() { 
54  		return campusCode;
55  	}
56  
57  	public void setCampusCode(String campusCode) {
58  		this.campusCode = campusCode;
59  	}
60  
61  	public Integer getContractManagerCode() { 
62  		return contractManagerCode;
63  	}
64  
65  	public void setContractManagerCode(Integer contractManagerCode) {
66  		this.contractManagerCode = contractManagerCode;
67  	}
68  
69  	public CampusParameter getCampus() { 
70          return campus;
71  	}
72  
73  	/**
74  	 * Sets the campus attribute.
75  	 * 
76  	 * @param campus The campus to set.
77  	 * @deprecated
78  	 */
79  	public void setCampus(CampusParameter campus) {
80  		this.campus = campus;
81  	}
82  
83  
84      public CommodityCode getCommodityCode() {
85          return commodityCode;
86      }
87  
88      /**
89       * Sets the commodity attribute value.
90       * @param commodityCode The commodityCode to set.
91       * @deprecated
92       */
93      public void setCommodityCode(CommodityCode commodityCode) {
94          this.commodityCode = commodityCode;
95      }
96  
97  
98      public ContractManager getContractManager() {
99          return contractManager;
100     }
101 
102     /**
103      * Sets the contractManager attribute value.
104      * @param contractManager The contractManager to set.
105      * @deprecated
106      */
107     public void setContractManager(ContractManager contractManager) {
108         this.contractManager = contractManager;
109     }
110 
111     /**
112 	 * @see org.kuali.rice.krad.bo.BusinessObjectBase#toStringMapper()
113 	 */
114 	protected LinkedHashMap toStringMapper_RICE20_REFACTORME() {
115 	    LinkedHashMap m = new LinkedHashMap();	    
116         m.put(VendorPropertyConstants.PURCHASING_COMMODITY_CODE, this.purchasingCommodityCode);
117         m.put(VendorPropertyConstants.CAMPUS_CODE, this.campusCode);
118         if (this.contractManagerCode != null) {
119             m.put(VendorPropertyConstants.CONTRACT_MANAGER_CODE, this.contractManagerCode.toString());
120         }
121 	    return m;
122     }
123 
124     public boolean isActive() {
125         return active;
126     }
127 
128     public void setActive(boolean active) {
129         this.active = active;
130     }
131 }