Subversion Repositories SmartDukaan

Rev

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

Rev 31507 Rev 31536
Line 40... Line 40...
40
		return brandsDisplay;
40
		return brandsDisplay;
41
	}
41
	}
42
 
42
 
43
	@Override
43
	@Override
44
	public List<BrandCatalog> getBrandsToDisplay(int categoryId) {
44
	public List<BrandCatalog> getBrandsToDisplay(int categoryId) {
45
		List<BrandCategory> brandCategories = brandCategoryRepository.selectByCategoryId(categoryId);
45
		List<BrandCategory> brandCategories = brandCategoryRepository.selectByCategoryId(categoryId).stream()
-
 
46
				.filter(x -> x.isActive()).collect(Collectors.toList());
46
 
47
 
47
		Map<Integer, BrandCategory> brandCategoryMap = brandCategories.stream()
48
		Map<Integer, BrandCategory> brandCategoryMap = brandCategories.stream()
48
				.collect(Collectors.toMap(x -> x.getBrandId(), x -> x));
49
				.collect(Collectors.toMap(x -> x.getBrandId(), x -> x));
49
 
50
 
50
		List<Integer> brandIds = brandCategories.stream().map(x -> x.getBrandId()).collect(Collectors.toList());
51
		List<Integer> brandIds = brandCategories.stream().map(x -> x.getBrandId()).collect(Collectors.toList());