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