@Service(value="blMenuService") public class MenuServiceImpl extends Object implements MenuService
| Modifier and Type | Field and Description |
|---|---|
protected org.broadleafcommerce.core.catalog.service.CatalogService |
catalogService |
protected MenuDao |
menuDao |
| Constructor and Description |
|---|
MenuServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
List<MenuItemDTO> |
constructMenuItemDTOsForMenu(Menu menu)
A Utility method that constructs generic MenuItemDTOs that are not dependent on a Menu Item Type.
|
protected MenuItemDTO |
convertCategoryToMenuItemDTO(org.broadleafcommerce.core.catalog.domain.Category category) |
protected MenuItemDTO |
convertMenuItemToDTO(MenuItem menuItem) |
Menu |
findMenuById(Long id)
Returns the menu matching the passed in id.
|
Menu |
findMenuByName(String menuName)
Returns the menu matching the passed in name.
|
MenuItem |
findMenuItemById(Long menuItemId)
Returns the menu item matching the passed in id.
|
protected MenuDao menuDao
protected org.broadleafcommerce.core.catalog.service.CatalogService catalogService
public Menu findMenuById(Long id)
MenuServicefindMenuById in interface MenuServicepublic Menu findMenuByName(String menuName)
MenuServicefindMenuByName in interface MenuServicepublic MenuItem findMenuItemById(Long menuItemId)
MenuServicefindMenuItemById in interface MenuServicepublic List<MenuItemDTO> constructMenuItemDTOsForMenu(Menu menu)
MenuServiceconstructMenuItemDTOsForMenu in interface MenuServiceprotected MenuItemDTO convertMenuItemToDTO(MenuItem menuItem)
protected MenuItemDTO convertCategoryToMenuItemDTO(org.broadleafcommerce.core.catalog.domain.Category category)
Copyright © 2015. All rights reserved.