Class DefaultOrderLinksService
java.lang.Object
com.broadleafcommerce.orderoperation.service.messaging.DefaultOrderLinksService
- All Implemented Interfaces:
OrderLinksService
The default implementation for
OrderLinksService.- Author:
- Dima Myroniuk (dmyroniuk)
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultOrderLinksService(ExternalOrderProperties externalOrderProperties, com.broadleafcommerce.common.extension.TypeFactory typeFactory) -
Method Summary
Modifier and TypeMethodDescriptionbuildReadOrderFulfillmentsLink(@NonNull com.broadleafcommerce.order.client.domain.Order order, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Builds the link to read the Order fulfillments by order id.buildReadOrderLink(@NonNull com.broadleafcommerce.order.client.domain.Order order, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Builds the link to read the Order by id.protected ExternalOrderPropertiesprotected org.springframework.web.util.UriComponentsBuilderprotected com.broadleafcommerce.common.extension.TypeFactory
-
Constructor Details
-
DefaultOrderLinksService
public DefaultOrderLinksService(ExternalOrderProperties externalOrderProperties, com.broadleafcommerce.common.extension.TypeFactory typeFactory)
-
-
Method Details
-
buildReadOrderLink
public OrderLink buildReadOrderLink(@NonNull @NonNull com.broadleafcommerce.order.client.domain.Order order, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Description copied from interface:OrderLinksServiceBuilds the link to read the Order by id.- Specified by:
buildReadOrderLinkin interfaceOrderLinksService- Parameters:
order- the order to build the link forcontextInfo- context information surrounding sandboxing/multitenant state- Returns:
-
buildReadOrderFulfillmentsLink
public OrderLink buildReadOrderFulfillmentsLink(@NonNull @NonNull com.broadleafcommerce.order.client.domain.Order order, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Description copied from interface:OrderLinksServiceBuilds the link to read the Order fulfillments by order id.- Specified by:
buildReadOrderFulfillmentsLinkin interfaceOrderLinksService- Parameters:
order- the order to build the link forcontextInfo- context information surrounding sandboxing/multitenant state- Returns:
-
getOrderBaseUrl
protected org.springframework.web.util.UriComponentsBuilder getOrderBaseUrl() -
getExternalOrderProperties
-
getTypeFactory
protected com.broadleafcommerce.common.extension.TypeFactory getTypeFactory()
-