Subversion Repositories SmartDukaan

Rev

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

Rev 5117 Rev 5155
Line 430... Line 430...
430
        // resolve the product names.
430
        // resolve the product names.
431
        log.info("Generating synonyms");
431
        log.info("Generating synonyms");
432
        SynonymExporter sx = new SynonymExporter();
432
        SynonymExporter sx = new SynonymExporter();
433
        sx.storeSynonyms(validEntities);
433
        sx.storeSynonyms(validEntities);
434
        
434
        
435
        // Generate HTML for Site Index
435
        List<Entity> allValidEntities;
-
 
436
        
-
 
437
        if (GENERATION_TYPE.equals(GENERATION_TYPE_ALL))	{
-
 
438
        	allValidEntities = validEntities;
-
 
439
            
-
 
440
        } else	{
-
 
441
        	allValidEntities = new ArrayList<Entity>();
-
 
442
			
-
 
443
			for (Entity entity:  new ArrayList<Entity>(CreationUtils.getEntities().values()))	{
-
 
444
				if(isValidEntity(entity))	{
-
 
445
					allValidEntities.add(entity);
-
 
446
				}
-
 
447
			}
-
 
448
        }
-
 
449
        
436
        log.info("Generating HTML for Site Index");
450
        log.info("Generating HTML for Site Index");
437
        ProductIndexGenerator indexGenerator = new ProductIndexGenerator(validEntities);
451
        ProductIndexGenerator indexGenerator = new ProductIndexGenerator(allValidEntities);
438
        indexGenerator.generate();
452
        indexGenerator.generate();
439
        
453
        
440
        log.info("Generating HTML for Accessories Compatibility Index");
454
        log.info("Generating HTML for Accessories Compatibility Index");
441
        CompatibleAccessoriesIndexGenerator generator = new CompatibleAccessoriesIndexGenerator();
455
        CompatibleAccessoriesIndexGenerator generator = new CompatibleAccessoriesIndexGenerator(allValidEntities);
442
        generator.generate();
456
        generator.generate();
443
        
457
        
444
        if (newLastGenerationTime != 0) {
458
        if (newLastGenerationTime != 0) {
445
            CreationUtils.storeLastContentGenerationTime(newLastGenerationTime);
459
            CreationUtils.storeLastContentGenerationTime(newLastGenerationTime);
446
        }
460
        }