Subversion Repositories SmartDukaan

Rev

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

Rev 11636 Rev 11644
Line 63... Line 63...
63
		}
63
		}
64
	}
64
	}
65
    
65
    
66
    // GET /index
66
    // GET /index
67
    public HttpHeaders index() throws Exception {
67
    public HttpHeaders index() throws Exception {
68
    	long categoryId = Long.parseLong(request.getParameter("categoryid"));
-
 
69
        String brandName = request.getParameter("brand");
-
 
70
        //Right now if we have brand name, we can just send back data for all categories
-
 
71
        if(brandName != null){
-
 
72
            categoryId = -1;
-
 
73
        }
-
 
74
    	in.shop2020.model.v1.catalog.CatalogService.Client client = catalogClientService.getClient();
68
    	in.shop2020.model.v1.catalog.CatalogService.Client client = catalogClientService.getClient();
75
    	this.items = client.getPrivateDealsCatalogIds(beginIndex, windowSize);
69
    	this.items = client.getPrivateDealsCatalogIds(beginIndex, windowSize);
76
    	setSnippets();
70
    	setSnippets();
77
    	return new DefaultHttpHeaders("index");
71
    	return new DefaultHttpHeaders("index");
78
    }
72
    }