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

public class DefaultTmaB2bOrderFacade extends DefaultTmaOrderFacade
Default implementation of TmaOrderFacade in B2B context.
Since:
2105
  • Constructor Summary

    Constructors
    Constructor
    Description
    DefaultTmaB2bOrderFacade(PrincipalService principalService, TmaOrderService orderService, de.hybris.platform.servicelayer.model.ModelService modelService, de.hybris.platform.processengine.BusinessProcessService businessProcessService)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    canUserUpdateOrderStatus(String principalId, String authenticatedUserId, String orderId)
    Checks if a specific user can update the status of an order.
    protected de.hybris.platform.processengine.BusinessProcessService
     
     
    protected de.hybris.platform.servicelayer.model.ModelService
     
    getOrders(String principalId)
    Provides the list of orders related to the principal provided by its id.
    boolean
    hasUserAccessToOrders(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.
    void
    updateStatus(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, getPrincipalService

    Methods 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, setUserService

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods 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

      public List<OrderData> getOrders(String principalId)
      Description copied from interface: TmaOrderFacade
      Provides the list of orders related to the principal provided by its id.
      Specified by:
      getOrders in interface TmaOrderFacade
      Overrides:
      getOrders in class DefaultTmaOrderFacade
      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)
      Description copied from interface: TmaOrderFacade
      Updates the status of the order.
      Specified by:
      updateStatus in interface TmaOrderFacade
      Overrides:
      updateStatus in class DefaultTmaOrderFacade
      Parameters:
      code - The identifier of the order
      principalId - The identifier of the principal
      status - The new status
    • hasUserAccessToOrders

      public boolean hasUserAccessToOrders(String authenticatedUserId, String principalId)
      Description copied from interface: TmaOrderFacade
      Checks if authenticated user provided by its id is able to access any orders related to the principal provided by its id.
      Specified by:
      hasUserAccessToOrders in interface TmaOrderFacade
      Overrides:
      hasUserAccessToOrders in class DefaultTmaOrderFacade
      Parameters:
      authenticatedUserId - The identifier of the authenticated user
      principalId - 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: TmaOrderFacade
      Checks if a specific user can update the status of an order.
      Specified by:
      canUserUpdateOrderStatus in interface TmaOrderFacade
      Overrides:
      canUserUpdateOrderStatus in class DefaultTmaOrderFacade
      Parameters:
      principalId - The owner of the order
      authenticatedUserId - The identifier of the authenticated user
      orderId - The identifier of the order
      Returns:
      True if authenticated user has the right to updated the status of the specified order, false otherwise
    • getCustomerAccountService

      protected TmaB2bCustomerAccountService getCustomerAccountService()
      Overrides:
      getCustomerAccountService in class de.hybris.platform.commercefacades.order.impl.DefaultOrderFacade
    • getModelService

      protected de.hybris.platform.servicelayer.model.ModelService getModelService()
    • getBusinessProcessService

      protected de.hybris.platform.processengine.BusinessProcessService getBusinessProcessService()