Class NavigableMenuItem
- java.lang.Object
-
- com.broadleafcommerce.menu.domain.MenuItem
-
- com.broadleafcommerce.menu.domain.NavigableMenuItem
-
- All Implemented Interfaces:
com.broadleafcommerce.data.tracking.core.ContextStateAware
,Serializable
public class NavigableMenuItem extends MenuItem
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:
NavigableMenu
,MenuItem
, Serialized Form
-
-
Constructor Summary
Constructors Constructor Description NavigableMenuItem()
NavigableMenuItem(MenuItem menuItem)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
canEqual(Object other)
boolean
equals(Object o)
List<NavigableMenuItem>
getSubmenu()
A list of the direct children of this menu item with their ownsubmenus
populated.int
hashCode()
void
initializeFromMenuItem(@NonNull MenuItem menuItem)
void
setSubmenu(List<NavigableMenuItem> submenu)
A list of the direct children of this menu item with their ownsubmenus
populated.String
toString()
-
Methods inherited from class com.broadleafcommerce.menu.domain.MenuItem
getContextState, getCustomHtml, getDisplayOrder, getId, getImageAltText, getImageUrl, getLabel, getParentMenuId, getParentMenuItemId, getType, getUrl, setContextState, setCustomHtml, setDisplayOrder, setId, setImageAltText, setImageUrl, setLabel, setParentMenuId, setParentMenuItemId, setType, setUrl
-
-
-
-
Constructor Detail
-
NavigableMenuItem
public NavigableMenuItem(@NonNull MenuItem menuItem)
-
NavigableMenuItem
public NavigableMenuItem()
-
-
Method Detail
-
initializeFromMenuItem
public void initializeFromMenuItem(@NonNull @NonNull MenuItem menuItem)
-
getSubmenu
public List<NavigableMenuItem> getSubmenu()
A list of the direct children of this menu item with their ownsubmenus
populated.- Returns:
- a list of the direct children of this menu item with their own
submenus
populated
-
setSubmenu
public void setSubmenu(List<NavigableMenuItem> submenu)
A list of the direct children of this menu item with their ownsubmenus
populated.- Parameters:
submenu
- a list of the direct children of this menu item with their ownsubmenus
populated
-
-