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:
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
org.modelmapper.ModelMapper
fromMe()
Class<?>
Deprecated.getEmail()
getPhone()
getTaxId()
The tax id for this customerTemporal state describing the time at which this item was last updated.com.broadleafcommerce.data.tracking.jpa.filtering.domain.CustomerContextJpaTracking
Optional VAT registration ID for this customer.int
hashCode()
boolean
isActive()
boolean
isLocked()
void
setActive
(boolean active) void
setAdditionalPhones
(List<AdditionalPhone> additionalPhones) void
setAttributes
(Map<String, Object> attributes) void
setContextId
(String contextId) void
setDefaultAccountId
(String defaultAccountId) void
setDefaultCommunicationPreference
(String defaultCommunicationPreference) void
setDefaultPaymentAccountId
(String defaultPaymentAccountId) Deprecated.since 1.7.2, in favor of usingSavedPaymentMethod
in PaymentTransactionServices to manage saved payment methods.void
void
setExternalId
(String externalId) void
setFirstName
(String firstName) void
setFullName
(String fullName) void
setLastName
(String lastName) void
setLocked
(boolean locked) void
setMiddleName
(String middleName) void
void
setPhoneAsString
(String phone) void
setSpecialType
(String specialType) void
The tax id for this customervoid
setTimestamp
(Instant timestamp) Temporal state describing the time at which this item was last updated.void
setTracking
(com.broadleafcommerce.data.tracking.jpa.filtering.domain.CustomerContextJpaTracking tracking) void
setUsername
(String username) void
setVatRegistrationId
(String vatRegistrationId) Optional VAT registration ID for this customer.org.modelmapper.ModelMapper
toMe()
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
Methods inherited from interface com.broadleafcommerce.data.tracking.core.Trackable
getNotificationStates, getNotificationStates, setNotificationStates
Methods inherited from interface com.broadleafcommerce.data.tracking.core.TypedTrackable
setTracking
-
Field Details
-
serialVersionUID
public static final long serialVersionUID- See Also:
-
-
Constructor Details
-
JpaCustomer
public JpaCustomer()
-
-
Method Details
-
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
- Specified by:
getBusinessDomainType
in interfacecom.broadleafcommerce.data.tracking.core.mapping.BusinessTypeAware
-
getDisplay
- Specified by:
getDisplay
in interfacecom.broadleafcommerce.data.tracking.core.Trackable
-
getOwnerIdentifier
- Specified by:
getOwnerIdentifier
in interfacecom.broadleafcommerce.data.tracking.core.policy.Owned
-
getPhoneAsString
-
setPhoneAsString
-
getPhone
-
setPhone
-
getContextId
- Specified by:
getContextId
in interfacecom.broadleafcommerce.data.tracking.core.Trackable
-
getFirstName
- See Also:
-
getMiddleName
- See Also:
-
getLastName
- See Also:
-
getFullName
- See Also:
-
getUsername
- See Also:
-
getEmail
- See Also:
-
getExternalId
- See Also:
-
getDefaultCommunicationPreference
-
getAdditionalPhones
- See Also:
-
getAttributes
- See Also:
-
getTaxId
The tax id for this customer -
getVatRegistrationId
Optional VAT registration ID for this customer. -
getDefaultPaymentAccountId
Deprecated.since 1.7.2, in favor of usingSavedPaymentMethod
in PaymentTransactionServices to manage saved payment methods.- See Also:
-
getSpecialType
- See Also:
-
getTimestamp
Temporal state describing the time at which this item was last updated. Relates to theTemporal
interface 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:
getTimestamp
in 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() -
getDefaultAccountId
-
getTracking
public com.broadleafcommerce.data.tracking.jpa.filtering.domain.CustomerContextJpaTracking getTracking()- Specified by:
getTracking
in interfacecom.broadleafcommerce.data.tracking.core.Trackable
-
setContextId
- Specified by:
setContextId
in interfacecom.broadleafcommerce.data.tracking.core.Trackable
-
setFirstName
- See Also:
-
setMiddleName
- See Also:
-
setLastName
- See Also:
-
setFullName
- See Also:
-
setUsername
- See Also:
-
setEmail
- See Also:
-
setExternalId
- See Also:
-
setDefaultCommunicationPreference
-
setAdditionalPhones
- See Also:
-
setAttributes
- See Also:
-
setTaxId
The tax id for this customer -
setVatRegistrationId
Optional VAT registration ID for this customer. -
setDefaultPaymentAccountId
Deprecated.since 1.7.2, in favor of usingSavedPaymentMethod
in PaymentTransactionServices to manage saved payment methods.- See Also:
-
setSpecialType
- See Also:
-
setTimestamp
Temporal state describing the time at which this item was last updated. Relates to theTemporal
interface 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:
setTimestamp
in 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) -
setDefaultAccountId
-
setTracking
public void setTracking(com.broadleafcommerce.data.tracking.jpa.filtering.domain.CustomerContextJpaTracking tracking) - Specified by:
setTracking
in interfacecom.broadleafcommerce.data.tracking.core.TypedTrackable<com.broadleafcommerce.data.tracking.jpa.filtering.domain.CustomerContextJpaTracking>
- Parameters:
tracking
- The tracking information for this customer.
-
toString
-
equals
-
canEqual
-
hashCode
public int hashCode()
-
SavedPaymentMethod
in PaymentTransactionServices to manage saved payment methods.