Subversion Repositories SmartDukaan

Rev

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

Rev 25625 Rev 25813
Line 414... Line 414...
414
		} else {
414
		} else {
415
			brandsDisplay = this.getSubCategoriesToDisplay();
415
			brandsDisplay = this.getSubCategoriesToDisplay();
416
		}
416
		}
417
		return new ResponseEntity<>(brandsDisplay, HttpStatus.OK);
417
		return new ResponseEntity<>(brandsDisplay, HttpStatus.OK);
418
	}
418
	}
-
 
419
	@RequestMapping(value = "/fofo/accessory/all-categories", method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_VALUE)
-
 
420
	public ResponseEntity<?> getSubCategoriesToDisplay(HttpServletRequest request) throws Exception {
-
 
421
		UserInfo userInfo = (UserInfo) request.getAttribute("userInfo");
-
 
422
		logger.info("userInfo [{}]", userInfo);
-
 
423
		List<DBObject> subCateogriesDisplay = this.getSubCategoriesToDisplay();
-
 
424
		return new ResponseEntity<>(subCateogriesDisplay, HttpStatus.OK);
-
 
425
	}
419
 
426
 
420
	private List<DBObject> getSubCategoriesToDisplay() throws Exception {
427
	private List<DBObject> getSubCategoriesToDisplay() throws Exception {
421
		List<DBObject> subCategories = new ArrayList<>();
428
		List<DBObject> subCategories = new ArrayList<>();
422
		RestClient rc = new RestClient();
429
		RestClient rc = new RestClient();
423
		Map<String, String> params = new HashMap<>();
430
		Map<String, String> params = new HashMap<>();