public class DefaultSAPCustomerAddressConsistencyInterceptor extends java.lang.Object implements PrepareInterceptor
| Modifier and Type | Field and Description |
|---|---|
protected static Logger |
LOGGER |
| Constructor and Description |
|---|
DefaultSAPCustomerAddressConsistencyInterceptor() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
fillAddressWithSAPDataOfExistingSAPSourceAddress(InterceptorContext context,
AddressModel newAddress) |
java.util.List<AddressModel> |
findAddressesBySAPCustomerID(java.lang.String sapCustomerID,
java.lang.Boolean duplicates) |
protected FlexibleSearchQuery |
getFlexibleSearchQuery() |
FlexibleSearchService |
getFlexibleSearchService() |
protected java.lang.String |
getQuery() |
protected AddressModel |
getSAPSourceAddress(java.lang.String sapCustomerID) |
protected java.lang.String |
getUIDOfAddressOwner(AddressModel address) |
void |
onPrepare(java.lang.Object model,
InterceptorContext context)
Called in the
modelService.saveAll() method. |
void |
setFlexibleSearchService(FlexibleSearchService flexibleSearchService) |
protected void |
updateAddressWithSAPDataOfAddressTemplate(InterceptorContext context,
AddressModel addressTemplate,
AddressModel addressToUpdate,
boolean saveChanges) |
protected void |
updateAllAddressesWithSameSAPCustomerID(InterceptorContext context,
AddressModel newAddress) |
public DefaultSAPCustomerAddressConsistencyInterceptor()
public FlexibleSearchService getFlexibleSearchService()
public void setFlexibleSearchService(FlexibleSearchService flexibleSearchService)
public void onPrepare(java.lang.Object model,
InterceptorContext context)
throws InterceptorException
PrepareInterceptormodelService.saveAll() method. Prepares the values of the given model.onPrepare in interface PrepareInterceptormodel - the model which values has to be preparedcontext - the InterceptorContextInterceptorException - if an error occured during the preparationprotected void updateAllAddressesWithSameSAPCustomerID(InterceptorContext context, AddressModel newAddress)
protected void fillAddressWithSAPDataOfExistingSAPSourceAddress(InterceptorContext context, AddressModel newAddress)
protected AddressModel getSAPSourceAddress(java.lang.String sapCustomerID)
protected java.lang.String getUIDOfAddressOwner(AddressModel address)
protected void updateAddressWithSAPDataOfAddressTemplate(InterceptorContext context, AddressModel addressTemplate, AddressModel addressToUpdate, boolean saveChanges)
public java.util.List<AddressModel> findAddressesBySAPCustomerID(java.lang.String sapCustomerID, java.lang.Boolean duplicates)
protected FlexibleSearchQuery getFlexibleSearchQuery()
protected java.lang.String getQuery()
Copyright © 2017 SAP SE. All Rights Reserved.