Class JpaMenuItem
- 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 aMenuItem
for use with a JPA-supported datastore.- Author:
- Samarth Dhruva (samarthd)
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description JpaMenuItem()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
canEqual(Object other)
boolean
equals(Object o)
org.modelmapper.ModelMapper
fromMe()
String
get_id()
Class<?>
getBusinessDomainType()
String
getContextId()
String
getCustomHtml()
Optional<String>
getDisplay()
Long
getDisplayOrder()
String
getImageAltText()
String
getImageUrl()
String
getLabel()
String
getParentMenuContextId()
String
getParentMenuItemContextId()
com.broadleafcommerce.data.tracking.jpa.filtering.domain.ApplicationJpaTracking
getTracking()
String
getType()
String
getUrl()
int
hashCode()
void
set_id(String _id)
void
setContextId(String contextId)
void
setCustomHtml(String customHtml)
void
setDisplayOrder(Long displayOrder)
void
setImageAltText(String imageAltText)
void
setImageUrl(String imageUrl)
void
setLabel(String label)
void
setParentMenuContextId(String parentMenuContextId)
void
setParentMenuItemContextId(String parentMenuItemContextId)
void
setTracking(com.broadleafcommerce.data.tracking.jpa.filtering.domain.ApplicationJpaTracking tracking)
void
setType(String type)
void
setUrl(String url)
org.modelmapper.ModelMapper
toMe()
String
toString()
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.broadleafcommerce.data.tracking.core.mapping.ModelMapperMappable
postFromMe, postToMe, preFromMe, preToMe
-
Methods inherited from interface com.broadleafcommerce.common.messaging.notification.domain.NotificationStateAware
findNotificationState
-
-
-
-
Method Detail
-
fromMe
@NonNull public org.modelmapper.ModelMapper fromMe()
- Specified by:
fromMe
in interfacecom.broadleafcommerce.data.tracking.core.mapping.ModelMapperMappable
-
toMe
@NonNull public org.modelmapper.ModelMapper toMe()
- Specified by:
toMe
in interfacecom.broadleafcommerce.data.tracking.core.mapping.ModelMapperMappable
-
getBusinessDomainType
public Class<?> getBusinessDomainType()
- Specified by:
getBusinessDomainType
in interfacecom.broadleafcommerce.data.tracking.core.mapping.BusinessTypeAware
-
getDisplay
public Optional<String> getDisplay()
- Specified by:
getDisplay
in interfacecom.broadleafcommerce.data.tracking.core.Trackable
-
get_id
public String get_id()
-
getContextId
public String getContextId()
- Specified by:
getContextId
in interfacecom.broadleafcommerce.data.tracking.core.Trackable
- Specified by:
getContextId
in interfacecom.broadleafcommerce.translation.domain.Translatable
- See Also:
MenuItem.getId()
-
getParentMenuItemContextId
public String getParentMenuItemContextId()
- See Also:
MenuItem.getParentMenuItemId()
-
getParentMenuContextId
public String getParentMenuContextId()
- See Also:
MenuItem.getParentMenuId()
-
getLabel
public String getLabel()
- See Also:
MenuItem.getLabel()
-
getUrl
public String getUrl()
- See Also:
MenuItem.getUrl()
-
getDisplayOrder
public Long getDisplayOrder()
- See Also:
MenuItem.getDisplayOrder()
-
getImageUrl
public String getImageUrl()
- See Also:
MenuItem.getImageUrl()
-
getImageAltText
public String getImageAltText()
- See Also:
MenuItem.getImageAltText()
-
getCustomHtml
public String getCustomHtml()
- See Also:
MenuItem.getCustomHtml()
-
getType
public String getType()
- See Also:
MenuItem.getType()
-
getTracking
public com.broadleafcommerce.data.tracking.jpa.filtering.domain.ApplicationJpaTracking getTracking()
- Specified by:
getTracking
in interfacecom.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 interfacecom.broadleafcommerce.data.tracking.core.Trackable
- See Also:
MenuItem.getId()
-
setParentMenuItemContextId
public void setParentMenuItemContextId(String parentMenuItemContextId)
- See Also:
MenuItem.getParentMenuItemId()
-
setParentMenuContextId
public void setParentMenuContextId(String parentMenuContextId)
- See Also:
MenuItem.getParentMenuId()
-
setLabel
public void setLabel(String label)
- See Also:
MenuItem.getLabel()
-
setUrl
public void setUrl(String url)
- See Also:
MenuItem.getUrl()
-
setDisplayOrder
public void setDisplayOrder(Long displayOrder)
- See Also:
MenuItem.getDisplayOrder()
-
setImageUrl
public void setImageUrl(String imageUrl)
- See Also:
MenuItem.getImageUrl()
-
setImageAltText
public void setImageAltText(String imageAltText)
- See Also:
MenuItem.getImageAltText()
-
setCustomHtml
public void setCustomHtml(String customHtml)
- See Also:
MenuItem.getCustomHtml()
-
setType
public void setType(String type)
- See Also:
MenuItem.getType()
-
setTracking
public void setTracking(com.broadleafcommerce.data.tracking.jpa.filtering.domain.ApplicationJpaTracking tracking)
- Specified by:
setTracking
in interfacecom.broadleafcommerce.data.tracking.core.TypedTrackable<com.broadleafcommerce.data.tracking.jpa.filtering.domain.ApplicationJpaTracking>
- Parameters:
tracking
- theApplicationJpaTracking
information for this menu item- See Also:
ApplicationJpaTracking
-
canEqual
protected boolean canEqual(Object other)
-
-