Interface CheckDocumentValid
- All Known Implementing Classes:
CheckDocumentValidImpl
public interface CheckDocumentValid
In general this class deals with checks that influence if a document is considered as valid or not. In particular
this class provides checks for the following.
- Authority Checks on header level
- Checks for the basket, controlling if it can be checked out
- Checks to find out if an attached message belongs to checkout or basket
- Checks if a document can be handled in WEC. Certain documents, e.g. value contracts not referring to materials, cannot be handled.
-
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.
-
Method Details
-
collectHeaderMessages
Collects header messages of the sales document.- Parameters:
salesDoc- where the messages are collected- Returns:
- list of all header messages
-
hasPermissions
Check if the specified soldTo is allowed to see an order- Parameters:
order- BOL ordersoldToId- ID of a soldto-party- Returns:
- Has permissions?
-
isDocumentSupported
boolean isDocumentSupported(SalesDocument salesDoc, DocumentType expectedDocType) throws CommunicationException 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.- 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
-