Class MenuImpl
java.lang.Object
org.broadleafcommerce.menu.domain.MenuImpl
- All Implemented Interfaces:
Serializable,org.broadleafcommerce.common.admin.domain.AdminMainEntity,org.broadleafcommerce.common.copy.MultiTenantCloneable<Menu>,org.broadleafcommerce.common.extensibility.jpa.copy.ProfileEntity,Menu
@Entity
public class MenuImpl
extends Object
implements Menu, org.broadleafcommerce.common.admin.domain.AdminMainEntity, org.broadleafcommerce.common.extensibility.jpa.copy.ProfileEntity
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsFields inherited from interface org.broadleafcommerce.common.admin.domain.AdminMainEntity
MAIN_ENTITY_NAME_PROPERTY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<G extends Menu>
org.broadleafcommerce.common.copy.CreateResponse<G>createOrRetrieveCopyInstance(org.broadleafcommerce.common.copy.MultiTenantCopyContext context) getId()Internal id of the menu.Returns the list of associatedMenuItemsgetName()Returns the name of the menu.voidSets the id of the menu.voidsetMenuItems(List<MenuItem> menuItems) Sets the list of associatedMenuItemsvoidSets the name of the menu.
-
Field Details
-
id
-
name
-
-
Constructor Details
-
MenuImpl
public MenuImpl()
-
-
Method Details
-
getId
Description copied from interface:MenuInternal id of the menu. -
setId
Description copied from interface:MenuSets the id of the menu. -
getName
Description copied from interface:MenuReturns the name of the menu. -
setName
Description copied from interface:MenuSets the name of the menu. -
getMenuItems
Description copied from interface:MenuReturns the list of associatedMenuItems- Specified by:
getMenuItemsin interfaceMenu- Returns:
- the featured products
-
setMenuItems
Description copied from interface:MenuSets the list of associatedMenuItems- Specified by:
setMenuItemsin interfaceMenu
-
getMainEntityName
- Specified by:
getMainEntityNamein interfaceorg.broadleafcommerce.common.admin.domain.AdminMainEntity
-
createOrRetrieveCopyInstance
public <G extends Menu> org.broadleafcommerce.common.copy.CreateResponse<G> createOrRetrieveCopyInstance(org.broadleafcommerce.common.copy.MultiTenantCopyContext context) throws CloneNotSupportedException - Specified by:
createOrRetrieveCopyInstancein interfaceorg.broadleafcommerce.common.copy.MultiTenantCloneable<Menu>- Throws:
CloneNotSupportedException
-