/** * 获取AAA列表 * * @param acId acId * @return ModelAndView */ @RequestMapping("/weblist") public ModelAndView webList(final String acId) { ModelAndView t_view = BaseDispatcherServlet.getModeAndView(); t_view.getModelMap().put(S_AC_ID, acId); t_view.setViewName("wirelessconfig/acother/web_list"); return t_view; }
/** * 添加AAA * * @param acId acId * @param radiosPojo radiosPojo * @return ModelAndView * @throws ContainerException ContainerException * @throws ServiceException ServiceException */ @RequestMapping("/addaaa") public ModelAndView addAAA(final String acId, @RequestBody final RadiusServerPojo radiosPojo) throws ServiceException, ContainerException { ModelAndView t_view = BaseDispatcherServlet.getModeAndView(); try { getIAAAService(acId).createRadiusServer(radiosPojo); } catch (NoConnMsgException t_e) { S_LOGGER.error("NoConnMsgException when addAAA", t_e); } return t_view; }
/** * 获取AAA列表数据,用于刷新页面 * * @param acId acId * @return ModelAndView * @throws ContainerException ContainerException * @throws ServiceException ServiceException */ @RequestMapping("/getaaalist") public ModelAndView getAAAList(final String acId) throws ServiceException, ContainerException { ModelAndView t_view = BaseDispatcherServlet.getModeAndView(); List<RadiusServerPojo> t_Radius = null; try { t_Radius = getIAAAService(acId).getRadiusServers(); } catch (NoConnMsgException t_e) { S_LOGGER.error("NoConnMsgException when getAAAList", t_e); } t_view.getModelMap().put("aaaList", t_Radius); return t_view; }
/** * 获取AAA列表 * * @param acId acId * @return ModelAndView * @throws ContainerException ContainerException * @throws ServiceException ServiceException */ @RequestMapping("/aaalist") public ModelAndView aAAList(final String acId) throws ServiceException, ContainerException { ModelAndView t_view = BaseDispatcherServlet.getModeAndView(); List<RadiusServerPojo> t_Radius = null; try { t_Radius = getIAAAService(acId).getRadiusServers(); } catch (NoConnMsgException t_e) { S_LOGGER.error("NoConnMsgException when aAAList", t_e); } t_view.getModelMap().put("aaaList", t_Radius); t_view.getModelMap().put(S_AC_ID, acId); t_view.setViewName("wirelessconfig/acother/aaa_list"); return t_view; }
/** * 获取AAA列表 * * @param acId acId * @return ModelAndView * @throws ContainerException ContainerException * @throws ServiceException ServiceException */ @RequestMapping("/userauthlist") public ModelAndView userAuthList(final String acId) throws ServiceException, ContainerException { ModelAndView t_view = BaseDispatcherServlet.getModeAndView(); t_view.getModelMap().put(S_AC_ID, acId); List<AAAWebWlanOptions> t_wlanOptions = new ArrayList<AAAWebWlanOptions>(); List<RadiusServerPojo> t_radiusList = new ArrayList<RadiusServerPojo>(); try { t_radiusList = getIAAAService(acId).getRadiusServers(); t_view.getModelMap().put("radiusList", toJson(t_radiusList)); t_wlanOptions = getIAAAWebService(acId).getWlanOptions(); } catch (NoConnMsgException t_e) { S_LOGGER.error("NoConnMsgException when userAuthList", t_e); } t_view.getModelMap().put("wlanOptions", toJson(t_wlanOptions)); t_view.setViewName("wirelessconfig/acother/user_auth_list"); return t_view; }
/** * 切换AAAWeb中wlan 的状态 * * @param acId acId * @param wlanId wlanId * @param webAuth webAuth * @return ModelAndView * @throws ContainerException ContainerException * @throws ServiceException ServiceException */ @RequestMapping("/switchwlanstate") public ModelAndView switchWLanState( final String acId, final Integer wlanId, final boolean webAuth) throws ServiceException, ContainerException { ModelAndView t_view = BaseDispatcherServlet.getModeAndView(); AAAWebWlanOptions t_option = new AAAWebWlanOptions(); try { WlanPojo t_wlan = this.getIWlanService(acId).getWlan(wlanId); BeanUtils.copyProperties(t_wlan, t_option, WlanPojo.class); t_option.setWebAuth(!webAuth); this.getIAAAWebService(acId).setWlanOption(t_option); } catch (BeansException t_e) { S_LOGGER.error("BeansException when switchWLanState", t_e); } catch (NoConnMsgException t_e) { S_LOGGER.error("NoConnMsgException when switchWLanState", t_e); } return t_view; }
/** * 删除AAA列表 * * @param acId acId * @return ModelAndView */ @RequestMapping("/removeaaa") public ModelAndView removeAAA(final String acId) { ModelAndView t_view = BaseDispatcherServlet.getModeAndView(); // this.getIAAAService(acId). return t_view; }
/** * 打开添加Web列表 * * @param acId acId * @return ModelAndView */ @RequestMapping("/window/openaddaaaview") public ModelAndView openAddAAAView(final String acId) { ModelAndView t_view = BaseDispatcherServlet.getModeAndView(); t_view.setViewName("wirelessconfig/acother/add_aaa_view"); return t_view; }