Subversion Repositories SmartDukaan

Rev

Rev 2252 | Rev 2427 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2252 Rev 2359
Line 33... Line 33...
33
    private long addedOn;
33
    private long addedOn;
34
    private long updatedOn;
34
    private long updatedOn;
35
    private long startDate;
35
    private long startDate;
36
    private long retireDate;
36
    private long retireDate;
37
    private String itemStatus;
37
    private String itemStatus;
-
 
38
    private String itemStatusDesc;
38
    private int itemStatusValue;
39
    private int itemStatusValue;
39
    private String bestDealsText;
40
    private String bestDealsText;
40
    private double bestDealsValue = -1;
41
    private double bestDealsValue = -1;
41
    
42
    
42
    private long bestSellingRank = -1;
43
    private long bestSellingRank = -1;
Line 45... Line 46...
45
    private Map<String, String> otherInfo;
46
    private Map<String, String> otherInfo;
46
    private Map<Long, Long> availability;
47
    private Map<Long, Long> availability;
47
    
48
    
48
    //private Map<Long, double[]> vendorPricings;
49
    //private Map<Long, double[]> vendorPricings;
49
    private Map<Long, VendorPricings> vendorPricesMap;
50
    private Map<Long, VendorPricings> vendorPricesMap;
50
    private Map<Long, VendorItemMapping> vendorMappingsMap;
51
    private Map<String, VendorItemMapping> vendorKeysMap;
-
 
52
    public static final String KEY_SEPARATOR= "#";
51
    
53
    
52
    private static final long serialVersionUID = -2982668732181655698L;
54
    private static final long serialVersionUID = -2982668732181655698L;
53
 
55
 
54
    public Item() {
56
    public Item() {
55
        
-
 
56
    }
57
    }
57
 
58
 
58
    public Item(long id, String productGroup, String brand, String modelNumber, String modelName, String color,
59
    public Item(long id, String productGroup, String brand, String modelNumber, String modelName, String color,
59
            String category, long categoryId, String comments,
60
            String category, long categoryId, String comments,
60
            long catalogItemId, long featureId,
61
            long catalogItemId, long featureId,
61
            String featureDescription, 
62
            String featureDescription, 
62
            double mrp, double mop, double sellingPrice, double dealerPrice, double weight,
63
            double mrp, double mop, double sellingPrice, double dealerPrice, double weight,
63
            long addedOn, long startDate, long retireDate, long updatedOn,
64
            long addedOn, long startDate, long retireDate, long updatedOn,
64
            String itemStatus, int itemStatusValue,
65
            String itemStatus, int itemStatusValue, String itemStatusDesc, 
65
            Map<String, String> otherInfo,
66
            Map<String, String> otherInfo,
66
            String bestDealsText, double bestDealsValue, long bestSellingRank, boolean defaultForEntity, boolean risky,
67
            String bestDealsText, double bestDealsValue, long bestSellingRank, boolean defaultForEntity, boolean risky,
67
            Map<Long, Long> availability, Map<Long,VendorPricings> vendorPricesMap, Map<Long, VendorItemMapping> vendorMappingsMap) {
68
            Map<Long, Long> availability, Map<Long,VendorPricings> vendorPricesMap, Map<String, VendorItemMapping> vendorKeysMap) {
68
        this();
69
        this();
69
        this.id = id;
70
        this.id = id;
70
        this.setProductGroup(productGroup);
71
        this.setProductGroup(productGroup);
71
        this.brand = brand;
72
        this.brand = brand;
72
        this.modelNumber = modelNumber;
73
        this.modelNumber = modelNumber;
Line 87... Line 88...
87
        this.startDate = startDate;
88
        this.startDate = startDate;
88
        this.retireDate = retireDate;
89
        this.retireDate = retireDate;
89
        this.updatedOn = updatedOn;
90
        this.updatedOn = updatedOn;
90
        this.itemStatus = itemStatus;
91
        this.itemStatus = itemStatus;
91
        this.itemStatusValue = itemStatusValue;
92
        this.itemStatusValue = itemStatusValue;
-
 
93
        this.itemStatusDesc = itemStatusDesc;
92
        this.otherInfo = otherInfo;
94
        this.otherInfo = otherInfo;
93
        this.bestDealsText = bestDealsText;
95
        this.bestDealsText = bestDealsText;
94
        this.bestDealsValue = bestDealsValue;
96
        this.bestDealsValue = bestDealsValue;
95
        this.bestSellingRank = bestSellingRank;
97
        this.bestSellingRank = bestSellingRank;
96
        this.defaultForEntity = defaultForEntity;
98
        this.defaultForEntity = defaultForEntity;
97
        this.risky = risky;
99
        this.risky = risky;
98
        
100
        
99
        this.availability = availability;
101
        this.availability = availability;
100
        
102
        
101
        this.vendorPricesMap = vendorPricesMap;
103
        this.vendorPricesMap = vendorPricesMap;
102
        this.vendorMappingsMap = vendorMappingsMap;
104
        this.vendorKeysMap = vendorKeysMap;
103
    }
105
    }
104
 
106
 
105
    public long getId() {
107
    public long getId() {
106
        return id;
108
        return id;
107
    }
109
    }
Line 340... Line 342...
340
 
342
 
341
    public void setVendorCategory(String vendorCategory) {
343
    public void setVendorCategory(String vendorCategory) {
342
        this.vendorCategory = vendorCategory;
344
        this.vendorCategory = vendorCategory;
343
    }
345
    }
344
 
346
 
345
    public Map<Long, VendorItemMapping> getVendorMappingsMap() {
347
    public Map<String, VendorItemMapping> getVendorKeysMap() {
346
        return vendorMappingsMap;
348
        return vendorKeysMap;
347
    }
349
    }
348
 
350
 
349
    public void setVendorMappingsMap(Map<Long, VendorItemMapping> vendorMappingsMap) {
351
    public void setVendorKeysMap(Map<String, VendorItemMapping> vendorKeysMap) {
350
        this.vendorMappingsMap = vendorMappingsMap;
352
        this.vendorKeysMap = vendorKeysMap;
351
    }
353
    }
352
 
354
 
353
    public long getContentCategoryId() {
355
    public long getContentCategoryId() {
354
        return contentCategoryId;
356
        return contentCategoryId;
355
    }
357
    }
Line 372... Line 374...
372
 
374
 
373
    public void setRisky(boolean isRisky) {
375
    public void setRisky(boolean isRisky) {
374
        this.risky = isRisky;
376
        this.risky = isRisky;
375
    }
377
    }
376
 
378
 
-
 
379
    public String getItemStatusDesc() {
-
 
380
        return itemStatusDesc;
-
 
381
    }
-
 
382
 
-
 
383
    public void setItemStatusDesc(String itemStatusDesc) {
-
 
384
        this.itemStatusDesc = itemStatusDesc;
-
 
385
    }
-
 
386
 
377
}
387
}