1
2
3
4
5
6
7
8
9
10
11
12
13
14
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
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
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
75
76
77
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
90
91
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
104
105
106
107 public void setContractManager(ContractManager contractManager) {
108 this.contractManager = contractManager;
109 }
110
111
112
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 }