Class DefaultTmaOrderFacade
java.lang.Object
de.hybris.platform.commercefacades.order.impl.DefaultOrderFacade
de.hybris.platform.b2ctelcofacades.order.impl.DefaultTmaOrderFacade
- All Implemented Interfaces:
TmaOrderFacade,de.hybris.platform.commercefacades.order.OrderFacade
- Direct Known Subclasses:
DefaultTmaB2bOrderFacade
public class DefaultTmaOrderFacade
extends de.hybris.platform.commercefacades.order.impl.DefaultOrderFacade
implements TmaOrderFacade
Default implementation of
TmaOrderFacade- Since:
- 2102
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultTmaOrderFacade(PrincipalService principalService, TmaOrderService orderService) -
Method Summary
Modifier and TypeMethodDescriptionbooleancanUserUpdateOrderStatus(String principalId, String authenticatedUserId, String orderId) Checks if a specific user can update the status of an order.final IntegergetNumberOfOrders(TmaProductOrderFilterContextData productOrderFilterContextData) Retrieves the total number of product orders found for the given filtering context.getOrderDetails(String code, String relatedPartyId) Returns the details of an Order.getOrderForCode(String code) Returns the details of an order.Provides the list of orders related to the principal provided by its id.getOrdersByLimitAndOffset(TmaProductOrderFilterContextData productOrderFilterContextData, Integer offset, Integer limit) Retrieves a list of product orders filtered by contextprotected TmaOrderServiceprotected PrincipalServicebooleanhasUserAccessToOrders(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.commercefacades.order.impl.DefaultOrderFacade
convertPageData, getBaseStoreService, getCheckoutCustomerStrategy, getCustomerAccountService, getOrderConverter, getOrderDetailsForCode, getOrderDetailsForCodeWithoutUser, getOrderDetailsForGUID, getOrderHistoryConverter, getOrderHistoryForStatuses, getPagedOrderHistoryForStatuses, getUserService, setBaseStoreService, setCheckoutCustomerStrategy, 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, getOrderHistoryForStatuses, getPagedOrderHistoryForStatuses
-
Constructor Details
-
DefaultTmaOrderFacade
-
-
Method Details
-
getOrderDetails
Description copied from interface:TmaOrderFacadeReturns the details of an Order.- Specified by:
getOrderDetailsin interfaceTmaOrderFacade- Parameters:
code- The id of the Order for which to retrieve the detail.relatedPartyId- The id of the customer who owns the order- Returns:
- The detail of the order with matching code and relatedPartyId
-
getOrders
Description copied from interface:TmaOrderFacadeProvides the list of orders related to the principal provided by its id.- Specified by:
getOrdersin interfaceTmaOrderFacade- 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
public void updateStatus(String code, String principalId, String status) throws IllegalAccessException Description copied from interface:TmaOrderFacadeUpdates the status of the order.- Specified by:
updateStatusin interfaceTmaOrderFacade- Parameters:
code- The identifier of the orderprincipalId- The identifier of the principalstatus- The new status- Throws:
IllegalAccessException- If the order status updated is not allowed
-
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- 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- 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
-
getOrdersByLimitAndOffset
public List<OrderData> getOrdersByLimitAndOffset(TmaProductOrderFilterContextData productOrderFilterContextData, Integer offset, Integer limit) Description copied from interface:TmaOrderFacadeRetrieves a list of product orders filtered by context- Specified by:
getOrdersByLimitAndOffsetin interfaceTmaOrderFacade- Parameters:
productOrderFilterContextData- the context.offset- the offset represents the position in list from where the result list will start.limit- the limit represents the number of entries that will be selected for the result list.- Returns:
- the list of product orders.
-
getNumberOfOrders
public final Integer getNumberOfOrders(TmaProductOrderFilterContextData productOrderFilterContextData) Description copied from interface:TmaOrderFacadeRetrieves the total number of product orders found for the given filtering context.- Specified by:
getNumberOfOrdersin interfaceTmaOrderFacade- Parameters:
productOrderFilterContextData- the filtering context.- Returns:
- the number of product orders.
-
getOrderForCode
Description copied from interface:TmaOrderFacadeReturns the details of an order.- Specified by:
getOrderForCodein interfaceTmaOrderFacade- Parameters:
code- The id of the order for which to retrieve the detail.- Returns:
- The detail of the order with matching code.
-
getPrincipalService
-
getOrderService
-