@Test public void testResolveWithOUWithRepositoryNullQueryBusinessView() throws Exception { final ProjectExplorerContentQuery query = new ProjectExplorerContentQuery(repository, masterBranch); final ActiveOptions options = new ActiveOptions(); options.add(Option.TREE_NAVIGATOR); options.add(Option.EXCLUDE_HIDDEN_ITEMS); options.add(Option.BUSINESS_CONTENT); query.setOptions(options); resolver.resolve(query); }
public ProjectExplorerContent resolve(final ProjectExplorerContentQuery query) { final Content content = setupSelectedItems(query); setSelectedModule(content); setSelectedPackage(content); setSelectedItem(content); if (content.getSelectedProject() == null || content.getSelectedModule() == null) { return emptyModuleExplorerContent(content); } else { return moduleExplorerContentWithSelections(content, query.getOptions()); } }
ProjectExplorerContentResolver { public ProjectExplorerContent resolve(final ProjectExplorerContentQuery query) { final Content content = setupSelectedItems(query); setSelectedModule(content); setSelectedPackage(content); setSelectedItem(content); if (content.getSelectedProject() == null || content.getSelectedModule() == null) { return emptyModuleExplorerContent(content); } else { return moduleExplorerContentWithSelections(content, query.getOptions()); } } }
ProjectExplorerContentResolver { public ProjectExplorerContent resolve(final ProjectExplorerContentQuery query) { final Content content = setupSelectedItems(query); setSelectedModule(content); setSelectedPackage(content); setSelectedItem(content); if (content.getSelectedProject() == null || content.getSelectedModule() == null) { return emptyModuleExplorerContent(content); } else { return moduleExplorerContentWithSelections(content, query.getOptions()); } } @Inject  ProjectExplorerContentResolver(final KieModuleService moduleService,
                                          final ExplorerServiceHelper helper,
                                          final ExplorerServiceHelper explorerServiceHelper,
                                          final WorkspaceProjectService projectService); }
ProjectExplorerContentResolver { public ProjectExplorerContent resolve(final ProjectExplorerContentQuery query) { final Content content = setupSelectedItems(query); setSelectedModule(content); setSelectedPackage(content); setSelectedItem(content); if (content.getSelectedProject() == null || content.getSelectedModule() == null) { return emptyModuleExplorerContent(content); } else { return moduleExplorerContentWithSelections(content, query.getOptions()); } } @Inject  ProjectExplorerContentResolver(final KieModuleService moduleService,
                                          final ExplorerServiceHelper helper,
                                          final ExplorerServiceHelper explorerServiceHelper,
                                          final WorkspaceProjectService projectService); ProjectExplorerContent resolve(final ProjectExplorerContentQuery query); }
ProjectExplorerContentResolver { public ProjectExplorerContent resolve(final ProjectExplorerContentQuery query) { final Content content = setupSelectedItems(query); setSelectedModule(content); setSelectedPackage(content); setSelectedItem(content); if (content.getSelectedProject() == null || content.getSelectedModule() == null) { return emptyModuleExplorerContent(content); } else { return moduleExplorerContentWithSelections(content, query.getOptions()); } } @Inject  ProjectExplorerContentResolver(final KieModuleService moduleService,
                                          final ExplorerServiceHelper helper,
                                          final ExplorerServiceHelper explorerServiceHelper,
                                          final WorkspaceProjectService projectService); ProjectExplorerContent resolve(final ProjectExplorerContentQuery query);  }