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 long
serialVersionUID
-
Constructor Summary
Constructors Constructor Description JpaCustomer()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected boolean
canEqual(Object other)
boolean
equals(Object o)
org.modelmapper.ModelMapper
fromMe()
List<AdditionalPhone>
getAdditionalPhones()
Map<String,Object>
getAttributes()
Class<?>
getBusinessDomainType()
String
getContextId()
String
getDefaultAccountId()
String
getDefaultPaymentAccountId()
Deprecated.since 1.7.2, in favor of usingSavedPaymentMethod
in PaymentTransactionServices to manage saved payment methods.Optional<String>
getDisplay()
String
getEmail()
String
getExternalId()
String
getFirstName()
String
getFullName()
String
getLastName()
String
getMiddleName()
String
getOwnerIdentifier()
Phone
getPhone()
String
getSpecialType()
String
getTaxId()
The tax id for this customerInstant
getTimestamp()
Temporal state describing the time at which this item was last updated.com.broadleafcommerce.data.tracking.jpa.filtering.domain.CustomerContextJpaTracking
getTracking()
String
getUsername()
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
setDefaultPaymentAccountId(String defaultPaymentAccountId)
Deprecated.since 1.7.2, in favor of usingSavedPaymentMethod
in PaymentTransactionServices to manage saved payment methods.void
setEmail(String email)
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
setPhone(Phone phone)
void
setSpecialType(String specialType)
void
setTaxId(String taxId)
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)
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
-
-
-
-
Field Detail
-
serialVersionUID
public static final long serialVersionUID
- See Also:
- Constant Field Values
-
-
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
-
getOwnerIdentifier
public String getOwnerIdentifier()
- Specified by:
getOwnerIdentifier
in interfacecom.broadleafcommerce.data.tracking.core.policy.Owned
-
getContextId
public String getContextId()
- Specified by:
getContextId
in 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()
-
getTaxId
public String getTaxId()
The tax id for this customer
-
getDefaultPaymentAccountId
@Deprecated public String getDefaultPaymentAccountId()
Deprecated.since 1.7.2, in favor of usingSavedPaymentMethod
in PaymentTransactionServices to manage saved payment methods.- 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 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
public String getDefaultAccountId()
-
getTracking
public com.broadleafcommerce.data.tracking.jpa.filtering.domain.CustomerContextJpaTracking getTracking()
- Specified by:
getTracking
in interfacecom.broadleafcommerce.data.tracking.core.Trackable
-
setContextId
public void setContextId(String contextId)
- Specified by:
setContextId
in 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()
-
setTaxId
public void setTaxId(String taxId)
The tax id for this customer
-
setDefaultPaymentAccountId
@Deprecated public void setDefaultPaymentAccountId(String defaultPaymentAccountId)
Deprecated.since 1.7.2, in favor of usingSavedPaymentMethod
in PaymentTransactionServices to manage saved payment methods.- 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 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
public void setDefaultAccountId(String defaultAccountId)
-
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.
-
canEqual
protected boolean canEqual(Object other)
-
-