Subversion Repositories SmartDukaan

Rev

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