Subversion Repositories SmartDukaan

Rev

Rev 768 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 768 Rev 773
Line 384... Line 384...
384
		in.shop2020.model.v1.user.UserContextService.Client client = null;
384
		in.shop2020.model.v1.user.UserContextService.Client client = null;
385
		Widget widget = null;
385
		Widget widget = null;
386
		try {
386
		try {
387
			userServiceClient = new UserContextServiceClient();
387
			userServiceClient = new UserContextServiceClient();
388
			client = userServiceClient.getClient();
388
			client = userServiceClient.getClient();
-
 
389
			if(widgetType == WidgetType.MY_RESEARCH && userId != 0){
-
 
390
				widget = client.getMyResearch(userId);
-
 
391
			}
-
 
392
			if(widgetType == WidgetType.BROWSE_HISTORY){
389
			widget = client.getWidget(widgetType, userId, true);
393
				widget = client.getBrowseHistory(userId);
-
 
394
			}
-
 
395
			
390
		} catch (Exception e) {
396
		} catch (Exception e) {
391
			e.printStackTrace();
397
			e.printStackTrace();
392
		}finally{
398
		}finally{
393
			userServiceClient.closeConnection();
399
			userServiceClient.closeConnection();
394
		}
400
		}