Subversion Repositories SmartDukaan

Rev

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