java.lang.Object
de.hybris.platform.sap.sapordermgmtbol.transaction.interactionobjects.impl.CheckDocumentValidImpl
All Implemented Interfaces:
CheckDocumentValid

public class CheckDocumentValidImpl extends Object implements CheckDocumentValid
Standard implementation of the CheckDocumentValid interface.
  • Constructor Details

    • CheckDocumentValidImpl

      public CheckDocumentValidImpl()
  • Method Details

    • collectHeaderMessages

      public MessageList collectHeaderMessages(SalesDocument salesDoc)
      Description copied from interface: CheckDocumentValid
      Collects header messages of the sales document.
      Specified by:
      collectHeaderMessages in interface CheckDocumentValid
      Parameters:
      salesDoc - where the messages are collected
      Returns:
      list of all header messages
    • isDocumentSupported

      public boolean isDocumentSupported(SalesDocument salesDoc, DocumentType expectedDocType) throws CommunicationException
      Description copied from interface: CheckDocumentValid
      Checks whether we can handle the transaction in WebChannel. Certain documents are excluded from MyAccount and search, but as navigation is also possible with the document ID, we need to cover this in the UI.
      Specified by:
      isDocumentSupported in interface CheckDocumentValid
      Parameters:
      salesDoc - salesdocument to check
      expectedDocType - the expected document type
      Returns:
      is relevant for WebChannel
      Throws:
      CommunicationException - Is raised when the communication with the back end failed
    • hasPermissions

      public boolean hasPermissions(Order order, String soldToId)
      Description copied from interface: CheckDocumentValid
      Check if the specified soldTo is allowed to see an order
      Specified by:
      hasPermissions in interface CheckDocumentValid
      Parameters:
      order - BOL order
      soldToId - ID of a soldto-party
      Returns:
      Has permissions?