Class OrderActionServiceImpl
java.lang.Object
ch.tocco.nice2.optional.debitor.impl.action.order.OrderActionServiceImpl
- All Implemented Interfaces:
OrderActionService
-
Constructor Summary
ConstructorsConstructorDescriptionOrderActionServiceImpl(EntityExplorerActionSelectionService selectionService, OrderCheckHelperService orderCheckHelperService) -
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
-
Constructor Details
-
OrderActionServiceImpl
public OrderActionServiceImpl(EntityExplorerActionSelectionService selectionService, OrderCheckHelperService orderCheckHelperService)
-
-
Method Details
-
areOrders
public String areOrders(String action, EntityExplorerActionSelection selection) throws RpcExecutionException, PersistException Description copied from interface:OrderActionServiceverify if all orders inselectionare ready for the givenaction(e.g. cancelling or booking)- Specified by:
areOrdersin interfaceOrderActionService- 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
Description copied from interface:OrderActionServiceverify if the given $actionwould succeed for at least one entity in theselection- Specified by:
isAnyOrderin interfaceOrderActionService- 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
-