Class DefaultCustomerAddressReplicationUtilityService
java.lang.Object
com.sap.hybris.sapcustomerb2c.outbound.DefaultCustomerAddressReplicationUtilityService
- All Implemented Interfaces:
CustomerAddressReplicationUtilityService
public class DefaultCustomerAddressReplicationUtilityService
extends Object
implements CustomerAddressReplicationUtilityService
Default implementation of
CustomerAddressReplicationUtilityService-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected AddressModeldetermineDefaultAddress(CustomerModel customerModel, AddressModel addressModel) findDefaultAddress(CustomerModel customerModel, AddressModel addressModel) Find customer default addressprotected de.hybris.platform.commerceservices.customer.CustomerAccountServiceprotected de.hybris.platform.servicelayer.user.UserServicebooleanisAddressReplicationRequired(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 changedprotected booleanisModelAttributeChanged(ItemModel itemModel, String itemProperty) protected booleanisModelChanged(ItemModel itemModel, de.hybris.platform.servicelayer.interceptor.InterceptorContext ctx, Set<String> monitoredAttributes) protected AddressModelreadDefaultAddress(CustomerModel customerModel) voidsetCustomerAccountService(de.hybris.platform.commerceservices.customer.CustomerAccountService customerAccountService) voidsetUserService(de.hybris.platform.servicelayer.user.UserService userService)
-
Constructor Details
-
DefaultCustomerAddressReplicationUtilityService
public DefaultCustomerAddressReplicationUtilityService()
-
-
Method Details
-
isCustomerReplicationRequired
public boolean isCustomerReplicationRequired(CustomerModel customerModel, Set<String> monitoredAttributes, de.hybris.platform.servicelayer.interceptor.InterceptorContext context) Description copied from interface:CustomerAddressReplicationUtilityServiceVarify if customer is changed- Specified by:
isCustomerReplicationRequiredin interfaceCustomerAddressReplicationUtilityService- 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
public boolean isAddressReplicationRequired(AddressModel addressModel, Set<String> monitoredAttributes, de.hybris.platform.servicelayer.interceptor.InterceptorContext context) Description copied from interface:CustomerAddressReplicationUtilityServiceVarify if address is changed- Specified by:
isAddressReplicationRequiredin interfaceCustomerAddressReplicationUtilityService- 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
Description copied from interface:CustomerAddressReplicationUtilityServiceFind customer default address- Specified by:
findDefaultAddressin interfaceCustomerAddressReplicationUtilityService- Parameters:
customerModel- Customer requiring default addressaddressModel- Address to be determined if default- Returns:
- AddressModel
-
determineDefaultAddress
protected AddressModel determineDefaultAddress(CustomerModel customerModel, AddressModel addressModel) -
readDefaultAddress
-
isModelChanged
-
isModelAttributeChanged
-
getCustomerAccountService
protected de.hybris.platform.commerceservices.customer.CustomerAccountService getCustomerAccountService() -
setCustomerAccountService
public void setCustomerAccountService(de.hybris.platform.commerceservices.customer.CustomerAccountService customerAccountService) -
getUserService
protected de.hybris.platform.servicelayer.user.UserService getUserService() -
setUserService
public void setUserService(de.hybris.platform.servicelayer.user.UserService userService)
-