Class DefaultSapC4cCustomerInterceptor

  • All Implemented Interfaces:
    de.hybris.platform.servicelayer.interceptor.Interceptor, de.hybris.platform.servicelayer.interceptor.ValidateInterceptor<CustomerModel>

    public class DefaultSapC4cCustomerInterceptor
    extends java.lang.Object
    implements de.hybris.platform.servicelayer.interceptor.ValidateInterceptor<CustomerModel>
    Intercepts any changes in customer and creates customer update event if any replicated relavant fields are changed
    • Constructor Detail

      • DefaultSapC4cCustomerInterceptor

        public DefaultSapC4cCustomerInterceptor()
    • Method Detail

      • onValidate

        public void onValidate​(CustomerModel customerModel,
                               de.hybris.platform.servicelayer.interceptor.InterceptorContext ctx)
                        throws de.hybris.platform.servicelayer.interceptor.InterceptorException
        Specified by:
        onValidate in interface de.hybris.platform.servicelayer.interceptor.ValidateInterceptor<CustomerModel>
        Throws:
        de.hybris.platform.servicelayer.interceptor.InterceptorException
      • shouldReplicate

        protected boolean shouldReplicate​(CustomerModel customerModel,
                                          de.hybris.platform.servicelayer.interceptor.InterceptorContext ctx)
        Checks if any replicated relavant fields are modified and returns a boolean
      • getEventService

        public de.hybris.platform.servicelayer.event.EventService getEventService()
        Returns:
        the eventService
      • setEventService

        public void setEventService​(de.hybris.platform.servicelayer.event.EventService eventService)
        Parameters:
        eventService - the eventService to set
      • setCustomerUtil

        public void setCustomerUtil​(SapC4cCustomerUtils customerUtil)
        Parameters:
        customerUtil - the customerUtil to set
      • getConfigurationService

        public de.hybris.platform.servicelayer.config.ConfigurationService getConfigurationService()
      • setConfigurationService

        public void setConfigurationService​(de.hybris.platform.servicelayer.config.ConfigurationService configurationService)