View Javadoc
1   /*
2    * The Kuali Financial System, a comprehensive financial management system for higher education.
3    * 
4    * Copyright 2005-2014 The Kuali Foundation
5    * 
6    * This program is free software: you can redistribute it and/or modify
7    * it under the terms of the GNU Affero General Public License as
8    * published by the Free Software Foundation, either version 3 of the
9    * License, or (at your option) any later version.
10   * 
11   * This program is distributed in the hope that it will be useful,
12   * but WITHOUT ANY WARRANTY; without even the implied warranty of
13   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14   * GNU Affero General Public License for more details.
15   * 
16   * You should have received a copy of the GNU Affero General Public License
17   * along with this program.  If not, see <http://www.gnu.org/licenses/>.
18   */
19  package org.kuali.kfs.vnd.businessobject;
20  
21  import java.util.LinkedHashMap;
22  
23  import org.kuali.kfs.vnd.VendorPropertyConstants;
24  import org.kuali.rice.core.api.mo.common.active.MutableInactivatable;
25  import org.kuali.rice.krad.bo.PersistableBusinessObjectBase;
26  
27  /**
28   * @author Kuali Nervous System Team (kualidev@oncourse.iu.edu)
29   */
30  public class CommodityContractManager extends PersistableBusinessObjectBase implements MutableInactivatable {
31  
32  	private String purchasingCommodityCode;
33  	private String campusCode;
34  	private Integer contractManagerCode;
35  
36      private CampusParameter campus;
37      private CommodityCode commodityCode;
38      private ContractManager contractManager;
39      private boolean active;
40      
41  	/**
42  	 * Default constructor.
43  	 */
44  	public CommodityContractManager() {
45  
46  	}
47  
48  	public String getPurchasingCommodityCode() { 
49  		return purchasingCommodityCode;
50  	}
51  
52  	public void setPurchasingCommodityCode(String purchasingCommodityCode) {
53  		this.purchasingCommodityCode = purchasingCommodityCode;
54  	}
55  
56  	public String getCampusCode() { 
57  		return campusCode;
58  	}
59  
60  	public void setCampusCode(String campusCode) {
61  		this.campusCode = campusCode;
62  	}
63  
64  	public Integer getContractManagerCode() { 
65  		return contractManagerCode;
66  	}
67  
68  	public void setContractManagerCode(Integer contractManagerCode) {
69  		this.contractManagerCode = contractManagerCode;
70  	}
71  
72  	public CampusParameter getCampus() { 
73          return campus;
74  	}
75  
76  	/**
77  	 * Sets the campus attribute.
78  	 * 
79  	 * @param campus The campus to set.
80  	 * @deprecated
81  	 */
82  	public void setCampus(CampusParameter campus) {
83  		this.campus = campus;
84  	}
85  
86  
87      public CommodityCode getCommodityCode() {
88          return commodityCode;
89      }
90  
91      /**
92       * Sets the commodity attribute value.
93       * @param commodityCode The commodityCode to set.
94       * @deprecated
95       */
96      public void setCommodityCode(CommodityCode commodityCode) {
97          this.commodityCode = commodityCode;
98      }
99  
100 
101     public ContractManager getContractManager() {
102         return contractManager;
103     }
104 
105     /**
106      * Sets the contractManager attribute value.
107      * @param contractManager The contractManager to set.
108      * @deprecated
109      */
110     public void setContractManager(ContractManager contractManager) {
111         this.contractManager = contractManager;
112     }
113 
114     /**
115 	 * @see org.kuali.rice.krad.bo.BusinessObjectBase#toStringMapper()
116 	 */
117 	protected LinkedHashMap toStringMapper_RICE20_REFACTORME() {
118 	    LinkedHashMap m = new LinkedHashMap();	    
119         m.put(VendorPropertyConstants.PURCHASING_COMMODITY_CODE, this.purchasingCommodityCode);
120         m.put(VendorPropertyConstants.CAMPUS_CODE, this.campusCode);
121         if (this.contractManagerCode != null) {
122             m.put(VendorPropertyConstants.CONTRACT_MANAGER_CODE, this.contractManagerCode.toString());
123         }
124 	    return m;
125     }
126 
127     public boolean isActive() {
128         return active;
129     }
130 
131     public void setActive(boolean active) {
132         this.active = active;
133     }
134 }