AccountingManagerRemote am = JFireEjb3Factory.getRemoteBean(AccountingManagerRemote.class, SecurityReflector.getInitialContextProperties());
Set<InvoiceID> invoiceIDs = CollectionUtil.castSet(articleContainerIDs);
return am.getInvoices(invoiceIDs, fetchGroups, maxFetchDepth);
}
if (articleContainerID instanceof OfferID) {
TradeManagerRemote tm = JFireEjb3Factory.getRemoteBean(TradeManagerRemote.class, SecurityReflector.getInitialContextProperties());
Set<OfferID> offerIDs = CollectionUtil.castSet(articleContainerIDs);
return tm.getOffers(offerIDs, fetchGroups, maxFetchDepth);
}
if (articleContainerID instanceof OrderID) {
TradeManagerRemote tm = JFireEjb3Factory.getRemoteBean(TradeManagerRemote.class, SecurityReflector.getInitialContextProperties());
Set<OrderID> orderIDs = CollectionUtil.castSet(articleContainerIDs);
return tm.getOrders(orderIDs, fetchGroups, maxFetchDepth);
}
if (articleContainerID instanceof ReceptionNoteID) {
StoreManagerRemote sm = JFireEjb3Factory.getRemoteBean(StoreManagerRemote.class, SecurityReflector.getInitialContextProperties());
Set<ReceptionNoteID> receptionNoteIDs = CollectionUtil.castSet(articleContainerIDs);
return sm.getReceptionNotes(receptionNoteIDs, fetchGroups, maxFetchDepth);