예제 #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;
 }