Interface CustomerAddressReplicationUtilityService
- All Known Implementing Classes:
DefaultCustomerAddressReplicationUtilityService
public interface CustomerAddressReplicationUtilityService
A utility service to check if a customer or an address has to be replicated to the backend system
-
Method Summary
Modifier and TypeMethodDescriptionfindDefaultAddress(CustomerModel customerModel, AddressModel addressModel) Find customer default addressbooleanisAddressReplicationRequired(AddressModel addressModel, Set<String> monitoredAttributes, de.hybris.platform.servicelayer.interceptor.InterceptorContext context) Varify if address is changedbooleanisCustomerReplicationRequired(CustomerModel customerModel, Set<String> monitoredAttributes, de.hybris.platform.servicelayer.interceptor.InterceptorContext context) Varify if customer is changed
-
Method Details
-
isCustomerReplicationRequired
boolean isCustomerReplicationRequired(CustomerModel customerModel, Set<String> monitoredAttributes, de.hybris.platform.servicelayer.interceptor.InterceptorContext context) Varify if customer is changed- Parameters:
customerModel- Customer to be verifiedmonitoredAttributes- Attributes to be used to determine whether the customer should be replicatedcontext- Context passed by the intercepter- Returns:
- true if customer is changed
-
isAddressReplicationRequired
boolean isAddressReplicationRequired(AddressModel addressModel, Set<String> monitoredAttributes, de.hybris.platform.servicelayer.interceptor.InterceptorContext context) Varify if address is changed- Parameters:
addressModel- Address to be verifiedmonitoredAttributes- Attributes to be used to determine whether the address should be replicatedcontext- Context passed by the intercepter- Returns:
- true if address is changed
-
findDefaultAddress
Find customer default address- Parameters:
customerModel- Customer requiring default addressaddressModel- Address to be determined if default- Returns:
- AddressModel
-