Class DefaultOutboundSyncService
- java.lang.Object
-
- de.hybris.platform.outboundsync.activator.impl.DefaultOutboundSyncService
-
- All Implemented Interfaces:
OutboundSyncService
public class DefaultOutboundSyncService extends java.lang.Object implements OutboundSyncService
Default implementation ofOutboundSyncServicethat usesOutboundServiceFacadefor sending changes to the destinations.
-
-
Constructor Summary
Constructors Constructor Description DefaultOutboundSyncService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidconsumeChanges(OutboundItemDTOGroup outboundItemDTOGroup)protected ItemModelfindItemByPk(PK pk)protected ModelServicegetModelService()protected OutboundItemConsumergetOutboundItemConsumer()protected OutboundItemFactorygetOutboundItemFactory()protected OutboundServiceFacadegetOutboundServiceFacade()protected SyncRetryServicegetSyncRetryService()protected voidhandleError(OutboundItemDTOGroup outboundItemDTOGroup)protected voidhandleResponse(org.springframework.http.ResponseEntity<java.util.Map> responseEntity, OutboundItemDTOGroup outboundItemDTOGroup)protected voidhandleSuccessfulSync(OutboundItemDTOGroup outboundItemDTOGroup)voidsetEventService(EventService eventService)voidsetModelService(ModelService modelService)voidsetOutboundItemConsumer(OutboundItemConsumer outboundItemConsumer)voidsetOutboundItemFactory(OutboundItemFactory factory)voidsetOutboundServiceFacade(OutboundServiceFacade outboundServiceFacade)voidsetSyncRetryService(SyncRetryService syncRetryService)voidsync(java.util.Collection<OutboundItemDTO> outboundItemDTOs)Consumes a DTO with the item changed information and handles the message based on the change type.
-
-
-
Method Detail
-
sync
public void sync(java.util.Collection<OutboundItemDTO> outboundItemDTOs)
Description copied from interface:OutboundSyncServiceConsumes a DTO with the item changed information and handles the message based on the change type.- Specified by:
syncin interfaceOutboundSyncService- Parameters:
outboundItemDTOs- A collection of DTOs with the information about the changes in the item.
-
handleError
protected void handleError(OutboundItemDTOGroup outboundItemDTOGroup)
-
handleResponse
protected void handleResponse(org.springframework.http.ResponseEntity<java.util.Map> responseEntity, OutboundItemDTOGroup outboundItemDTOGroup)
-
handleSuccessfulSync
protected void handleSuccessfulSync(OutboundItemDTOGroup outboundItemDTOGroup)
-
consumeChanges
protected void consumeChanges(OutboundItemDTOGroup outboundItemDTOGroup)
-
getModelService
protected ModelService getModelService()
-
setModelService
public void setModelService(ModelService modelService)
-
getOutboundItemFactory
protected OutboundItemFactory getOutboundItemFactory()
-
setOutboundItemFactory
public void setOutboundItemFactory(OutboundItemFactory factory)
-
getOutboundServiceFacade
protected OutboundServiceFacade getOutboundServiceFacade()
-
setOutboundServiceFacade
public void setOutboundServiceFacade(OutboundServiceFacade outboundServiceFacade)
-
getOutboundItemConsumer
protected OutboundItemConsumer getOutboundItemConsumer()
-
setOutboundItemConsumer
public void setOutboundItemConsumer(OutboundItemConsumer outboundItemConsumer)
-
getSyncRetryService
protected SyncRetryService getSyncRetryService()
-
setSyncRetryService
public void setSyncRetryService(SyncRetryService syncRetryService)
-
setEventService
public void setEventService(EventService eventService)
-
-