Subversion Repositories SmartDukaan

Rev

Rev 2105 | Rev 2126 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
1961 ankur.sing 1
package in.shop2020.catalog.dashboard.shared;
2
 
3
import java.io.Serializable;
4
import java.util.Map;
5
 
6
import com.google.gwt.user.client.rpc.IsSerializable;
7
 
8
public class Item implements IsSerializable, Serializable {
1992 ankur.sing 9
 
2105 ankur.sing 10
    //public static final int INDEX_MOP = 0, INDEX_DP = 1, INDEX_TP = 2;
1992 ankur.sing 11
 
1961 ankur.sing 12
    private long id;
2105 ankur.sing 13
 
14
    private String vendorCategory;
1961 ankur.sing 15
    private String productGroup;
2105 ankur.sing 16
 
1961 ankur.sing 17
    private String brand;
18
    private String modelNumber;
19
    private String modelName;
20
    private String color;
2119 ankur.sing 21
    private String contentCategory;
1961 ankur.sing 22
    private String comments;
23
    private long catalogItemId;
24
    private long featureId;
25
    private String featureDescription;
26
    private double mrp;
27
    private double mop;
28
    private double sellingPrice;
29
    private double dealerPrice;
1992 ankur.sing 30
    private double transferPrice;
1961 ankur.sing 31
    private double weight;
32
    private long addedOn;
1992 ankur.sing 33
    private long updatedOn;
1961 ankur.sing 34
    private long startDate;
35
    private long retireDate;
1992 ankur.sing 36
    private String itemStatus;
1961 ankur.sing 37
    private String bestDealsText;
38
    private double bestDealsValue;
1992 ankur.sing 39
 
2066 ankur.sing 40
    private long bestSellingRank;
41
    private boolean defaultForEntity;
42
 
1992 ankur.sing 43
    private Map<String, String> otherInfo;
44
    private Map<Long, Long> availability;
45
 
2105 ankur.sing 46
    //private Map<Long, double[]> vendorPricings;
2119 ankur.sing 47
    private Map<Long, VendorPricings> vendorPricesMap;
48
    private Map<Long, VendorItemMapping> vendorMappingsMap;
1992 ankur.sing 49
 
1961 ankur.sing 50
    private static final long serialVersionUID = -2982668732181655698L;
51
 
52
    public Item() {
1992 ankur.sing 53
 
1961 ankur.sing 54
    }
55
 
56
    public Item(long id, String productGroup, String brand, String modelNumber, String modelName, String color,
2119 ankur.sing 57
            String category, String comments,
1961 ankur.sing 58
            long catalogItemId, long featureId,
59
            String featureDescription, 
60
            double mrp, double mop, double sellingPrice, double dealerPrice, double weight,
61
            long addedOn, long startDate, long retireDate, long updatedOn,
1992 ankur.sing 62
            String itemStatus,
1961 ankur.sing 63
            Map<String, String> otherInfo,
2119 ankur.sing 64
            String bestDealsText, double bestDealsValue, long bestSellingRank, boolean defaultForEntity, 
65
            Map<Long, Long> availability, Map<Long,VendorPricings> vendorPricesMap, Map<Long, VendorItemMapping> vendorMappingsMap) {
1961 ankur.sing 66
        this();
67
        this.id = id;
68
        this.setProductGroup(productGroup);
69
        this.brand = brand;
70
        this.modelNumber = modelNumber;
71
        this.modelName = modelName;
72
        this.color = color;
2105 ankur.sing 73
        this.contentCategory = category;
1961 ankur.sing 74
        this.comments = comments;
75
        this.catalogItemId = catalogItemId;
76
        this.featureId = featureId;
77
        this.featureDescription = featureDescription;
78
        this.mrp = mrp;
79
        this.mop = mop;
80
        this.sellingPrice = sellingPrice;
81
        this.dealerPrice = dealerPrice;
82
        this.weight = weight;
83
        this.addedOn = addedOn;
84
        this.startDate = startDate;
85
        this.retireDate = retireDate;
86
        this.updatedOn = updatedOn;
1992 ankur.sing 87
        this.itemStatus = itemStatus;
1961 ankur.sing 88
        this.otherInfo = otherInfo;
89
        this.bestDealsText = bestDealsText;
90
        this.bestDealsValue = bestDealsValue;
2066 ankur.sing 91
        this.bestSellingRank = bestSellingRank;
92
        this.defaultForEntity = defaultForEntity;
93
 
1992 ankur.sing 94
        this.availability = availability;
95
 
2119 ankur.sing 96
        this.vendorPricesMap = vendorPricesMap;
97
        this.vendorMappingsMap = vendorMappingsMap;
1961 ankur.sing 98
    }
99
 
100
    public long getId() {
101
        return id;
102
    }
103
 
104
    public void setId(long id) {
105
        this.id = id;
106
    }
107
 
108
    public void setProductGroup(String productGroup) {
109
        this.productGroup = productGroup;
110
    }
111
 
112
    public String getProductGroup() {
113
        return productGroup;
114
    }
115
 
116
    public String getBrand() {
117
        return brand;
118
    }
119
 
120
    public void setBrand(String brand) {
121
        this.brand = brand;
122
    }
123
 
124
    public String getModelNumber() {
125
        return modelNumber;
126
    }
127
 
128
    public void setModelNumber(String modelNumber) {
129
        this.modelNumber = modelNumber;
130
    }
131
 
132
    public String getModelName() {
133
        return modelName;
134
    }
135
 
136
    public void setModelName(String modelName) {
137
        this.modelName = modelName;
138
    }
139
 
2119 ankur.sing 140
    public String getContentCategory() {
2105 ankur.sing 141
        return contentCategory;
1961 ankur.sing 142
    }
143
 
2119 ankur.sing 144
    public void setContentCategory(String contentCategory) {
2105 ankur.sing 145
        this.contentCategory = contentCategory;
2066 ankur.sing 146
    }
1961 ankur.sing 147
 
148
    public String getComments() {
149
        return comments;
150
    }
151
 
152
    public void setComments(String comments) {
153
        this.comments = comments;
154
    }
155
 
156
    public long getCatalogItemId() {
157
        return catalogItemId;
158
    }
159
 
160
    public void setCatalogItemId(long catalogItemId) {
161
        this.catalogItemId = catalogItemId;
162
    }
163
 
164
    public long getFeatureId() {
165
        return featureId;
166
    }
167
 
168
    public void setFeatureId(long featureId) {
169
        this.featureId = featureId;
170
    }
171
 
172
    public String getFeatureDescription() {
173
        return featureDescription;
174
    }
175
 
176
    public void setFeatureDescription(String featureDescription) {
177
        this.featureDescription = featureDescription;
178
    }
179
 
180
    public double getMrp() {
181
        return mrp;
182
    }
183
 
184
    public void setMrp(double mrp) {
185
        this.mrp = mrp;
186
    }
187
 
188
    public double getMop() {
189
        return mop;
190
    }
191
 
192
    public void setMop(double mop) {
193
        this.mop = mop;
194
    }
195
 
196
    public double getSellingPrice() {
197
        return sellingPrice;
198
    }
199
 
200
    public void setSellingPrice(double sellingPrice) {
201
        this.sellingPrice = sellingPrice;
202
    }
203
 
204
    public double getWeight() {
205
        return weight;
206
    }
207
 
208
    public void setWeight(double weight) {
209
        this.weight = weight;
210
    }
211
 
212
    public long getAddedOn() {
213
        return addedOn;
214
    }
215
 
216
    public void setAddedOn(long addedOn) {
217
        this.addedOn = addedOn;
218
    }
219
 
220
    public long getStartDate() {
221
        return startDate;
222
    }
223
 
224
    public void setStartDate(long startDate) {
225
        this.startDate = startDate;
226
    }
227
 
228
    public long getRetireDate() {
229
        return retireDate;
230
    }
231
 
232
    public void setRetireDate(long retireDate) {
233
        this.retireDate = retireDate;
234
    }
235
 
236
    public Map<String, String> getOtherInfo() {
237
        return otherInfo;
238
    }
239
 
240
    public void setOtherInfo(Map<String, String> otherInfo) {
241
        this.otherInfo = otherInfo;
242
    }
243
 
244
    public void setUpdatedOn(long updatedOn) {
245
        this.updatedOn = updatedOn;
246
    }
247
 
248
    public long getUpdatedOn() {
249
        return updatedOn;
250
    }
251
 
252
    public void setColor(String color) {
253
        this.color = color;
254
    }
255
 
256
    public String getColor() {
257
        return color;
258
    }
259
 
260
    public void setDealerPrice(double dealerPrice) {
261
        this.dealerPrice = dealerPrice;
262
    }
263
 
264
    public double getDealerPrice() {
265
        return dealerPrice;
266
    }
267
 
268
    public void setBestDealsText(String bestDealsText) {
269
        this.bestDealsText = bestDealsText;
270
    }
271
 
272
    public String getBestDealsText() {
273
        return bestDealsText;
274
    }
275
 
276
    public void setBestDealsValue(double bestDealsValue) {
277
        this.bestDealsValue = bestDealsValue;
278
    }
279
 
280
    public double getBestDealsValue() {
281
        return bestDealsValue;
282
    }
283
 
1992 ankur.sing 284
    public double getTransferPrice() {
285
        return transferPrice;
286
    }
287
 
288
    public void setTransferPrice(double transferPrice) {
289
        this.transferPrice = transferPrice;
290
    }
291
 
292
    public String getItemStatus() {
293
        return itemStatus;
294
    }
295
 
296
    public void setItemStatus(String itemStatus) {
297
        this.itemStatus = itemStatus;
298
    }
299
 
300
    public Map<Long, Long> getAvailability() {
301
        return availability;
302
    }
303
 
304
    public void setAvailability(Map<Long, Long> availability) {
305
        this.availability = availability;
306
    }
307
 
2119 ankur.sing 308
    public Map<Long, VendorPricings> getVendorPricesMap() {
309
        return vendorPricesMap;
1992 ankur.sing 310
    }
311
 
2119 ankur.sing 312
    public void setVendorPricesMap(Map<Long, VendorPricings> vendorPricesMap) {
313
        this.vendorPricesMap = vendorPricesMap;
1992 ankur.sing 314
    }
2066 ankur.sing 315
 
316
    public long getBestSellingRank() {
317
        return bestSellingRank;
318
    }
319
 
320
    public void setBestSellingRank(long bestSellingRank) {
321
        this.bestSellingRank = bestSellingRank;
322
    }
323
 
324
    public boolean isDefaultForEntity() {
325
        return defaultForEntity;
326
    }
327
 
328
    public void setDefaultForEntity(boolean defaultForEntity) {
329
        this.defaultForEntity = defaultForEntity;
330
    }
2105 ankur.sing 331
 
332
    public String getVendorCategory() {
333
        return vendorCategory;
334
    }
335
 
336
    public void setVendorCategory(String vendorCategory) {
337
        this.vendorCategory = vendorCategory;
338
    }
2119 ankur.sing 339
 
340
    public Map<Long, VendorItemMapping> getVendorMappingsMap() {
341
        return vendorMappingsMap;
342
    }
343
 
344
    public void setVendorMappingsMap(Map<Long, VendorItemMapping> vendorMappingsMap) {
345
        this.vendorMappingsMap = vendorMappingsMap;
346
    }
347
 
1961 ankur.sing 348
}