Class DefaultTmaB2bOrderFacade
java.lang.Object
de.hybris.platform.commercefacades.order.impl.DefaultOrderFacade
de.hybris.platform.b2ctelcofacades.order.impl.DefaultTmaOrderFacade
de.hybris.platform.b2btelcofacades.order.impl.DefaultTmaB2bOrderFacade
- All Implemented Interfaces:
TmaOrderFacade,de.hybris.platform.commercefacades.order.OrderFacade
Default implementation of
TmaOrderFacade in B2B context.- Since:
- 2105
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultTmaB2bOrderFacade(PrincipalService principalService, TmaOrderService orderService, de.hybris.platform.servicelayer.model.ModelService modelService, de.hybris.platform.processengine.BusinessProcessService businessProcessService) -
Method Summary
Modifier and TypeMethodDescriptionbooleancanUserUpdateOrderStatus(String principalId, String authenticatedUserId, String orderId) Checks if a specific user can update the status of an order.protected de.hybris.platform.processengine.BusinessProcessServiceprotected TmaB2bCustomerAccountServiceprotected de.hybris.platform.servicelayer.model.ModelServiceProvides the list of orders related to the principal provided by its id.booleanhasUserAccessToOrders(String authenticatedUserId, String principalId) Checks if authenticated user provided by its id is able to access any orders related to the principal provided by its id.voidupdateStatus(String code, String principalId, String status) Updates the status of the order.Methods inherited from class de.hybris.platform.b2ctelcofacades.order.impl.DefaultTmaOrderFacade
getNumberOfOrders, getOrderDetails, getOrderForCode, getOrdersByLimitAndOffset, getOrderService, getPrincipalServiceMethods inherited from class de.hybris.platform.commercefacades.order.impl.DefaultOrderFacade
convertPageData, getBaseStoreService, getCheckoutCustomerStrategy, getCommerceOrderService, getOrderConverter, getOrderDetailsForCode, getOrderDetailsForCodeWithoutUser, getOrderDetailsForGUID, getOrderDetailsForPotentialId, getOrderHistoryConverter, getOrderHistoryForStatuses, getPagedOrderHistoryForStatuses, getUserService, setBaseStoreService, setCheckoutCustomerStrategy, setCommerceOrderService, setCustomerAccountService, setOrderConverter, setOrderHistoryConverter, setUserServiceMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.hybris.platform.commercefacades.order.OrderFacade
getOrderDetailsForCode, getOrderDetailsForCodeWithoutUser, getOrderDetailsForGUID, getOrderDetailsForPotentialId, getOrderHistoryForStatuses, getPagedOrderHistoryForStatuses
-
Constructor Details
-
DefaultTmaB2bOrderFacade
public DefaultTmaB2bOrderFacade(PrincipalService principalService, TmaOrderService orderService, de.hybris.platform.servicelayer.model.ModelService modelService, de.hybris.platform.processengine.BusinessProcessService businessProcessService)
-
-
Method Details
-
getOrders
Description copied from interface:TmaOrderFacadeProvides the list of orders related to the principal provided by its id.- Specified by:
getOrdersin interfaceTmaOrderFacade- Overrides:
getOrdersin classDefaultTmaOrderFacade- Parameters:
principalId- The id of the principal having access to orders- Returns:
- the list of orders related to the principal provided by its id
-
updateStatus
Description copied from interface:TmaOrderFacadeUpdates the status of the order.- Specified by:
updateStatusin interfaceTmaOrderFacade- Overrides:
updateStatusin classDefaultTmaOrderFacade- Parameters:
code- The identifier of the orderprincipalId- The identifier of the principalstatus- The new status
-
hasUserAccessToOrders
Description copied from interface:TmaOrderFacadeChecks if authenticated user provided by its id is able to access any orders related to the principal provided by its id.- Specified by:
hasUserAccessToOrdersin interfaceTmaOrderFacade- Overrides:
hasUserAccessToOrdersin classDefaultTmaOrderFacade- Parameters:
authenticatedUserId- The identifier of the authenticated userprincipalId- The identifier of the principal for which the request was made- Returns:
- True if user can access orders related to the principal, false otherwise
-
canUserUpdateOrderStatus
public boolean canUserUpdateOrderStatus(String principalId, String authenticatedUserId, String orderId) Description copied from interface:TmaOrderFacadeChecks if a specific user can update the status of an order.- Specified by:
canUserUpdateOrderStatusin interfaceTmaOrderFacade- Overrides:
canUserUpdateOrderStatusin classDefaultTmaOrderFacade- Parameters:
principalId- The owner of the orderauthenticatedUserId- The identifier of the authenticated userorderId- The identifier of the order- Returns:
- True if authenticated user has the right to updated the status of the specified order, false otherwise
-
getCustomerAccountService
- Overrides:
getCustomerAccountServicein classde.hybris.platform.commercefacades.order.impl.DefaultOrderFacade
-
getModelService
protected de.hybris.platform.servicelayer.model.ModelService getModelService() -
getBusinessProcessService
protected de.hybris.platform.processengine.BusinessProcessService getBusinessProcessService()
-