Interface CustomerAddressReplicationUtilityService
-
- All Known Implementing Classes:
DefaultCustomerAddressReplicationUtilityService
public interface CustomerAddressReplicationUtilityServiceA utility service to check if a customer or an address has to be replicated to the backend system
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description AddressModelfindDefaultAddress(CustomerModel customerModel, AddressModel addressModel)Find customer default addressbooleanisAddressReplicationRequired(AddressModel addressModel, java.util.Set<java.lang.String> monitoredAttributes, de.hybris.platform.servicelayer.interceptor.InterceptorContext context)Varify if address is changedbooleanisCustomerReplicationRequired(CustomerModel customerModel, java.util.Set<java.lang.String> monitoredAttributes, de.hybris.platform.servicelayer.interceptor.InterceptorContext context)Varify if customer is changed
-
-
-
Method Detail
-
isCustomerReplicationRequired
boolean isCustomerReplicationRequired(CustomerModel customerModel, java.util.Set<java.lang.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, java.util.Set<java.lang.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
AddressModel findDefaultAddress(CustomerModel customerModel, AddressModel addressModel)
Find customer default address- Parameters:
customerModel- Customer requiring default addressaddressModel- Address to be determined if default- Returns:
- AddressModel
-
-