@Service public class MenuService extends Object
| Constructor and Description |
|---|
MenuService() |
| Modifier and Type | Method and Description |
|---|---|
Menu |
alignMenu(String pid,
String alignment) |
Boolean |
deleteMenuByPortalPid(String portalPid) |
Boolean |
deleteMenuItem(String id,
String portalPid) |
Boolean |
deleteMenuItems(List<String> menuItems,
String portalPid) |
MenuFull |
getMenuFull(String portalPid) |
MenuItem |
getMenuItem(String id) |
MenuItemFull |
getMenuItemFull(String id) |
MenuItemFull |
getMenuItemFull(String id,
int maxDepth) |
List<MenuItem> |
getMenuItemsByParent(String parentId,
String portalPid) |
List<MenuItemFull> |
getRootMenuItemsFull(String portalPid) |
MenuItemFull |
insertMenuItemInMenu(MenuItem menuItem,
String portalPid) |
Boolean |
reorderMenuItems(List<MenuItemFull> menuItemsFull,
String portalPid) |
Menu |
toggleMenu(String pid,
String status,
String isFeatured) |
MenuItemFull |
updateMenu(MenuItemFull menuItemFull,
String portalPid) |
MenuItemFull |
updateMenuItem(MenuItemFull menuItemFull) |
void |
updatePid(String old_pid,
String new_pid) |
public MenuItemFull getMenuItemFull(String id)
public MenuItemFull getMenuItemFull(String id, int maxDepth)
public List<MenuItemFull> getRootMenuItemsFull(String portalPid)
public MenuItemFull insertMenuItemInMenu(MenuItem menuItem, String portalPid)
public MenuItemFull updateMenuItem(MenuItemFull menuItemFull)
public MenuItemFull updateMenu(MenuItemFull menuItemFull, String portalPid)
public Boolean deleteMenuItem(String id, String portalPid) throws Exception
Exceptionpublic Boolean deleteMenuItems(List<String> menuItems, String portalPid) throws Exception
Exceptionpublic Boolean deleteMenuByPortalPid(String portalPid) throws Exception
Exceptionpublic Boolean reorderMenuItems(List<MenuItemFull> menuItemsFull, String portalPid)
public Menu toggleMenu(String pid, String status, String isFeatured) throws Exception
ExceptionCopyright © 2022. All rights reserved.