@Test public void defaultNavTreeTest() { kieWorkbenchEntryPoint.setupMenu(); NavTree navTree = navigationManager.getNavTree(); NavGroup workbench = (NavGroup) navTree.getItemById(NavTreeDefinitions.GROUP_WORKBENCH); NavGroup deploy = (NavGroup) navTree.getItemById(NavTreeDefinitions.GROUP_DEPLOY); NavItem execServers = navTree.getItemById(NavTreeDefinitions.ENTRY_EXECUTION_SERVERS); NavGroup manage = (NavGroup) navTree.getItemById(NavTreeDefinitions.GROUP_MANAGE); NavItem processDef = navTree.getItemById(NavTreeDefinitions.ENTRY_PROCESS_DEFINITIONS); NavItem processInst = navTree.getItemById(NavTreeDefinitions.ENTRY_PROCESS_INSTANCES); NavItem taskAdmin = navTree.getItemById(NavTreeDefinitions.ENTRY_ADMINISTRATION_TASKS); NavItem jobs = navTree.getItemById(NavTreeDefinitions.ENTRY_JOBS); NavItem executionErrors = navTree.getItemById(NavTreeDefinitions.ENTRY_EXECUTION_ERRORS); NavGroup track = (NavGroup) navTree.getItemById(NavTreeDefinitions.GROUP_TRACK); NavItem tasks = navTree.getItemById(NavTreeDefinitions.ENTRY_TASKS_LIST); NavItem processDashboard = navTree.getItemById(NavTreeDefinitions.ENTRY_PROCESS_DASHBOARD); NavItem taskDashboard = navTree.getItemById(NavTreeDefinitions.ENTRY_TASK_DASHBOARD); assertNotNull(workbench); assertNotNull(deploy); assertNotNull(manage); assertNotNull(track); assertEquals(deploy.getParent(), workbench); assertEquals(manage.getParent(), workbench); assertEquals(track.getParent(), workbench); assertNotNull(execServers); assertEquals(execServers.getParent(), deploy); assertNotNull(processDef); assertNotNull(processInst); assertNotNull(taskAdmin); assertNotNull(jobs); assertNotNull(executionErrors); assertEquals(processDef.getParent(), manage); assertEquals(processInst.getParent(), manage); assertEquals(taskAdmin.getParent(), manage); assertEquals(jobs.getParent(), manage); assertEquals(executionErrors.getParent(), manage); assertNotNull(tasks); assertNotNull(processDashboard); assertNotNull(taskDashboard); assertEquals(tasks.getParent(), track); assertEquals(processDashboard.getParent(), track); assertEquals(taskDashboard.getParent(), track); }
@Override public void setupMenu() { navigationManager.init(() -> { navTreeDefinitions.initialize(()->{ NavTree navTree = navTreeDefinitions.buildDefaultNavTree(); navigationManager.setDefaultNavTree(navTree); initMenuBar(); workbench.removeStartupBlocker(KieWorkbenchEntryPoint.class); }); }); }
KieWorkbenchEntryPoint extends DefaultWorkbenchEntryPoint { @Override public void setupMenu() { navigationManager.init(() -> { navTreeDefinitions.initialize(()->{ NavTree navTree = navTreeDefinitions.buildDefaultNavTree(); navigationManager.setDefaultNavTree(navTree); initMenuBar(); workbench.removeStartupBlocker(KieWorkbenchEntryPoint.class); }); }); } }
KieWorkbenchEntryPoint extends DefaultWorkbenchEntryPoint { @Override public void setupMenu() { navigationManager.init(() -> { navTreeDefinitions.initialize(()->{ NavTree navTree = navTreeDefinitions.buildDefaultNavTree(); navigationManager.setDefaultNavTree(navTree); initMenuBar(); workbench.removeStartupBlocker(KieWorkbenchEntryPoint.class); }); }); } @Inject  KieWorkbenchEntryPoint(final Caller<AppConfigService> appConfigService,
                                  final ActivityBeansCache activityBeansCache,
                                  final DefaultWorkbenchFeaturesMenusHelper menusHelper,
                                  final ClientUserSystemManager userSystemManager,
                                  final WorkbenchMegaMenuPresenter menuBar,
                                  final Workbench workbench,
                                  final PermissionTreeSetup permissionTreeSetup,
                                  final DefaultAdminPageHelper adminPageHelper,
                                  final NavTreeDefinitions navTreeDefinitions,
                                  final NavigationManager navigationManager,
                                  final NavigationExplorerScreen navigationExplorerScreen,
                                  final DefaultWorkbenchErrorCallback defaultWorkbenchErrorCallback,
                                  final AppFormerJsBridge appFormerJsBridge,
                                  final HomeConfiguration homeConfiguration); }
KieWorkbenchEntryPoint extends DefaultWorkbenchEntryPoint { @Override public void setupMenu() { navigationManager.init(() -> { navTreeDefinitions.initialize(()->{ NavTree navTree = navTreeDefinitions.buildDefaultNavTree(); navigationManager.setDefaultNavTree(navTree); initMenuBar(); workbench.removeStartupBlocker(KieWorkbenchEntryPoint.class); }); }); } @Inject  KieWorkbenchEntryPoint(final Caller<AppConfigService> appConfigService,
                                  final ActivityBeansCache activityBeansCache,
                                  final DefaultWorkbenchFeaturesMenusHelper menusHelper,
                                  final ClientUserSystemManager userSystemManager,
                                  final WorkbenchMegaMenuPresenter menuBar,
                                  final Workbench workbench,
                                  final PermissionTreeSetup permissionTreeSetup,
                                  final DefaultAdminPageHelper adminPageHelper,
                                  final NavTreeDefinitions navTreeDefinitions,
                                  final NavigationManager navigationManager,
                                  final NavigationExplorerScreen navigationExplorerScreen,
                                  final DefaultWorkbenchErrorCallback defaultWorkbenchErrorCallback,
                                  final AppFormerJsBridge appFormerJsBridge,
                                  final HomeConfiguration homeConfiguration); @PostConstruct void init(); @Override void setupMenu(); void onNavTreeChanged(@Observes final NavTreeChangedEvent event); void onAuthzPolicyChanged(@Observes final SaveRoleEvent event); void onAuthzPolicyChanged(@Observes final SaveGroupEvent event); }
KieWorkbenchEntryPoint extends DefaultWorkbenchEntryPoint { @Override public void setupMenu() { navigationManager.init(() -> { navTreeDefinitions.initialize(()->{ NavTree navTree = navTreeDefinitions.buildDefaultNavTree(); navigationManager.setDefaultNavTree(navTree); initMenuBar(); workbench.removeStartupBlocker(KieWorkbenchEntryPoint.class); }); }); } @Inject  KieWorkbenchEntryPoint(final Caller<AppConfigService> appConfigService,
                                  final ActivityBeansCache activityBeansCache,
                                  final DefaultWorkbenchFeaturesMenusHelper menusHelper,
                                  final ClientUserSystemManager userSystemManager,
                                  final WorkbenchMegaMenuPresenter menuBar,
                                  final Workbench workbench,
                                  final PermissionTreeSetup permissionTreeSetup,
                                  final DefaultAdminPageHelper adminPageHelper,
                                  final NavTreeDefinitions navTreeDefinitions,
                                  final NavigationManager navigationManager,
                                  final NavigationExplorerScreen navigationExplorerScreen,
                                  final DefaultWorkbenchErrorCallback defaultWorkbenchErrorCallback,
                                  final AppFormerJsBridge appFormerJsBridge,
                                  final HomeConfiguration homeConfiguration); @PostConstruct void init(); @Override void setupMenu(); void onNavTreeChanged(@Observes final NavTreeChangedEvent event); void onAuthzPolicyChanged(@Observes final SaveRoleEvent event); void onAuthzPolicyChanged(@Observes final SaveGroupEvent event);  }