Class CheckDocumentValidImpl
java.lang.Object
de.hybris.platform.sap.sapordermgmtbol.transaction.interactionobjects.impl.CheckDocumentValidImpl
- All Implemented Interfaces:
CheckDocumentValid
Standard implementation of the
CheckDocumentValid interface. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncollectHeaderMessages(SalesDocument salesDoc) Collects header messages of the sales document.booleanhasPermissions(Order order, String soldToId) Check if the specified soldTo is allowed to see an orderbooleanisDocumentSupported(SalesDocument salesDoc, DocumentType expectedDocType) Checks whether we can handle the transaction in WebChannel.
-
Constructor Details
-
CheckDocumentValidImpl
public CheckDocumentValidImpl()
-
-
Method Details
-
collectHeaderMessages
Description copied from interface:CheckDocumentValidCollects header messages of the sales document.- Specified by:
collectHeaderMessagesin interfaceCheckDocumentValid- 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:CheckDocumentValidChecks 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:
isDocumentSupportedin interfaceCheckDocumentValid- Parameters:
salesDoc- salesdocument to checkexpectedDocType- the expected document type- Returns:
- is relevant for WebChannel
- Throws:
CommunicationException- Is raised when the communication with the back end failed
-
hasPermissions
Description copied from interface:CheckDocumentValidCheck if the specified soldTo is allowed to see an order- Specified by:
hasPermissionsin interfaceCheckDocumentValid- Parameters:
order- BOL ordersoldToId- ID of a soldto-party- Returns:
- Has permissions?
-