Rev 2252 | Rev 2427 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed
package in.shop2020.catalog.dashboard.shared;import java.io.Serializable;import java.util.Map;import com.google.gwt.user.client.rpc.IsSerializable;public class Item implements IsSerializable, Serializable {//public static final int INDEX_MOP = 0, INDEX_DP = 1, INDEX_TP = 2;private long id;private String vendorCategory;private String productGroup;private String brand;private String modelNumber;private String modelName;private String color;private String contentCategory;private long contentCategoryId;private String comments;private long catalogItemId;private long featureId;private String featureDescription;private double mrp = -1;private double mop;private double sellingPrice = -1;private double dealerPrice;private double transferPrice;private double weight = -1;private long addedOn;private long updatedOn;private long startDate;private long retireDate;private String itemStatus;private String itemStatusDesc;private int itemStatusValue;private String bestDealsText;private double bestDealsValue = -1;private long bestSellingRank = -1;private boolean defaultForEntity, risky;private Map<String, String> otherInfo;private Map<Long, Long> availability;//private Map<Long, double[]> vendorPricings;private Map<Long, VendorPricings> vendorPricesMap;private Map<String, VendorItemMapping> vendorKeysMap;public static final String KEY_SEPARATOR= "#";private static final long serialVersionUID = -2982668732181655698L;public Item() {}public Item(long id, String productGroup, String brand, String modelNumber, String modelName, String color,String category, long categoryId, String comments,long catalogItemId, long featureId,String featureDescription,double mrp, double mop, double sellingPrice, double dealerPrice, double weight,long addedOn, long startDate, long retireDate, long updatedOn,String itemStatus, int itemStatusValue, String itemStatusDesc,Map<String, String> otherInfo,String bestDealsText, double bestDealsValue, long bestSellingRank, boolean defaultForEntity, boolean risky,Map<Long, Long> availability, Map<Long,VendorPricings> vendorPricesMap, Map<String, VendorItemMapping> vendorKeysMap) {this();this.id = id;this.setProductGroup(productGroup);this.brand = brand;this.modelNumber = modelNumber;this.modelName = modelName;this.color = color;this.contentCategory = category;this.contentCategoryId = categoryId;this.comments = comments;this.catalogItemId = catalogItemId;this.featureId = featureId;this.featureDescription = featureDescription;this.mrp = mrp;this.mop = mop;this.sellingPrice = sellingPrice;this.dealerPrice = dealerPrice;this.weight = weight;this.addedOn = addedOn;this.startDate = startDate;this.retireDate = retireDate;this.updatedOn = updatedOn;this.itemStatus = itemStatus;this.itemStatusValue = itemStatusValue;this.itemStatusDesc = itemStatusDesc;this.otherInfo = otherInfo;this.bestDealsText = bestDealsText;this.bestDealsValue = bestDealsValue;this.bestSellingRank = bestSellingRank;this.defaultForEntity = defaultForEntity;this.risky = risky;this.availability = availability;this.vendorPricesMap = vendorPricesMap;this.vendorKeysMap = vendorKeysMap;}public long getId() {return id;}public void setId(long id) {this.id = id;}public void setProductGroup(String productGroup) {this.productGroup = productGroup;}public String getProductGroup() {return productGroup;}public String getBrand() {return brand;}public void setBrand(String brand) {this.brand = brand;}public String getModelNumber() {return modelNumber;}public void setModelNumber(String modelNumber) {this.modelNumber = modelNumber;}public String getModelName() {return modelName;}public void setModelName(String modelName) {this.modelName = modelName;}public String getContentCategory() {return contentCategory;}public void setContentCategory(String contentCategory) {this.contentCategory = contentCategory;}public String getComments() {return comments;}public void setComments(String comments) {this.comments = comments;}public long getCatalogItemId() {return catalogItemId;}public void setCatalogItemId(long catalogItemId) {this.catalogItemId = catalogItemId;}public long getFeatureId() {return featureId;}public void setFeatureId(long featureId) {this.featureId = featureId;}public String getFeatureDescription() {return featureDescription;}public void setFeatureDescription(String featureDescription) {this.featureDescription = featureDescription;}public double getMrp() {return mrp;}public void setMrp(double mrp) {this.mrp = mrp;}public double getMop() {return mop;}public void setMop(double mop) {this.mop = mop;}public double getSellingPrice() {return sellingPrice;}public void setSellingPrice(double sellingPrice) {this.sellingPrice = sellingPrice;}public double getWeight() {return weight;}public void setWeight(double weight) {this.weight = weight;}public long getAddedOn() {return addedOn;}public void setAddedOn(long addedOn) {this.addedOn = addedOn;}public long getStartDate() {return startDate;}public void setStartDate(long startDate) {this.startDate = startDate;}public long getRetireDate() {return retireDate;}public void setRetireDate(long retireDate) {this.retireDate = retireDate;}public Map<String, String> getOtherInfo() {return otherInfo;}public void setOtherInfo(Map<String, String> otherInfo) {this.otherInfo = otherInfo;}public void setUpdatedOn(long updatedOn) {this.updatedOn = updatedOn;}public long getUpdatedOn() {return updatedOn;}public void setColor(String color) {this.color = color;}public String getColor() {return color;}public void setDealerPrice(double dealerPrice) {this.dealerPrice = dealerPrice;}public double getDealerPrice() {return dealerPrice;}public void setBestDealsText(String bestDealsText) {this.bestDealsText = bestDealsText;}public String getBestDealsText() {return bestDealsText;}public void setBestDealsValue(double bestDealsValue) {this.bestDealsValue = bestDealsValue;}public double getBestDealsValue() {return bestDealsValue;}public double getTransferPrice() {return transferPrice;}public void setTransferPrice(double transferPrice) {this.transferPrice = transferPrice;}public String getItemStatus() {return itemStatus;}public void setItemStatus(String itemStatus) {this.itemStatus = itemStatus;}public Map<Long, Long> getAvailability() {return availability;}public void setAvailability(Map<Long, Long> availability) {this.availability = availability;}public Map<Long, VendorPricings> getVendorPricesMap() {return vendorPricesMap;}public void setVendorPricesMap(Map<Long, VendorPricings> vendorPricesMap) {this.vendorPricesMap = vendorPricesMap;}public long getBestSellingRank() {return bestSellingRank;}public void setBestSellingRank(long bestSellingRank) {this.bestSellingRank = bestSellingRank;}public boolean isDefaultForEntity() {return defaultForEntity;}public void setDefaultForEntity(boolean defaultForEntity) {this.defaultForEntity = defaultForEntity;}public String getVendorCategory() {return vendorCategory;}public void setVendorCategory(String vendorCategory) {this.vendorCategory = vendorCategory;}public Map<String, VendorItemMapping> getVendorKeysMap() {return vendorKeysMap;}public void setVendorKeysMap(Map<String, VendorItemMapping> vendorKeysMap) {this.vendorKeysMap = vendorKeysMap;}public long getContentCategoryId() {return contentCategoryId;}public void setContentCategoryId(long contentCategoryId) {this.contentCategoryId = contentCategoryId;}public int getItemStatusValue() {return itemStatusValue;}public void setItemStatusValue(int itemStatusValue) {this.itemStatusValue = itemStatusValue;}public boolean isRisky() {return risky;}public void setRisky(boolean isRisky) {this.risky = isRisky;}public String getItemStatusDesc() {return itemStatusDesc;}public void setItemStatusDesc(String itemStatusDesc) {this.itemStatusDesc = itemStatusDesc;}}