public class AfterCustomerSaveEventHandler extends DefaultSaveEventHandler
| Constructor and Description |
|---|
AfterCustomerSaveEventHandler() |
| Modifier and Type | Method and Description |
|---|---|
protected ResponseData |
createOrUpdateCustomer(CustomerModel customerModel) |
Populator |
getCustomerPopulator() |
ResponseData |
handle(AfterSaveEvent event,
ItemModel model) |
void |
setCustomerPopulator(Populator customerPopulator) |
boolean |
shouldHandle(AfterSaveEvent event,
ItemModel model) |
afterHandle, convertJsonToMap, convertMapToJson, getConfigurationService, getFieldsString, getFieldsToPopulate, getFinalJson, getFinalJson, getFinalJson, getModelService, getPublisher, handleEvent, populateFields, publish, setConfigurationService, setModelService, setPublisherpublic boolean shouldHandle(AfterSaveEvent event, ItemModel model) throws java.lang.Exception
shouldHandle in class DefaultSaveEventHandlerjava.lang.Exceptionpublic ResponseData handle(AfterSaveEvent event, ItemModel model) throws java.lang.Exception
handle in class DefaultSaveEventHandlerjava.lang.Exceptionprotected ResponseData createOrUpdateCustomer(CustomerModel customerModel) throws java.lang.Exception
endPoint - java.net.URISyntaxExceptionjava.io.IOExceptionjava.lang.Exceptionpublic Populator getCustomerPopulator()
public void setCustomerPopulator(Populator customerPopulator)
customerPopulator - the customerPopulator to setCopyright © 2018 SAP SE. All Rights Reserved.