Subversion Repositories SmartDukaan

Rev

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

Rev 5241 Rev 5284
Line 104... Line 104...
104
     * 
104
     * 
105
     */
105
     */
106
    private void loadHotspotMappings() {
106
    private void loadHotspotMappings() {
107
        try {
107
        try {
108
            Client snapshotClient = new CatalogClient().getClient();
108
            Client snapshotClient = new CatalogClient().getClient();
109
            for (VendorItemMapping mapping : snapshotClient
109
            for (VendorItemMapping mapping : snapshotClient.getAllVendorItemMappings()) {
110
                    .getAllVendorItemMappings()) {
-
 
111
                if (mapping.getVendorId() == 1) {
110
                if (mapping.getVendorId() == 1) {
112
                    hotspotMappings.put(mapping.getItemId(),
111
                    hotspotMappings.put(mapping.getItemId(),
113
                            mapping.getItemKey());
112
                            mapping.getItemKey());
114
                }
113
                }
115
            }
114
            }
116
        } catch (Exception e) {
115
        } catch (Exception e) {
117
            logger.error("Could not load vendor item mappings", e);
116
            logger.error("Could not load vendor item mappings. Trying to reload.", e);
-
 
117
            loadHotspotMappings();
118
        }
118
        }
119
    }
119
    }
120
 
120
 
121
    /**
121
    /**
122
	 * Stores the inventory updates on the history and the production server.
122
	 * Stores the inventory updates on the history and the production server.