Class JpaCustomer
- java.lang.Object
-
- com.broadleafcommerce.customer.provider.jpa.domain.JpaCustomer
-
- All Implemented Interfaces:
com.broadleafcommerce.common.messaging.notification.domain.NotificationStateAware,com.broadleafcommerce.data.tracking.core.CustomerContextTrackable<com.broadleafcommerce.data.tracking.jpa.filtering.domain.CustomerContextJpaTracking>,com.broadleafcommerce.data.tracking.core.mapping.BusinessTypeAware,com.broadleafcommerce.data.tracking.core.mapping.ModelMapperMappable,com.broadleafcommerce.data.tracking.core.policy.Owned,com.broadleafcommerce.data.tracking.core.search.Indexable,com.broadleafcommerce.data.tracking.core.Temporal,com.broadleafcommerce.data.tracking.core.Trackable,com.broadleafcommerce.data.tracking.core.TypedTrackable<com.broadleafcommerce.data.tracking.jpa.filtering.domain.CustomerContextJpaTracking>,Serializable
@Entity @TrackableExtension({TENANT,CUSTOMER_CONTEXT}) public class JpaCustomer extends Object implements com.broadleafcommerce.data.tracking.core.CustomerContextTrackable<com.broadleafcommerce.data.tracking.jpa.filtering.domain.CustomerContextJpaTracking>, com.broadleafcommerce.data.tracking.core.mapping.ModelMapperMappable, com.broadleafcommerce.data.tracking.core.mapping.BusinessTypeAware, com.broadleafcommerce.data.tracking.core.policy.Owned, com.broadleafcommerce.data.tracking.core.search.Indexable, com.broadleafcommerce.data.tracking.core.Temporal- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static longserialVersionUID
-
Constructor Summary
Constructors Constructor Description JpaCustomer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancanEqual(Object other)booleanequals(Object o)org.modelmapper.ModelMapperfromMe()List<AdditionalPhone>getAdditionalPhones()Map<String,Object>getAttributes()Class<?>getBusinessDomainType()StringgetContextId()StringgetDefaultPaymentAccountId()Optional<String>getDisplay()StringgetEmail()StringgetExternalId()StringgetFirstName()StringgetFullName()StringgetLastName()StringgetMiddleName()StringgetOwnerIdentifier()PhonegetPhone()StringgetSpecialType()InstantgetTimestamp()Temporal state describing the time at which this item was last updated.com.broadleafcommerce.data.tracking.jpa.filtering.domain.CustomerContextJpaTrackinggetTracking()StringgetUsername()inthashCode()booleanisActive()booleanisLocked()voidsetActive(boolean active)voidsetAdditionalPhones(List<AdditionalPhone> additionalPhones)voidsetAttributes(Map<String,Object> attributes)voidsetContextId(String contextId)voidsetDefaultPaymentAccountId(String defaultPaymentAccountId)voidsetEmail(String email)voidsetExternalId(String externalId)voidsetFirstName(String firstName)voidsetFullName(String fullName)voidsetLastName(String lastName)voidsetLocked(boolean locked)voidsetMiddleName(String middleName)voidsetPhone(Phone phone)voidsetSpecialType(String specialType)voidsetTimestamp(Instant timestamp)Temporal state describing the time at which this item was last updated.voidsetTracking(com.broadleafcommerce.data.tracking.jpa.filtering.domain.CustomerContextJpaTracking tracking)voidsetUsername(String username)org.modelmapper.ModelMappertoMe()StringtoString()-
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
-
-
-
-
Field Detail
-
serialVersionUID
public static final long serialVersionUID
- See Also:
- Constant Field Values
-
-
Method Detail
-
fromMe
@NonNull public org.modelmapper.ModelMapper fromMe()
- Specified by:
fromMein interfacecom.broadleafcommerce.data.tracking.core.mapping.ModelMapperMappable
-
toMe
@NonNull public org.modelmapper.ModelMapper toMe()
- Specified by:
toMein interfacecom.broadleafcommerce.data.tracking.core.mapping.ModelMapperMappable
-
getBusinessDomainType
public Class<?> getBusinessDomainType()
- Specified by:
getBusinessDomainTypein interfacecom.broadleafcommerce.data.tracking.core.mapping.BusinessTypeAware
-
getDisplay
public Optional<String> getDisplay()
- Specified by:
getDisplayin interfacecom.broadleafcommerce.data.tracking.core.Trackable
-
getOwnerIdentifier
public String getOwnerIdentifier()
- Specified by:
getOwnerIdentifierin interfacecom.broadleafcommerce.data.tracking.core.policy.Owned
-
getContextId
public String getContextId()
- Specified by:
getContextIdin interfacecom.broadleafcommerce.data.tracking.core.Trackable
-
getFirstName
public String getFirstName()
- See Also:
Customer.getFirstName()
-
getMiddleName
public String getMiddleName()
- See Also:
Customer.getMiddleName()
-
getLastName
public String getLastName()
- See Also:
Customer.getLastName()
-
getFullName
public String getFullName()
- See Also:
Customer.getFullName()
-
getUsername
public String getUsername()
- See Also:
Customer.getUsername()
-
getEmail
public String getEmail()
- See Also:
Customer.getEmail()
-
getExternalId
public String getExternalId()
- See Also:
Customer.getExternalId()
-
getPhone
public Phone getPhone()
- See Also:
Customer.getPhone()
-
getAdditionalPhones
public List<AdditionalPhone> getAdditionalPhones()
- See Also:
Customer.getAdditionalPhones()
-
getAttributes
public Map<String,Object> getAttributes()
- See Also:
Customer.getAttributes()
-
getDefaultPaymentAccountId
public String getDefaultPaymentAccountId()
- See Also:
Customer.getDefaultPaymentAccountId()
-
getSpecialType
public String getSpecialType()
- See Also:
Customer.getSpecialType()
-
getTimestamp
public Instant getTimestamp()
Temporal state describing the time at which this item was last updated. Relates to theTemporalinterface and is primarily used during consumption of messages regarding changes in state to this domain. For example, a service consuming a change notification for this domain can compare the current persisted timestamp to this timestamp to determine if it already has a newer version, in which case, it can ignore. This is primarily a measure to ensure that ordering is not required for messages related to state change.- Specified by:
getTimestampin interfacecom.broadleafcommerce.data.tracking.core.Temporal- Returns:
- Temporal state describing the time at which this item was last updated
-
isActive
public boolean isActive()
-
isLocked
public boolean isLocked()
-
getTracking
public com.broadleafcommerce.data.tracking.jpa.filtering.domain.CustomerContextJpaTracking getTracking()
- Specified by:
getTrackingin interfacecom.broadleafcommerce.data.tracking.core.Trackable
-
setContextId
public void setContextId(String contextId)
- Specified by:
setContextIdin interfacecom.broadleafcommerce.data.tracking.core.Trackable
-
setFirstName
public void setFirstName(String firstName)
- See Also:
Customer.getFirstName()
-
setMiddleName
public void setMiddleName(String middleName)
- See Also:
Customer.getMiddleName()
-
setLastName
public void setLastName(String lastName)
- See Also:
Customer.getLastName()
-
setFullName
public void setFullName(String fullName)
- See Also:
Customer.getFullName()
-
setUsername
public void setUsername(String username)
- See Also:
Customer.getUsername()
-
setEmail
public void setEmail(String email)
- See Also:
Customer.getEmail()
-
setExternalId
public void setExternalId(String externalId)
- See Also:
Customer.getExternalId()
-
setPhone
public void setPhone(Phone phone)
- See Also:
Customer.getPhone()
-
setAdditionalPhones
public void setAdditionalPhones(List<AdditionalPhone> additionalPhones)
- See Also:
Customer.getAdditionalPhones()
-
setAttributes
public void setAttributes(Map<String,Object> attributes)
- See Also:
Customer.getAttributes()
-
setDefaultPaymentAccountId
public void setDefaultPaymentAccountId(String defaultPaymentAccountId)
- See Also:
Customer.getDefaultPaymentAccountId()
-
setSpecialType
public void setSpecialType(String specialType)
- See Also:
Customer.getSpecialType()
-
setTimestamp
public void setTimestamp(Instant timestamp)
Temporal state describing the time at which this item was last updated. Relates to theTemporalinterface and is primarily used during consumption of messages regarding changes in state to this domain. For example, a service consuming a change notification for this domain can compare the current persisted timestamp to this timestamp to determine if it already has a newer version, in which case, it can ignore. This is primarily a measure to ensure that ordering is not required for messages related to state change.- Specified by:
setTimestampin interfacecom.broadleafcommerce.data.tracking.core.Temporal- Parameters:
timestamp- Temporal state describing the time at which this item was last updated
-
setActive
public void setActive(boolean active)
-
setLocked
public void setLocked(boolean locked)
-
setTracking
public void setTracking(com.broadleafcommerce.data.tracking.jpa.filtering.domain.CustomerContextJpaTracking tracking)
- Specified by:
setTrackingin interfacecom.broadleafcommerce.data.tracking.core.TypedTrackable<com.broadleafcommerce.data.tracking.jpa.filtering.domain.CustomerContextJpaTracking>- Parameters:
tracking- The tracking information for this customer.
-
canEqual
protected boolean canEqual(Object other)
-
-