Subversion Repositories SmartDukaan

Rev

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

Rev 5280 Rev 5310
Line 443... Line 443...
443
            
443
            
444
        } else	{
444
        } else	{
445
        	allValidEntities = new ArrayList<Entity>();
445
        	allValidEntities = new ArrayList<Entity>();
446
			
446
			
447
			for (Entity entity:  new ArrayList<Entity>(CreationUtils.getEntities().values()))	{
447
			for (Entity entity:  new ArrayList<Entity>(CreationUtils.getEntities().values()))	{
-
 
448
				
448
				if(isValidEntity(entity))	{
449
				ExpandedEntity expEntity = new ExpandedEntity(entity);
-
 
450
		        EntityState state = CreationUtils.getEntityState(entity.getID());
-
 
451
		        long categoryID = expEntity.getCategoryID();
-
 
452
		        
-
 
453
		        if (state.getStatus() == EntityStatus.READY && categoryID != -1) {
449
					allValidEntities.add(entity);
454
					allValidEntities.add(entity);
450
				}
455
		        }
451
			}
456
			}
452
        }
457
        }
453
        
458
        
454
        log.info("Generating HTML for Site Index");
459
        log.info("Generating HTML for Site Index");
455
        ProductIndexGenerator indexGenerator = new ProductIndexGenerator(allValidEntities);
460
        ProductIndexGenerator indexGenerator = new ProductIndexGenerator(allValidEntities);