public class DefaultSapC4cCustomerInterceptor extends java.lang.Object implements ValidateInterceptor<CustomerModel>
| Constructor and Description |
|---|
DefaultSapC4cCustomerInterceptor() |
| Modifier and Type | Method and Description |
|---|---|
SapC4cCustomerUtils |
getCustomerUtil() |
EventService |
getEventService() |
void |
onValidate(CustomerModel customerModel,
InterceptorContext ctx)
Called in the
modelService.saveAll() method. |
void |
setCustomerUtil(SapC4cCustomerUtils customerUtil) |
void |
setEventService(EventService eventService) |
protected boolean |
shouldReplicate(CustomerModel customerModel,
InterceptorContext ctx)
Checks if any replicated relavant fields are modified and returns a boolean
|
public void onValidate(CustomerModel customerModel, InterceptorContext ctx) throws InterceptorException
ValidateInterceptormodelService.saveAll() method. Validates the values of the given model.onValidate in interface ValidateInterceptor<CustomerModel>customerModel - the model which values has to be validatedctx - the InterceptorContextInterceptorException - if any values of the model are not valid.protected boolean shouldReplicate(CustomerModel customerModel, InterceptorContext ctx)
public EventService getEventService()
public void setEventService(EventService eventService)
eventService - the eventService to setpublic SapC4cCustomerUtils getCustomerUtil()
public void setCustomerUtil(SapC4cCustomerUtils customerUtil)
customerUtil - the customerUtil to setCopyright © 2018 SAP SE. All Rights Reserved.