Subversion Repositories SmartDukaan

Rev

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

Rev 11644 Rev 11645
Line 90... Line 90...
90
	        }
90
	        }
91
        }
91
        }
92
        log.info("Getting private deals from snippets.");
92
        log.info("Getting private deals from snippets.");
93
    	in.shop2020.model.v1.catalog.CatalogService.Client client = catalogClientService.getClient();
93
    	in.shop2020.model.v1.catalog.CatalogService.Client client = catalogClientService.getClient();
94
    	try {
94
    	try {
95
    		long count = client.getPrivateDealsCatalogIds(beginIndex, totalItems).size();
95
    		long count = client.getPrivateDealsCount();
96
			this.setTotalItems(count > 20 ? 20 : count);
96
			this.setTotalItems(count > 20 ? 20 : count);
97
			if(sourceId == -1){
97
			if(sourceId == -1){
98
				showcasePageSnippetsCache.put(SHOWCASE_PRIVATE_DEALS_COUNT_CACHE_KEY, this.totalItems);
98
				showcasePageSnippetsCache.put(SHOWCASE_PRIVATE_DEALS_COUNT_CACHE_KEY, this.totalItems);
99
			}
99
			}
100
			this.items = client.getPrivateDealsCatalogIds(beginIndex, windowSize);
100
			this.items = client.getPrivateDealsCatalogIds(beginIndex, windowSize);