| Line 236... |
Line 236... |
| 236 |
userRoleRepository.persist(userRole);
|
236 |
userRoleRepository.persist(userRole);
|
| 237 |
return responseSender.ok(ResponseCodeHolder.getMessage("USR_OK_1000"));
|
237 |
return responseSender.ok(ResponseCodeHolder.getMessage("USR_OK_1000"));
|
| 238 |
|
238 |
|
| 239 |
}
|
239 |
}
|
| 240 |
|
240 |
|
| 241 |
@RequestMapping(value = ProfitMandiConstants.URL_USER_ALL, method = RequestMethod.GET)
|
- |
|
| 242 |
public ResponseEntity<?> getAll(HttpServletRequest request,
|
- |
|
| 243 |
@RequestParam(name = ProfitMandiConstants.PAGE_NUMBER) int pageNumber,
|
- |
|
| 244 |
@RequestParam(name = ProfitMandiConstants.PAGE_SIZE) int pageSize) {
|
- |
|
| 245 |
LOGGER.info("requested url : " + request.getRequestURL().toString());
|
- |
|
| 246 |
return responseSender.ok(userRepository.selectAll(pageNumber, pageSize));
|
- |
|
| 247 |
}
|
- |
|
| 248 |
|
241 |
|
| 249 |
@RequestMapping(value = ProfitMandiConstants.URL_USER_ID, method = RequestMethod.GET)
|
242 |
@RequestMapping(value = ProfitMandiConstants.URL_USER_ID, method = RequestMethod.GET)
|
| 250 |
public ResponseEntity<?> getById(HttpServletRequest request, @RequestParam(name = "id") int id) throws ProfitMandiBusinessException{
|
243 |
public ResponseEntity<?> getById(HttpServletRequest request, @RequestParam(name = "id") int id) throws ProfitMandiBusinessException{
|
| 251 |
LOGGER.info("requested url : " + request.getRequestURL().toString());
|
244 |
LOGGER.info("requested url : " + request.getRequestURL().toString());
|
| 252 |
return responseSender.ok(userRepository.selectById(id));
|
245 |
return responseSender.ok(userRepository.selectById(id));
|