Class DefaultSAPCustomerAddressConsistencyInterceptor

    • Constructor Detail

      • DefaultSAPCustomerAddressConsistencyInterceptor

        public DefaultSAPCustomerAddressConsistencyInterceptor()
    • Method Detail

      • getRelatedAddresses

        protected java.util.List<AddressModel> getRelatedAddresses​(java.lang.String sapCustomerId)
        Retrieves addresses which are related to sapCustomerId
        Parameters:
        sapCustomerId -
        Returns:
      • updateAddress

        protected void updateAddress​(InterceptorContext context,
                                     AddressModel source,
                                     AddressModel target)
        Updates an address to match a source
        Parameters:
        context -
        source - Source address
        target - target (related) address
      • compareAddress

        protected boolean compareAddress​(AddressModel source,
                                         AddressModel target)
        Compares two addresses to determine is they are different based on selected fields
        Parameters:
        source -
        target -
        Returns:
        true if one or more fields are different, false is they are identical or it's the same PK
      • setFlexibleSearchService

        public void setFlexibleSearchService​(FlexibleSearchService flexibleSearchService)