Class DecoratorContextBuilder
java.lang.Object
de.hybris.platform.outboundservices.decorator.DecoratorContextBuilder
- Direct Known Subclasses:
DecoratorContext.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.withIntegrationObjectItemCode(String integrationObjectItemCode) Deprecated, for removal: This API element is subject to removal in a future version.No longer used.withItemModel(ItemModel itemModel) withOutboundSource(OutboundSource source) Specifies source module sending data outbound
-
Constructor Details
-
DecoratorContextBuilder
protected DecoratorContextBuilder()
-
-
Method Details
-
withItemModel
-
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.not used anymore, usewithIntegrationObject(IntegrationObjectDescriptor)instead -
withDestinationModel
-
withIntegrationObjectItemCode
@Deprecated(since="2011.0", forRemoval=true) public DecoratorContextBuilder withIntegrationObjectItemCode(String integrationObjectItemCode) Deprecated, for removal: This API element is subject to removal in a future version.No longer used. The integration object item is derived from the context integration object and item model. -
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
-
withIntegrationObject(IntegrationObjectDescriptor)instead