Interface OrderActionService
- All Known Implementing Classes:
OrderActionServiceImpl
public interface OrderActionService
-
Method Summary
Modifier and TypeMethodDescriptionareOrders(String action, EntityExplorerActionSelection selection) verify if all orders inselectionare ready for the givenaction(e.g.booleanisAnyOrder(String action, EntityExplorerActionSelection selection) verify if the given $actionwould succeed for at least one entity in theselection
-
Method Details
-
areOrders
String areOrders(String action, EntityExplorerActionSelection selection) throws RpcExecutionException, PersistException verify if all orders inselectionare ready for the givenaction(e.g. cancelling or booking)- Parameters:
action- action to verify is valid forselectionin their current stateselection- the selected orders- Returns:
- returns a string containing the errors the
actionwould cause if executed on theselection. If it would succeed, an empty string is returned. - Throws:
RpcExecutionExceptionPersistException
-
isAnyOrder
verify if the given $actionwould succeed for at least one entity in theselection- Parameters:
action- action to verify is valid forselectionin their current stateselection- the selected orders- Returns:
- true if the given
actionis valid for at least one $selection
-