Class DecoratorContextBuilder
java.lang.Object
de.hybris.platform.outboundservices.decorator.DecoratorContextBuilder
A builder for creating
DecoratorContext instances.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()withDestinationModel(ConsumedDestinationModel destinationModel) withErrors(Collection<String> errors) withEventType(EventType eventType) withHttpMethod(HttpMethod httpMethod) withIntegrationKey(String integrationKey) Specifies an integration object to be placed into the sync context to be created.Deprecated, for removal: This API element is subject to removal in a future version.since 2011.withItemModel(ItemModel itemModel) Deprecated, for removal: This API element is subject to removal in a future version.since 2211.FP1.withOutboundSource(OutboundSource source) Specifies source module sending data outboundwithPayloadObject(Object payload) Specifies an arbitrary payload object to be placed into the sync context to be created.
-
Constructor Details
-
DecoratorContextBuilder
protected DecoratorContextBuilder()
-
-
Method Details
-
withItemModel
@Deprecated(since="2211.FP1", forRemoval=true) public DecoratorContextBuilder withItemModel(ItemModel itemModel) Deprecated, for removal: This API element is subject to removal in a future version.since 2211.FP1. Will be removed. UsewithPayloadObject(Object)instead. -
withPayloadObject
Specifies an arbitrary payload object to be placed into the sync context to be created.- Parameters:
payload- arbitrary payload that will be used for describing data being sent out.- Returns:
- a builder with the payload specified.
-
withIntegrationObject
Specifies an integration object to be placed into the sync context to be created.- Parameters:
io- an integration object that will be used for describing data being sent out.- Returns:
- a builder with the integration object specified.
-
withIntegrationObjectCode
@Deprecated(since="2011.0", forRemoval=true) public DecoratorContextBuilder withIntegrationObjectCode(String code) Deprecated, for removal: This API element is subject to removal in a future version.since 2011. Not used anymore and will be removed. UsewithIntegrationObject(IntegrationObjectDescriptor)instead. To convert from the integration object code toIntegrationObjectDescriptor, useIntegrationObjectDescriptorService.retrieve(String)method. This is what this method does:final var ioService = ApplicationBeans.getBean( "integrationObjectDescriptorService", IntegrationObjectDescriptorService.class); final IntegrationObjectDescriptor ioDescriptor = ioService.retrieve(code); return ioDescriptor == null ? withIntegrationObject(new NullIntegrationObjectDescriptor(code)) : withIntegrationObject(ioDescriptor); -
withDestinationModel
-
withOutboundSource
Specifies source module sending data outbound- Parameters:
source- a source module that initiated the outbound data exchange. Ifnull, then default value ofOutboundSource.UNKNOWNis used.- Returns:
- a builder with the source specified.
-
withHttpMethod
-
withIntegrationKey
-
withErrors
-
withEventType
-
build
-