Class MenuService
- java.lang.Object
-
- eu.dnetlib.uoaadmintools.services.MenuService
-
@Service public class MenuService extends Object
-
-
Constructor Summary
Constructors Constructor Description MenuService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MenualignMenu(String pid, String alignment)BooleandeleteMenuByPortalPid(String portalPid)BooleandeleteMenuItem(String id, String portalPid)BooleandeleteMenuItems(List<String> menuItems, String portalPid)MenuFullgetMenuFull(String portalPid)MenuItemgetMenuItem(String id)MenuItemFullgetMenuItemFull(String id)MenuItemFullgetMenuItemFull(String id, int maxDepth)List<MenuItem>getMenuItemsByParent(String parentId, String portalPid)List<MenuItemFull>getRootMenuItemsFull(String portalPid)MenuItemFullinsertMenuItemInMenu(MenuItem menuItem, String portalPid)BooleanreorderMenuItems(List<MenuItemFull> menuItemsFull, String portalPid)MenutoggleMenu(String pid, String status, String isFeatured)MenuItemFullupdateMenu(MenuItemFull menuItemFull, String portalPid)MenuItemFullupdateMenuItem(MenuItemFull menuItemFull)voidupdatePid(String old_pid, String new_pid)
-
-
-
Method Detail
-
getMenuItemFull
public MenuItemFull getMenuItemFull(String id)
-
getMenuItemFull
public MenuItemFull getMenuItemFull(String id, int maxDepth)
-
getRootMenuItemsFull
public List<MenuItemFull> getRootMenuItemsFull(String portalPid)
-
insertMenuItemInMenu
public MenuItemFull insertMenuItemInMenu(MenuItem menuItem, String portalPid)
-
updateMenuItem
public MenuItemFull updateMenuItem(MenuItemFull menuItemFull)
-
updateMenu
public MenuItemFull updateMenu(MenuItemFull menuItemFull, String portalPid)
-
deleteMenuItem
public Boolean deleteMenuItem(String id, String portalPid) throws Exception
- Throws:
Exception
-
deleteMenuItems
public Boolean deleteMenuItems(List<String> menuItems, String portalPid) throws Exception
- Throws:
Exception
-
deleteMenuByPortalPid
public Boolean deleteMenuByPortalPid(String portalPid) throws Exception
- Throws:
Exception
-
reorderMenuItems
public Boolean reorderMenuItems(List<MenuItemFull> menuItemsFull, String portalPid)
-
toggleMenu
public Menu toggleMenu(String pid, String status, String isFeatured) throws Exception
- Throws:
Exception
-
-