Subversion Repositories SmartDukaan

Rev

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

Rev 4311 Rev 4418
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
 
-
 
-
 
258
            //Generate prices and availability data for amazon
-
 
259
        	AmazonSCDataGenerator.main(new String[]{});
259
            // Clean up the data from the solr directories.
260
            // Clean up the data from the solr directories.
260
            removeOldResources();
261
            removeOldResources();
261
 
262
 
262
        }
263
        }
263
 
264
 
Line 433... Line 434...
433
                    item.setStatus_description("This item is active");
434
                    item.setStatus_description("This item is active");
434
                    client.updateItem(item);
435
                    client.updateItem(item);
435
                }
436
                }
436
            }
437
            }
437
        }
438
        }
-
 
439
        //generate products list that is to be uploaded in Amazon.
-
 
440
        AmazonSCDataGenerator.main(new String[]{"products"});
438
    }
441
    }
439
 
442
 
440
    /**
443
    /**
441
     * 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
442
     * these cases:
445
     * these cases: