Class NavigableMenu
- java.lang.Object
-
- com.broadleafcommerce.menu.domain.Menu
-
- com.broadleafcommerce.menu.domain.NavigableMenu
-
- All Implemented Interfaces:
com.broadleafcommerce.data.tracking.core.ContextStateAware,Serializable
public class NavigableMenu extends Menu
This DTO is purely a concept used in the endpoint responsible for returning the navigation tree of a menu. This class and its fields are not persisted and are purely intended for this very specific use-case.- Author:
- Samarth Dhruva (samarthd)
- See Also:
NavigableMenuItem,Menu, Serialized Form
-
-
Constructor Summary
Constructors Constructor Description NavigableMenu()NavigableMenu(Menu menu)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancanEqual(Object other)booleanequals(Object o)List<NavigableMenuItem>getSubmenu()A list of the direct children of this menu with their ownsubmenuspopulated.inthashCode()voidinitializeFromMenu(@NonNull Menu menu)voidsetSubmenu(List<NavigableMenuItem> submenu)A list of the direct children of this menu with their ownsubmenuspopulated.StringtoString()-
Methods inherited from class com.broadleafcommerce.menu.domain.Menu
getContextState, getId, getLabel, getName, setContextState, setId, setLabel, setName
-
-
-
-
Constructor Detail
-
NavigableMenu
public NavigableMenu(@NonNull Menu menu)
-
NavigableMenu
public NavigableMenu()
-
-
Method Detail
-
initializeFromMenu
public void initializeFromMenu(@NonNull @NonNull Menu menu)
-
getSubmenu
public List<NavigableMenuItem> getSubmenu()
A list of the direct children of this menu with their ownsubmenuspopulated.- Returns:
- a list of the direct children of this menu with their own
submenuspopulated
-
setSubmenu
public void setSubmenu(List<NavigableMenuItem> submenu)
A list of the direct children of this menu with their ownsubmenuspopulated.- Parameters:
submenu- a list of the direct children of this menu with their ownsubmenuspopulated
-
-