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 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()