Esempio n. 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();
 }
Esempio n. 2
0
 @RequestMapping(value = "/Salutation/saveOrUpdate", method = RequestMethod.POST)
 public @ResponseBody RequestStatus saveOrUpdateSalutation(@RequestBody Salutation salutation) {
   service.saveOrUpdate(salutation);
   return RequestStatusHelper.GenerateRequestStatusSaveOperation();
 }
Esempio n. 3
0
 @RequestMapping(value = "/Salutation/add", method = RequestMethod.GET)
 public @ResponseBody RequestStatus renderAddSalutation(@RequestBody Salutation salutation) {
   service.add(salutation);
   return RequestStatusHelper.GenerateRequestStatusSaveOperation();
 }
Esempio n. 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;
 }
Esempio n. 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;
 }
Esempio n. 6
0
 @RequestMapping(value = "/Salutation/list", method = RequestMethod.GET)
 public @ResponseBody List<Salutation> listSalutation() {
   List<Salutation> list = service.getAll();
   return list;
 }