Subversion Repositories SmartDukaan

Rev

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

Rev 21463 Rev 21496
Line 209... Line 209...
209
				retailerBrandRepository.persist(retailerBrand);
209
				retailerBrandRepository.persist(retailerBrand);
210
			}
210
			}
211
		}
211
		}
212
	}
212
	}
213
	@RequestMapping(value = ProfitMandiConstants.URL_RETAILER_ALL,method=RequestMethod.GET)
213
	@RequestMapping(value = ProfitMandiConstants.URL_RETAILER_ALL,method=RequestMethod.GET)
214
	public ResponseEntity<?> getAll(HttpServletRequest request){
214
	public ResponseEntity<?> getAll(HttpServletRequest request, @RequestParam(name = ProfitMandiConstants.PAGE_NUMBER) int pageNumber, @RequestParam(name = ProfitMandiConstants.PAGE_SIZE) int pageSize){
215
		LOGGER.info("requested url : "+request.getRequestURL().toString());
215
		LOGGER.info("requested url : "+request.getRequestURL().toString());
216
		return responseSender.ok(retailerRepository.selectAll());
216
		return responseSender.ok(retailerRepository.selectAll(pageNumber, pageSize));
217
	}
217
	}
218
	@RequestMapping(value = ProfitMandiConstants.URL_RETAILER_ID, method=RequestMethod.GET)
218
	@RequestMapping(value = ProfitMandiConstants.URL_RETAILER_ID, method=RequestMethod.GET)
219
	public ResponseEntity<?> getById(HttpServletRequest request, @RequestParam(name = "id") int id){
219
	public ResponseEntity<?> getById(HttpServletRequest request, @RequestParam(name = "id") int id){
220
		LOGGER.info("requested url : "+request.getRequestURL().toString());
220
		LOGGER.info("requested url : "+request.getRequestURL().toString());
221
		try {
221
		try {