Subversion Repositories SmartDukaan

Rev

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