java.lang.Object
com.broadleafcommerce.menu.provider.jpa.domain.JpaMenuItem
All Implemented Interfaces:
com.broadleafcommerce.common.messaging.notification.domain.NotificationStateAware, com.broadleafcommerce.data.tracking.core.ApplicationTrackable<com.broadleafcommerce.data.tracking.jpa.filtering.domain.ApplicationJpaTracking>, com.broadleafcommerce.data.tracking.core.mapping.BusinessTypeAware, com.broadleafcommerce.data.tracking.core.mapping.ModelMapperMappable, com.broadleafcommerce.data.tracking.core.Trackable, com.broadleafcommerce.data.tracking.core.TypedTrackable<com.broadleafcommerce.data.tracking.jpa.filtering.domain.ApplicationJpaTracking>, com.broadleafcommerce.translation.domain.Translatable, Serializable

@Entity public class JpaMenuItem extends Object implements Serializable, com.broadleafcommerce.data.tracking.core.ApplicationTrackable<com.broadleafcommerce.data.tracking.jpa.filtering.domain.ApplicationJpaTracking>, com.broadleafcommerce.data.tracking.core.mapping.ModelMapperMappable, com.broadleafcommerce.data.tracking.core.mapping.BusinessTypeAware, com.broadleafcommerce.translation.domain.Translatable
Persistent counter-part to a MenuItem for use with a JPA-supported datastore.
Author:
Samarth Dhruva (samarthd)
See Also:
  • Constructor Details

    • JpaMenuItem

      public JpaMenuItem()
  • Method Details

    • fromMe

      @NonNull public org.modelmapper.ModelMapper fromMe()
      Specified by:
      fromMe in interface com.broadleafcommerce.data.tracking.core.mapping.ModelMapperMappable
    • toMe

      @NonNull public org.modelmapper.ModelMapper toMe()
      Specified by:
      toMe in interface com.broadleafcommerce.data.tracking.core.mapping.ModelMapperMappable
    • getBusinessDomainType

      public Class<?> getBusinessDomainType()
      Specified by:
      getBusinessDomainType in interface com.broadleafcommerce.data.tracking.core.mapping.BusinessTypeAware
    • getDisplay

      public Optional<String> getDisplay()
      Specified by:
      getDisplay in interface com.broadleafcommerce.data.tracking.core.Trackable
    • get_id

      public String get_id()
    • getContextId

      public String getContextId()
      Specified by:
      getContextId in interface com.broadleafcommerce.data.tracking.core.Trackable
      Specified by:
      getContextId in interface com.broadleafcommerce.translation.domain.Translatable
      See Also:
    • getParentMenuItemContextId

      public String getParentMenuItemContextId()
      See Also:
    • getParentMenuContextId

      public String getParentMenuContextId()
      See Also:
    • getLabel

      public String getLabel()
      See Also:
    • getUrl

      public String getUrl()
      See Also:
    • getDisplayOrder

      public Long getDisplayOrder()
      See Also:
    • getImageUrl

      public String getImageUrl()
      See Also:
    • getImageAltText

      public String getImageAltText()
      See Also:
    • getCustomHtml

      public String getCustomHtml()
      See Also:
    • getType

      public String getType()
      See Also:
    • getTracking

      public com.broadleafcommerce.data.tracking.jpa.filtering.domain.ApplicationJpaTracking getTracking()
      Specified by:
      getTracking in interface com.broadleafcommerce.data.tracking.core.Trackable
      Returns:
      the ApplicationJpaTracking information for this menu item
      See Also:
      • ApplicationJpaTracking
    • set_id

      public void set_id(String _id)
    • setContextId

      public void setContextId(String contextId)
      Specified by:
      setContextId in interface com.broadleafcommerce.data.tracking.core.Trackable
      See Also:
    • setParentMenuItemContextId

      public void setParentMenuItemContextId(String parentMenuItemContextId)
      See Also:
    • setParentMenuContextId

      public void setParentMenuContextId(String parentMenuContextId)
      See Also:
    • setLabel

      public void setLabel(String label)
      See Also:
    • setUrl

      public void setUrl(String url)
      See Also:
    • setDisplayOrder

      public void setDisplayOrder(Long displayOrder)
      See Also:
    • setImageUrl

      public void setImageUrl(String imageUrl)
      See Also:
    • setImageAltText

      public void setImageAltText(String imageAltText)
      See Also:
    • setCustomHtml

      public void setCustomHtml(String customHtml)
      See Also:
    • setType

      public void setType(String type)
      See Also:
    • setTracking

      public void setTracking(com.broadleafcommerce.data.tracking.jpa.filtering.domain.ApplicationJpaTracking tracking)
      Specified by:
      setTracking in interface com.broadleafcommerce.data.tracking.core.TypedTrackable<com.broadleafcommerce.data.tracking.jpa.filtering.domain.ApplicationJpaTracking>
      Parameters:
      tracking - the ApplicationJpaTracking information for this menu item
      See Also:
      • ApplicationJpaTracking
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object