@RequestMapping("/student-ra-by-department/{authKey}/{departmentId}") public Object readAllByDepartment( @PathVariable final String authKey, @PathVariable final int departmentId) throws AuthException { authDao.checkAuthKey(authKey); return studentDao.readAllByDepartment(departmentId); }
@RequestMapping("/student-ud/{authKey}/{id}/{departmentId}") public void read( @PathVariable final String authKey, @PathVariable final int id, @PathVariable final int departmentId) throws AuthException { authDao.checkAuthKey(authKey); studentDao.updateDepartment(id, departmentId); }
@RequestMapping("/student-d/{authKey}/{id}") public void delete(@PathVariable final String authKey, @PathVariable final int id) throws AuthException { checkAuthKey(authKey); studentDao.delete(id); }
@RequestMapping("/student-ra/{authKey}") public Object readAll(@PathVariable final String authKey) throws AuthException { authDao.checkAuthKey(authKey); return studentDao.readAll(); }
@RequestMapping("/student-r/{authKey}/{id}") public Object read(@PathVariable final String authKey, @PathVariable final int id) throws AuthException { authDao.checkAuthKey(authKey); return studentDao.read(id); }
@RequestMapping("/student-u/{authKey}") public void update(@PathVariable final String authKey, @RequestBody Student student) throws AuthException { authDao.checkAuthKey(authKey); studentDao.update(student); }