Subversion Repositories SmartDukaan

Rev

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

Rev 4462 Rev 4472
Line 253... Line 253...
253
        if (GENERATION_TYPE.equals(GENERATION_TYPE_ONE)) {
253
        if (GENERATION_TYPE.equals(GENERATION_TYPE_ONE)) {
254
            items = client.getItemsByCatalogId(Long.parseLong(ENTITY_ID));
254
            items = client.getItemsByCatalogId(Long.parseLong(ENTITY_ID));
255
        } else {
255
        } else {
256
            items = client.getAllItemsByStatus(status.ACTIVE);
256
            items = client.getAllItemsByStatus(status.ACTIVE);
257
            items.addAll(client.getAllItemsByStatus(status.PAUSED));
257
            items.addAll(client.getAllItemsByStatus(status.PAUSED));
-
 
258
            try {
258
            //Generate prices and availability data for amazon
259
                //Generate prices and availability data for amazon
259
        	AmazonSCDataGenerator.generatePricesAndAvailability();
260
                AmazonSCDataGenerator.generatePricesAndAvailability();
-
 
261
            } catch (Exception e) {
-
 
262
                // TODO: handle exception
-
 
263
            }
260
            // Clean up the data from the solr directories.
264
            // Clean up the data from the solr directories.
261
            removeOldResources();
265
            removeOldResources();
262
 
266
 
263
        }
267
        }
264
 
268
 
Line 434... Line 438...
434
                    item.setStatus_description("This item is active");
438
                    item.setStatus_description("This item is active");
435
                    client.updateItem(item);
439
                    client.updateItem(item);
436
                }
440
                }
437
            }
441
            }
438
        }
442
        }
-
 
443
        try {
439
        //generate products list that is to be uploaded in Amazon.
444
            //generate products list that is to be uploaded in Amazon.
440
        AmazonSCDataGenerator.generateSCProdData(validEntities);
445
            AmazonSCDataGenerator.generateSCProdData(validEntities);
-
 
446
        } catch (Exception e) {
-
 
447
            // TODO: handle exception
-
 
448
        }
441
    }
449
    }
442
 
450
 
443
    /**
451
    /**
444
     * Checks weather entity is valid or not. Entity will be invalid in one of
452
     * Checks weather entity is valid or not. Entity will be invalid in one of
445
     * these cases:
453
     * these cases: