Package com.eforce.baby.auth.delegates

Examples of com.eforce.baby.auth.delegates.MenuBD


                String dsName = sessUser.getDsName();
                String dbType = sessUser.getDbType();
                String userId = sessUser.getUserId();
               
                //Enable Menus
                MenuBD menuBD = (MenuBD) BusinessDelegateFactory.getInstance().getDelegate(IConstants.CLASS_MENU_BD);
               
                if(enableList.length() > 0)
                {
                    int enableCount = menuBD.enableMenuItems(dsName, dbType, userId, enableList);
                    totalChanges = totalChanges + enableCount;
                }
               
                // Disable Disable
                ArrayList menuList = new ArrayList();
                StringTokenizer st = new StringTokenizer(disableList, ",");
                while (st.hasMoreTokens())
                {
                    menuList.add(st.nextToken());
                }
               
               
                if (menuList.size() > 0)
                {
                    for(int i = 0; i < menuList.size(); i++)
                    {
                        menuBD.disableMenuItems(dsName, dbType, userId, (String)menuList.get(i));
                        count = count + 1;
                    }
                }
               
            }
View Full Code Here


            SessionUserVO sessUser = (SessionUserVO) session.getAttribute(IConstants.SESSION_ATTR_USER_SESSION_INFO);
            String dsName = sessUser.getDsName();
            String dbType = sessUser.getDbType();
            String profileId = sessUser.getProfileId();
           
            MenuBD menuBD = (MenuBD) BusinessDelegateFactory.getInstance().getDelegate(IConstants.CLASS_MENU_BD);
           
            menuBD.setDefaultPage(dsName, dbType, profileId, defaultMenu);
           
           
            log.debug("profileId: " + sessUser.getProfileId());
       
            log.debug("modifyMenu() : EXIT");
View Full Code Here

TOP

Related Classes of com.eforce.baby.auth.delegates.MenuBD

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.