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;
}
}
}