| | |
| | | /** Maps already-authorized, visible menus to implemented mobile pages. Does not grant permissions. */ |
| | | public final class MobileMenuAdapter { |
| | | private MobileMenuAdapter() { } |
| | | private static final Map<String, String> PAGES = Map.of( |
| | | "mes/pro/scan-in/index", "inbound", |
| | | "mes/pro/bagCode/index", "bags", |
| | | "mes/pro/pallet/index", "pallets", |
| | | "mes/pro/batch/index", "batches", |
| | | "wls/materialstock/index", "stock", |
| | | "mes/qc/seedQuality/index", "quality", |
| | | "mes/qc/seedQuality/record", "quality-records", |
| | | "wls/productsales/index", "sales"); |
| | | private static final Map<String, String> PAGES = Map.ofEntries( |
| | | Map.entry("mes/pro/scan-in/index", "inbound"), |
| | | Map.entry("mes/pro/bagCode/index", "bags"), |
| | | Map.entry("mes/pro/pallet/index", "pallets"), |
| | | Map.entry("mes/pro/batch/index", "batches"), |
| | | Map.entry("wls/materialstock/index", "stock"), |
| | | Map.entry("mes/qc/seedQuality/index", "quality"), |
| | | Map.entry("mes/qc/seedQuality/record", "quality-records"), |
| | | Map.entry("wls/productsales/index", "sales"), |
| | | Map.entry("wls/productissue/index", "productissue"), |
| | | Map.entry("wls/miscissue/index", "miscissue"), |
| | | Map.entry("wls/transfer/index", "transfer"), |
| | | Map.entry("wls/stocktaking/task/index", "stocktaking"), |
| | | Map.entry("wls/returnsales/index", "returnsales"), |
| | | Map.entry("wls/returnissue/index", "returnissue")); |
| | | |
| | | public static List<MenuVO> adapt(List<MenuVO> menus) { |
| | | List<MenuVO> result = new ArrayList<>(); |