Class OrderGeneratorServiceImpl
java.lang.Object
ch.tocco.nice2.optional.order.impl.action.invoice.OrderGeneratorServiceImpl
- All Implemented Interfaces:
OrderGeneratorService
-
Constructor Summary
ConstructorDescriptionOrderGeneratorServiceImpl
(CommandExecutor executor, OrderGeneratorTaskProvider taskProvider, InvoiceRecipientService invoiceRecipientService, InvoicePropertiesService invoicePropertiesService) -
Method Summary
Modifier and TypeMethodDescription@Nullable String
checkEntities
(com.google.common.collect.Multimap<String, Entity> entitiesToCheck, String taskName) boolean
checkRoleAccess
(com.google.common.collect.Multimap<String, Entity> entitiesToCheck) createInvoiceRecipient
(Entity sourceEntity) Create anInvoiceRecipient
for a given source entity.createOrderGeneratorBean
(Entity source, List<Entity> billingPositions) CreateOrderGeneratorBean
instance for given billing positions.void
generateOrders
(List<OrderGeneratorBean> orderBeans, Entity settings) getDefaultLanguage
(com.google.common.collect.Multimap<String, Entity> entitiesToInvoice) getFailingEntities
(com.google.common.collect.Multimap<String, Entity> entitiesToCheck, String taskName) void
-
Constructor Details
-
OrderGeneratorServiceImpl
public OrderGeneratorServiceImpl(CommandExecutor executor, OrderGeneratorTaskProvider taskProvider, InvoiceRecipientService invoiceRecipientService, InvoicePropertiesService invoicePropertiesService)
-
-
Method Details
-
generateOrders
- Specified by:
generateOrders
in interfaceOrderGeneratorService
-
checkEntities
@Nullable public @Nullable String checkEntities(com.google.common.collect.Multimap<String, Entity> entitiesToCheck, String taskName) - Specified by:
checkEntities
in interfaceOrderGeneratorService
-
getFailingEntities
public List<Entity> getFailingEntities(com.google.common.collect.Multimap<String, Entity> entitiesToCheck, String taskName) - Specified by:
getFailingEntities
in interfaceOrderGeneratorService
-
getDefaultLanguage
public Optional<Entity> getDefaultLanguage(com.google.common.collect.Multimap<String, Entity> entitiesToInvoice) - Specified by:
getDefaultLanguage
in interfaceOrderGeneratorService
-
createOrderGeneratorBean
public Collection<OrderGeneratorBean> createOrderGeneratorBean(Entity source, List<Entity> billingPositions) Description copied from interface:OrderGeneratorService
CreateOrderGeneratorBean
instance for given billing positions.- Specified by:
createOrderGeneratorBean
in interfaceOrderGeneratorService
-
createInvoiceRecipient
Description copied from interface:OrderGeneratorService
Create anInvoiceRecipient
for a given source entity.- Specified by:
createInvoiceRecipient
in interfaceOrderGeneratorService
-
checkRoleAccess
- Specified by:
checkRoleAccess
in interfaceOrderGeneratorService
-
setOrderGeneratorBeanTask
@Autowired(required=false) public void setOrderGeneratorBeanTask(List<CreateOrderGeneratorBeanTask> tasks)
-