Subversion Repositories SmartDukaan

Rev

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

Rev 35203 Rev 35337
Line 52... Line 52...
52
        List<BrandCatalog> brandsDisplay = this.getBrandsToDisplay(categoryId);
52
        List<BrandCatalog> brandsDisplay = this.getBrandsToDisplay(categoryId);
53
        if (fofoId == Utils.SYSTEM_PARTNER_ID) {
53
        if (fofoId == Utils.SYSTEM_PARTNER_ID) {
54
            return brandsDisplay;
54
            return brandsDisplay;
55
        }
55
        }
56
        List<String> ineligibleBrands = this.partnerIneligibleBrands(fofoId);
56
        List<String> ineligibleBrands = this.partnerIneligibleBrands(fofoId);
57
        brandsDisplay = brandsDisplay.stream().filter(x -> !ineligibleBrands.contains(x.getName()))
57
        brandsDisplay.forEach(x -> x.setTrialBlocked(ineligibleBrands.contains(x.getName())));
58
                .collect(Collectors.toList());
-
 
59
 
58
 
60
        return brandsDisplay;
59
        return brandsDisplay;
61
    }
60
    }
62
 
61
 
63
    @Override
62
    @Override