Package org.opencustomer.webapp.util.menu

Examples of org.opencustomer.webapp.util.menu.MenuFactory


                request.getSession().setAttribute(Globals.USER_KEY, user);
                request.getSession().setAttribute(Globals.AUTHENTICATOR_KEY, new Authenticator(user));
                request.getSession().setAttribute(org.apache.struts.Globals.LOCALE_KEY, user.getLocale());
                request.getSession().setAttribute(Globals.CONFIGURATION_KEY, new UserConfiguration(user));
               
                MenuFactory menuFactory = (MenuFactory)request.getSession().getServletContext().getAttribute(Globals.MENU_FACTORY_KEY);
                Menu menu = menuFactory.getCustomizedMenu(AuthenticatorUtility.getAuthenticator(request));
                request.getSession().setAttribute(Globals.MENU_KEY, menu);

                forward = LOGIN_OK;
            }
        }
View Full Code Here


        ModuleConfig moduleConfig = (ModuleConfig)getServletContext().getAttribute(org.apache.struts.Globals.MODULE_KEY);

        // load menu
        try {
            getServletContext().setAttribute(Globals.MENU_FACTORY_KEY, new MenuFactory(moduleConfig));
        } catch(MenuFactoryException e) {
           log.error("can not instantiate menu factory", e);
        }
       
        // dummy setzen der props
View Full Code Here

TOP

Related Classes of org.opencustomer.webapp.util.menu.MenuFactory

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.