Subversion Repositories SmartDukaan

Rev

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

Rev 12132 Rev 12138
Line 351... Line 351...
351
    		snippets = new HashMap<String, String>();	
351
    		snippets = new HashMap<String, String>();	
352
	    	for(String docId: results){
352
	    	for(String docId: results){
353
	    		if(userinfo.isPrivateDealUser()) {
353
	    		if(userinfo.isPrivateDealUser()) {
354
	    			if(dealResults.contains(docId)) {
354
	    			if(dealResults.contains(docId)) {
355
	    				String snippet = (String) SnippetCacheWrapper.getSnippet(CacheKeys.PRIVATE_DEAL_SNIPPET_KEY, docId, sourceId);
355
	    				String snippet = (String) SnippetCacheWrapper.getSnippet(CacheKeys.PRIVATE_DEAL_SNIPPET_KEY, docId, sourceId);
-
 
356
	    				if (snippet != null) {
-
 
357
	    					snippets.put(docId, snippet);
-
 
358
	    					continue;
-
 
359
	    				}
356
	    			}
360
	    			}
357
	    		}
361
	    		}
-
 
362
	    		String snippet = (String) SnippetCacheWrapper.getSnippet(CacheKeys.CATEGORY_SNIPPET_CACHE_KEY, docId, sourceId);
358
	    	    if (snippet != null) {
363
                if (snippet != null) {
359
	    	        snippets.put(docId, snippet);
364
                    snippets.put(docId, snippet);
360
	    	    }
365
                }
361
			}
366
			}
362
    	}
367
    	}
363
		return snippets;
368
		return snippets;
364
    }
369
    }
365
    
370