Search in sources :

Example 1 with ImportImageIdsAction

use of eu.ggnet.dwoss.misc.action.imageid.ImportImageIdsAction in project dwoss by gg-net.

the class MiscActionFactory method createMetaActions.

@Override
public List<MetaAction> createMetaActions() {
    List<MetaAction> actions = new ArrayList<>();
    actions.add(new MetaAction("System", "Datenbank", new ProductSpecExportAction()));
    actions.add(new MetaAction("System", "Datenbank", new DatabaseValidationAction()));
    String s = "Listings";
    actions.add(new MetaAction(s, new AllSalesListingAction()));
    if (Dl.remote().contains(ListingActionService.class)) {
        Map<ListingActionConfiguration.Location, List<ListingActionConfiguration>> actionConfigs = Dl.remote().lookup(ListingActionService.class).listingActionConfigurations().stream().collect(Collectors.groupingBy(ListingActionConfiguration::getLocation));
        if (actionConfigs != null && !actionConfigs.isEmpty()) {
            for (List<ListingActionConfiguration> listingActionConfigurations : actionConfigs.values()) {
                actions.add(new MetaAction(s, null));
                for (ListingActionConfiguration listingActionConfiguration : listingActionConfigurations) {
                    actions.add(new MetaAction(s, new SalesListingCreateAction(listingActionConfiguration)));
                }
            }
        }
    } else {
        actions.add(new MetaAction(s, new SalesListingCreateAction(new ListingActionConfiguration(Type.XLS, Location.LOCAL, SalesChannel.RETAILER, "XLS für Händler"))));
        actions.add(new MetaAction(s, new SalesListingCreateAction(new ListingActionConfiguration(Type.XLS, Location.LOCAL, SalesChannel.CUSTOMER, "XLS für Endkunden"))));
        actions.add(new MetaAction(s, new SalesListingCreateAction(new ListingActionConfiguration(Type.PDF, Location.LOCAL, SalesChannel.RETAILER, "PDF für Händler"))));
        actions.add(new MetaAction(s, new SalesListingCreateAction(new ListingActionConfiguration(Type.PDF, Location.LOCAL, SalesChannel.CUSTOMER, "PDF für Endkunden"))));
    }
    List<Stock> allStocks = Dl.remote().lookup(StockAgent.class).findAll(Stock.class);
    for (Stock stock : allStocks) {
        for (ListType listType : MovementListingProducer.ListType.values()) {
            actions.add(new MetaAction("Lager/Logistik", "Versand & Abholung", new MovementAction(listType, stock)));
        }
        actions.add(new MetaAction("Lager/Logistik", "Inventur", new StockTakingAction(stock)));
    }
    actions.add(new MetaAction("Lager/Logistik", "Inventur", new StockTakingAction()));
    actions.add(new MetaAction("Artikelstamm", "Bilder Ids", new NextImageIdAction()));
    actions.add(new MetaAction("Artikelstamm", "Bilder Ids", new ExportImageIdsAction()));
    actions.add(new MetaAction("Artikelstamm", "Bilder Ids", new ExportImageIdsAction(SalesChannel.CUSTOMER)));
    actions.add(new MetaAction("Artikelstamm", "Bilder Ids", new ImportImageIdsAction()));
    actions.add(new MetaAction("Geschäftsführung", "Allgemeine Reporte", new UnitQualityReportAction()));
    actions.add(new MetaAction("Geschäftsführung", "Allgemeine Reporte", new ExportInputReportAction()));
    actions.add(new MetaAction("Geschäftsführung", new OpenSalesChannelManagerAction()));
    actions.add(new MetaAction("Geschäftsführung", "Abschluss Reporte", new ResolveRepaymentAction()));
    actions.add(new MetaAction("Hilfe", new AboutAction()));
    actions.add(new MetaAction("Hilfe", new ShowMandatorAction()));
    actions.add(new MetaAction("Kunden und Aufträge", new OpenSearchAction()));
    return actions;
}
Also used : ExportImageIdsAction(eu.ggnet.dwoss.misc.action.imageid.ExportImageIdsAction) ImportImageIdsAction(eu.ggnet.dwoss.misc.action.imageid.ImportImageIdsAction) ShowMandatorAction(eu.ggnet.dwoss.misc.help.ShowMandatorAction) ListType(eu.ggnet.dwoss.misc.ee.movement.MovementListingProducer.ListType) AboutAction(eu.ggnet.dwoss.misc.help.AboutAction) OpenSearchAction(eu.ggnet.dwoss.search.ui.OpenSearchAction) MovementAction(eu.ggnet.dwoss.misc.action.movement.MovementAction) SalesListingCreateAction(eu.ggnet.dwoss.misc.action.listings.SalesListingCreateAction) OpenSalesChannelManagerAction(eu.ggnet.dwoss.misc.saleschannel.OpenSalesChannelManagerAction) ListingActionConfiguration(eu.ggnet.dwoss.mandator.api.service.ListingActionConfiguration) ListingActionService(eu.ggnet.dwoss.mandator.api.service.ListingActionService) StockAgent(eu.ggnet.dwoss.stock.ee.StockAgent) AllSalesListingAction(eu.ggnet.dwoss.misc.action.listings.AllSalesListingAction) Stock(eu.ggnet.dwoss.stock.ee.entity.Stock) Location(eu.ggnet.dwoss.mandator.api.service.ListingActionConfiguration.Location)

Aggregations

ListingActionConfiguration (eu.ggnet.dwoss.mandator.api.service.ListingActionConfiguration)1 Location (eu.ggnet.dwoss.mandator.api.service.ListingActionConfiguration.Location)1 ListingActionService (eu.ggnet.dwoss.mandator.api.service.ListingActionService)1 ExportImageIdsAction (eu.ggnet.dwoss.misc.action.imageid.ExportImageIdsAction)1 ImportImageIdsAction (eu.ggnet.dwoss.misc.action.imageid.ImportImageIdsAction)1 AllSalesListingAction (eu.ggnet.dwoss.misc.action.listings.AllSalesListingAction)1 SalesListingCreateAction (eu.ggnet.dwoss.misc.action.listings.SalesListingCreateAction)1 MovementAction (eu.ggnet.dwoss.misc.action.movement.MovementAction)1 ListType (eu.ggnet.dwoss.misc.ee.movement.MovementListingProducer.ListType)1 AboutAction (eu.ggnet.dwoss.misc.help.AboutAction)1 ShowMandatorAction (eu.ggnet.dwoss.misc.help.ShowMandatorAction)1 OpenSalesChannelManagerAction (eu.ggnet.dwoss.misc.saleschannel.OpenSalesChannelManagerAction)1 OpenSearchAction (eu.ggnet.dwoss.search.ui.OpenSearchAction)1 StockAgent (eu.ggnet.dwoss.stock.ee.StockAgent)1 Stock (eu.ggnet.dwoss.stock.ee.entity.Stock)1