예제 #1
0
 @RequestMapping(value = "/Salutation/delete", method = RequestMethod.GET)
 public @ResponseBody RequestStatus deleteSalutation(
     @RequestParam(value = "id", required = true) Integer id) {
   service.delete(id);
   return RequestStatusHelper.GenerateRequestStatusDeleteOperation();
 }
예제 #2
0
 @RequestMapping(value = "/Salutation/saveOrUpdate", method = RequestMethod.POST)
 public @ResponseBody RequestStatus saveOrUpdateSalutation(@RequestBody Salutation salutation) {
   service.saveOrUpdate(salutation);
   return RequestStatusHelper.GenerateRequestStatusSaveOperation();
 }
예제 #3
0
 @RequestMapping(value = "/Salutation/add", method = RequestMethod.GET)
 public @ResponseBody RequestStatus renderAddSalutation(@RequestBody Salutation salutation) {
   service.add(salutation);
   return RequestStatusHelper.GenerateRequestStatusSaveOperation();
 }
예제 #4
0
 @RequestMapping(value = "/Salutation/get", method = RequestMethod.GET)
 public @ResponseBody Salutation getSalutation(
     @RequestParam(value = "id", required = true) Integer id) {
   Salutation salutation = service.get(id);
   return salutation;
 }
예제 #5
0
 @RequestMapping(value = "/Salutation/listByCompany", method = RequestMethod.GET)
 public @ResponseBody List<Salutation> listByCompany(
     @RequestParam(value = "id", required = true) Integer id) {
   List<Salutation> list = service.getAllByCompany(id);
   return list;
 }
예제 #6
0
 @RequestMapping(value = "/Salutation/list", method = RequestMethod.GET)
 public @ResponseBody List<Salutation> listSalutation() {
   List<Salutation> list = service.getAll();
   return list;
 }