Subversion Repositories SmartDukaan

Rev

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