Refactoring U_Menu to U_WebMenu
This commit is contained in:
parent
8d69c351e4
commit
5c2b706448
|
@ -44,7 +44,7 @@ import org.posterita.util.PathInfo;
|
|||
public class InitWebEnv implements PlugIn
|
||||
{
|
||||
|
||||
public static final String applicationType = UDIFilePropertiesManager.getProperty().get(new Properties(), PropertiesConstant.APPLICATION_TYPE);
|
||||
//public static final String applicationType = UDIFilePropertiesManager.getProperty().get(new Properties(), PropertiesConstant.APPLICATION_TYPE);
|
||||
|
||||
|
||||
public void init(ActionServlet servlet, ModuleConfig config) throws ServletException
|
||||
|
|
|
@ -44,7 +44,7 @@ public class MenuGenerator
|
|||
X_U_RoleMenu roleMenu = new X_U_RoleMenu(ctx, 0, null);
|
||||
|
||||
roleMenu.setAD_Role_ID(roleId);
|
||||
roleMenu.setU_Menu_ID(menuIds[i]);
|
||||
roleMenu.setU_WebMenu_ID(menuIds[i]);
|
||||
UDIU_RoleMenu udiRoleMenu = new UDIU_RoleMenu(roleMenu);
|
||||
udiRoleMenu.save();
|
||||
}
|
||||
|
@ -85,7 +85,7 @@ public class MenuGenerator
|
|||
X_U_RoleMenu roleMenu = new X_U_RoleMenu(ctx, 0, null);
|
||||
|
||||
roleMenu.setAD_Role_ID(roleId);
|
||||
roleMenu.setU_Menu_ID(menuIds[i]);
|
||||
roleMenu.setU_WebMenu_ID(menuIds[i]);
|
||||
UDIU_RoleMenu udiRoleMenu = new UDIU_RoleMenu(roleMenu);
|
||||
udiRoleMenu.save();
|
||||
}
|
||||
|
|
|
@ -58,7 +58,7 @@ public class UpdateRoleMenu extends SvrProcess
|
|||
}
|
||||
|
||||
roleMenu.setAD_Role_ID(roleId);
|
||||
roleMenu.setU_Menu_ID(menuId);
|
||||
roleMenu.setU_WebMenu_ID(menuId);
|
||||
roleMenu.setIsActive(active);
|
||||
|
||||
if (!roleMenu.save())
|
||||
|
|
Loading…
Reference in New Issue