Пример #1
0
 @RequestMapping(value = "/refstyle", method = RequestMethod.GET)
 public ModelAndView getStyle() {
   List<RefStyle> style = scotchService.getStyle();
   ModelAndView mav = new ModelAndView("style", RefStyle.class.getName(), style);
   return mav;
 }
Пример #2
0
 @RequestMapping(value = "/refregion", method = RequestMethod.GET)
 public ModelAndView getRegion() {
   List<RefRegion> region = scotchService.getRegion();
   ModelAndView mav = new ModelAndView("region", RefRegion.class.getName(), region);
   return mav;
 }
Пример #3
0
 @RequestMapping(value = "/refdistillerystatus", method = RequestMethod.GET)
 public ModelAndView getDistilleryStatus() {
   List<RefDistilleryStatus> statii = scotchService.getDistilleryStatus();
   ModelAndView mav = new ModelAndView("status", RefDistilleryStatus.class.getName(), statii);
   return mav;
 }
Пример #4
0
 @RequestMapping(value = "/{distillery}/malts", method = RequestMethod.GET)
 public ModelAndView getMaltsByDistillery(@PathVariable("distillery") String distillery) {
   List<Malt> malts = scotchService.getMaltsByDistillery(distillery);
   ModelAndView mav = new ModelAndView("malt", Malt.class.getName(), malts);
   return mav;
 }
Пример #5
0
 @RequestMapping(value = "/malts", method = RequestMethod.GET)
 public ModelAndView getMalts() {
   List<Malt> malts = scotchService.getMalts();
   ModelAndView mav = new ModelAndView("malt", Malt.class.getName(), malts);
   return mav;
 }
Пример #6
0
 @RequestMapping(value = "/malts/{name}", method = RequestMethod.GET)
 public ModelAndView getMaltByName(@PathVariable("name") String name) {
   Malt malt = scotchService.getMaltByName(name);
   ModelAndView mav = new ModelAndView("malt", Malt.class.getName(), malt);
   return mav;
 }