Subversion Repositories SmartDukaan

Rev

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

Rev 5906 Rev 5914
Line 636... Line 636...
636
						if(f.getBullets() == null){
636
						if(f.getBullets() == null){
637
							f.setBullets(new ArrayList<Bullet>());
637
							f.setBullets(new ArrayList<Bullet>());
638
						}else {
638
						}else {
639
							f.getBullets().clear();
639
							f.getBullets().clear();
640
						}
640
						}
641
						Bullet titleBullet = new Bullet(new PrimitiveDataObject(getTitle(entity)));
641
						Bullet titleBullet = new Bullet(new PrimitiveDataObject(getTitle()));
642
						f.getBullets().add(titleBullet);
642
						f.getBullets().add(titleBullet);
643
					}
643
					}
644
					else if(f.getFeatureDefinitionID()==120133l){
644
					else if(f.getFeatureDefinitionID()==120133l){
645
						if(f.getBullets() == null){
645
						if(f.getBullets() == null){
646
							f.setBullets(new ArrayList<Bullet>());
646
							f.setBullets(new ArrayList<Bullet>());
647
						}else {
647
						}else {
648
							f.getBullets().clear();
648
							f.getBullets().clear();
649
						}
649
						}
650
						Bullet metaDescBullet = new Bullet(new PrimitiveDataObject(getMetaDescription(entity)));
650
						Bullet metaDescBullet = new Bullet(new PrimitiveDataObject(getMetaDescription()));
651
						f.getBullets().add(metaDescBullet);
651
						f.getBullets().add(metaDescBullet);
652
					}
652
					}
653
				}
653
				}
654
			}
654
			}
655
		}
655
		}
656
	}
656
	}
657
    
657
    
658
    public String getTitle(Entity entity){
658
    public String getTitle(){
659
    	String brand = entity.getBrand();
659
    	String brand = entity.getBrand();
660
    	String modelName = entity.getModelName();
660
    	String modelName = entity.getModelName();
661
    	String modelNumber = entity.getModelNumber();
661
    	String modelNumber = entity.getModelNumber();
662
    	String titleString = "";
662
    	String titleString = "";
663
    	if(StringUtils.isEmpty(modelName)){
663
    	if(StringUtils.isEmpty(modelName)){
Line 666... Line 666...
666
    		titleString = brand + " " + modelName + " Price in India | " + modelNumber + " Specifications, Features and Reviews";
666
    		titleString = brand + " " + modelName + " Price in India | " + modelNumber + " Specifications, Features and Reviews";
667
    	}
667
    	}
668
    	return titleString;
668
    	return titleString;
669
    }
669
    }
670
    
670
    
671
    public String getMetaDescription(Entity entity){
671
    public String getMetaDescription(){
672
    	Category parentCategory = defs.getCategory(entity.getCategoryID()).getParentCategory();
672
    	Category parentCategory = defs.getCategory(entity.getCategoryID()).getParentCategory();
673
    	String categoryName = parentCategory.getLabel();
673
    	String categoryName = parentCategory.getLabel();
674
    	if (parentCategory.getID()== Utils.MOBILE_ACCESSORIES_CATEGORY){
674
    	if (parentCategory.getID()== Utils.MOBILE_ACCESSORIES_CATEGORY){
675
    		categoryName = expEntity.getCategory().getLabel();
675
    		categoryName = expEntity.getCategory().getLabel();
676
    	}
676
    	}