예제 #1
0
 /** 添加用户资源功能到session,为后面权限功能检查做铺垫 */
 private void addUserResourceMenusButton(String button) {
   log.debug("addUserResourceMenusButton.button=" + button);
   HttpSession session = RequestHolder.getSession();
   Map<String, String> buttons =
       (Map<String, String>) session.getAttribute(ManageContainer.user_resource_menus_button);
   if (buttons == null) {
     buttons = new HashMap<String, String>(); // TreeMap<String, String>();
     session.setAttribute(ManageContainer.user_resource_menus_button, buttons);
   }
   buttons.put(button, button);
 }
예제 #2
0
 protected CartInfo getMyCart() {
   return (CartInfo) RequestHolder.getSession().getAttribute(FrontContainer.myCart);
 }