Class MenuServiceImpl
java.lang.Object
org.broadleafcommerce.menu.service.MenuServiceImpl
- All Implemented Interfaces:
MenuService
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.broadleafcommerce.core.catalog.service.CatalogServiceprotected MenuDao -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionA Utility method that constructs generic MenuItemDTOs that are not dependent on a Menu Item Type.protected MenuItemDTOconvertCategoryToMenuItemDTO(org.broadleafcommerce.core.catalog.domain.Category category) protected MenuItemDTOconvertCategoryToMenuItemDTO(org.broadleafcommerce.core.catalog.domain.Category category, Set<org.broadleafcommerce.core.catalog.domain.Category> convertedCategories) protected MenuItemDTOconvertMenuItemToDTO(MenuItem menuItem) protected MenuItemDTOcreateDto(org.broadleafcommerce.core.catalog.domain.Category category) protected MenuItemDTOfindMenuById(Long id) Returns the menu matching the passed in id.findMenuByName(String menuName) Returns the menu matching the passed in name.findMenuItemById(Long menuItemId) Returns the menu item matching the passed in id.
-
Field Details
-
catalogService
protected org.broadleafcommerce.core.catalog.service.CatalogService catalogService
-
Constructor Details
-
MenuServiceImpl
public MenuServiceImpl()
-
-
Method Details
-
findMenuById
Description copied from interface:MenuServiceReturns the menu matching the passed in id.- Specified by:
findMenuByIdin interfaceMenuService- Returns:
-
findMenuByName
Description copied from interface:MenuServiceReturns the menu matching the passed in name.- Specified by:
findMenuByNamein interfaceMenuService- Returns:
-
findMenuItemById
Description copied from interface:MenuServiceReturns the menu item matching the passed in id.- Specified by:
findMenuItemByIdin interfaceMenuService- Returns:
-
convertCategoryToMenuItemDTO
protected MenuItemDTO convertCategoryToMenuItemDTO(org.broadleafcommerce.core.catalog.domain.Category category) -
convertCategoryToMenuItemDTO
protected MenuItemDTO convertCategoryToMenuItemDTO(org.broadleafcommerce.core.catalog.domain.Category category, Set<org.broadleafcommerce.core.catalog.domain.Category> convertedCategories) -
createDto
-