Subversion Repositories SmartDukaan

Rev

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

Rev 4418 Rev 4462
Line 254... Line 254...
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
            //Generate prices and availability data for amazon
258
            //Generate prices and availability data for amazon
259
        	AmazonSCDataGenerator.main(new String[]{});
259
        	AmazonSCDataGenerator.generatePricesAndAvailability();
260
            // Clean up the data from the solr directories.
260
            // Clean up the data from the solr directories.
261
            removeOldResources();
261
            removeOldResources();
262
 
262
 
263
        }
263
        }
264
 
264
 
Line 435... Line 435...
435
                    client.updateItem(item);
435
                    client.updateItem(item);
436
                }
436
                }
437
            }
437
            }
438
        }
438
        }
439
        //generate products list that is to be uploaded in Amazon.
439
        //generate products list that is to be uploaded in Amazon.
440
        AmazonSCDataGenerator.main(new String[]{"products"});
440
        AmazonSCDataGenerator.generateSCProdData(validEntities);
441
    }
441
    }
442
 
442
 
443
    /**
443
    /**
444
     * Checks weather entity is valid or not. Entity will be invalid in one of
444
     * Checks weather entity is valid or not. Entity will be invalid in one of
445
     * these cases:
445
     * these cases: