Class DefaultCustomerAddressReplicationUtilityService
- java.lang.Object
-
- com.sap.hybris.sapcustomerb2c.outbound.DefaultCustomerAddressReplicationUtilityService
-
- All Implemented Interfaces:
CustomerAddressReplicationUtilityService
public class DefaultCustomerAddressReplicationUtilityService extends java.lang.Object implements CustomerAddressReplicationUtilityService
Default implementation ofCustomerAddressReplicationUtilityService
-
-
Constructor Summary
Constructors Constructor Description DefaultCustomerAddressReplicationUtilityService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected AddressModeldetermineDefaultAddress(CustomerModel customerModel, AddressModel addressModel)AddressModelfindDefaultAddress(CustomerModel customerModel, AddressModel addressModel)Find customer default addressprotected de.hybris.platform.commerceservices.customer.CustomerAccountServicegetCustomerAccountService()protected de.hybris.platform.servicelayer.user.UserServicegetUserService()booleanisAddressReplicationRequired(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 changedprotected booleanisModelAttributeChanged(ItemModel itemModel, java.lang.String itemProperty)protected booleanisModelChanged(ItemModel itemModel, de.hybris.platform.servicelayer.interceptor.InterceptorContext ctx, java.util.Set<java.lang.String> monitoredAttributes)protected AddressModelreadDefaultAddress(CustomerModel customerModel)voidsetCustomerAccountService(de.hybris.platform.commerceservices.customer.CustomerAccountService customerAccountService)voidsetUserService(de.hybris.platform.servicelayer.user.UserService userService)
-
-
-
Method Detail
-
isCustomerReplicationRequired
public boolean isCustomerReplicationRequired(CustomerModel customerModel, java.util.Set<java.lang.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, java.util.Set<java.lang.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
public AddressModel findDefaultAddress(CustomerModel customerModel, AddressModel addressModel)
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
protected AddressModel readDefaultAddress(CustomerModel customerModel)
-
isModelChanged
protected boolean isModelChanged(ItemModel itemModel, de.hybris.platform.servicelayer.interceptor.InterceptorContext ctx, java.util.Set<java.lang.String> monitoredAttributes)
-
isModelAttributeChanged
protected boolean isModelAttributeChanged(ItemModel itemModel, java.lang.String itemProperty)
-
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)
-
-