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
ConstructorDescriptionDefaultOrderLinksService
(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 ExternalOrderProperties
protected org.springframework.web.util.UriComponentsBuilder
protected 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:OrderLinksService
Builds the link to read the Order by id.- Specified by:
buildReadOrderLink
in 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:OrderLinksService
Builds the link to read the Order fulfillments by order id.- Specified by:
buildReadOrderFulfillmentsLink
in 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()
-