Package com.eforce.baby.auth.dao

Examples of com.eforce.baby.auth.dao.MenuDAO


        {
            return null;
        }
        else if (menuType.equalsIgnoreCase(IConstants.PARAM_VAL_FULL_MENU))
        {
            MenuDAO menuDAO = this.getMenuDAO();
            ArrayList list = menuDAO.findMenuItemsForUser(dsName, dbType, userId);
            // Replace keys with values from the bundle
            list = this.getValuesFromBundle(list, locale);
            // remove menu items that the user does not have permissions to
            list = this.removeMenuItems(list, privList);
            log.debug("After first removal SIZE: " + list.size());
            //log.debug(list);
            //remove menu items that has no child
            list = this.removeMenuItemsWithNoChild(list);
            log.debug("After second removal SIZE: " + list.size());
            doc = this.createFullMenu(dsName, dbType, userId, list);
            this.setDefaultMenu(dsName, dbType, profileId, menuType);
        }
        else if (menuType.equalsIgnoreCase(IConstants.PARAM_VAL_QUICK_MENU))
        {
            MenuDAO menuDAO = this.getMenuDAO();
            ArrayList list = menuDAO.findMenuItemsForUser(dsName, dbType, userId);
            // Replace keys with values from the bundle
            list = this.getValuesFromBundle(list, locale);
            // remove menu items that the user does not have permissions to
            list = this.removeMenuItems(list, privList);
            //remove menu items that has no child
            list = this.removeMenuItemsWithNoChild(list);
            doc = this.createQuickMenu(dsName, dbType, userId, list);
            this.setDefaultMenu(dsName, dbType, profileId, menuType);
        }
        else if (menuType.equalsIgnoreCase(IConstants.PARAM_VAL_MODIFY_MENU))
        {
            MenuDAO menuDAO = this.getMenuDAO();
            ArrayList list = menuDAO.findAllMenuItemsForUser(dsName, dbType, userId);
            // Replace keys with values from the bundle
            list = this.getValuesFromBundle(list, locale);
            // remove menu items that the user does not have permissions to
            list = this.removeMenuItems(list, privList);
            //remove menu items that has no child
            list = this.removeMenuItemsWithNoChild(list);
            doc = this.createFullMenu(dsName, dbType, userId, list);
        }
        else if (menuType.equalsIgnoreCase(IConstants.PARAM_VAL_SELECT_DEFAULT_MENU))
        {
            MenuDAO menuDAO = this.getMenuDAO();
            ArrayList list = menuDAO.findMenuItemsForUser(dsName, dbType, userId);
            // Replace keys with values from the bundle
            list = this.getValuesFromBundle(list, locale);
            // remove menu items that the user does not have permissions to
            list = this.removeMenuItems(list, privList);
            //remove menu items that has no child
View Full Code Here


    }
   
    public int enableMenuItems(String dsName, String dbType, String userId, String menuList) throws DAOException
    {
        log.debug("enableMenuItems() : ENTER");
        MenuDAO menuDAO = this.getMenuDAO();
        log.debug("enableMenuItems() : EXIT");
        return menuDAO.enableMenuItems(dsName, dbType, userId, menuList);
    }
View Full Code Here

    }
   
    public int disableMenuItems(String dsName, String dbType, String userId, String menuId) throws DAOException
    {
        log.debug("disableMenuItems() : ENTER");
        MenuDAO menuDAO = this.getMenuDAO();
        log.debug("disableMenuItems() : EXIT");
        return menuDAO.disableMenuItems(dsName, dbType, userId, menuId);
    }
View Full Code Here

    }
   
    public void setDefaultPage(String dsName, String dbType, String profileId, String pagethrows DAOException
    {
        log.debug("setDefaultPage() : ENTER");
        MenuDAO menuDAO = this.getMenuDAO();
        menuDAO.setDefaultPage(dsName, dbType, profileId, page);
        log.debug("setDefaultPage() : EXIT");
    }
View Full Code Here

    }
   
    public void setDefaultMenu(String dsName, String dbType, String profileId, String menuTypethrows DAOException
    {
        log.debug("setDefaultMenu() : ENTER");
        MenuDAO menuDAO = this.getMenuDAO();
        menuDAO.setDefaultMenu(dsName, dbType, profileId, menuType);
        log.debug("setDefaultMenu() : EXIT");
    }
View Full Code Here

TOP

Related Classes of com.eforce.baby.auth.dao.MenuDAO

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.