Class OrderActionServiceImpl
java.lang.Object
ch.tocco.nice2.optional.debitor.impl.action.order.OrderActionServiceImpl
- All Implemented Interfaces:
OrderActionService
-
Constructor Summary
ConstructorDescriptionOrderActionServiceImpl
(EntityExplorerActionSelectionService selectionService, OrderCheckHelperService orderCheckHelperService) -
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
-
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:OrderActionService
verify if all orders inselection
are ready for the givenaction
(e.g. cancelling or booking)- Specified by:
areOrders
in interfaceOrderActionService
- 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
Description copied from interface:OrderActionService
verify if the given $action
would succeed for at least one entity in theselection
- Specified by:
isAnyOrder
in interfaceOrderActionService
- 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
-