method2testcases
stringlengths
118
6.63k
### Question: DMNDiagramEditor extends AbstractProjectDiagramEditor<DMNDiagramResourceType> { public void onDataTypePageNavTabActiveEvent(final @Observes DataTypePageTabActiveEvent event) { kieView.getMultiPage().selectPage(DATA_TYPES_PAGE_INDEX); } @Inject DMNDiagramEditor(final View view, ...
### Question: DMNDiagramEditor extends AbstractProjectDiagramEditor<DMNDiagramResourceType> { @Override public void showDocks() { super.showDocks(); decisionNavigatorDock.open(); } @Inject DMNDiagramEditor(final View view, final TextEditorView xmlEditorView, fina...
### Question: DMNDiagramEditor extends AbstractProjectDiagramEditor<DMNDiagramResourceType> { @Override public void hideDocks() { super.hideDocks(); decisionNavigatorDock.close(); decisionNavigatorDock.resetContent(); } @Inject DMNDiagramEditor(final View view, final TextEditorView xmlEdito...
### Question: DMNDiagramEditor extends AbstractProjectDiagramEditor<DMNDiagramResourceType> { public void onMultiPageEditorSelectedPageEvent(final @Observes MultiPageEditorSelectedPageEvent event) { if (isSameSession()) { searchBarComponent.disableSearch(); } } @Inject DMNDiagramEditor(final View view, ...
### Question: DMNDiagramEditor extends AbstractProjectDiagramEditor<DMNDiagramResourceType> { public void onRefreshFormPropertiesEvent(final @Observes RefreshFormPropertiesEvent event) { searchBarComponent.disableSearch(); } @Inject DMNDiagramEditor(final View view, final TextEditorView xml...
### Question: OpenShiftClientServiceImpl implements OpenShiftClientService { @Override public DefaultSettings getDefaultSettings() { if (defaultSettingsInstance == null) { defaultSettingsInstance = new DefaultSettings(); defaultSettingsInstance.setValue(DefaultSettings.DEFAULT_OPEN_SHIFT_TEMPLATE, System.getProperty(De...
### Question: OpenShiftClientServiceImpl implements OpenShiftClientService { @Override public TemplateDescriptorModel getTemplateModel(final String url) { checkNotNull("url", url); OpenShiftTemplate template = new OpenShiftTemplate(url); List<TemplateParam> params = buildTemplateParams(template); final TemplateDescript...
### Question: OpenShiftProviderConfigConverter implements ProviderConfigConverter<ProviderConfiguration, OpenShiftProviderConfig> { @Override public OpenShiftProviderConfig toDomain(ProviderConfiguration modelValue) { if (modelValue == null) { return null; } OpenShiftProviderConfigImpl openShiftProviderConfig = new Ope...
### Question: OpenShiftProviderConfigConverter implements ProviderConfigConverter<ProviderConfiguration, OpenShiftProviderConfig> { @Override public ProviderConfiguration toModel(OpenShiftProviderConfig domainValue) { if (domainValue == null) { return null; } final Map<String, Object> values = new HashMap<>(); values.p...
### Question: TemplateParamsTablePresenter { public void setItems(final List<TemplateParam> items) { dataProvider.getList().clear(); dataProvider.getList().addAll(items); dataProvider.flush(); } @Inject TemplateParamsTablePresenter(final View view); @PostConstruct void init(); void setItems(final List<TemplateParam> i...
### Question: TemplateParamsTablePresenter { public void clear() { dataProvider.getList().clear(); dataProvider.flush(); } @Inject TemplateParamsTablePresenter(final View view); @PostConstruct void init(); void setItems(final List<TemplateParam> items); void clear(); View getView(); void setParamChangeHandler(final Pa...
### Question: TemplateParamsTablePresenter { public View getView() { return view; } @Inject TemplateParamsTablePresenter(final View view); @PostConstruct void init(); void setItems(final List<TemplateParam> items); void clear(); View getView(); void setParamChangeHandler(final ParamChangeHandler paramChangeHandler); ...
### Question: TemplateParamsTablePresenter { protected void onParamChange(final String paramName, final String newValue, final String oldValue) { if (paramChangeHandler != null) { paramChangeHandler.onParamChange(paramName, newValue, oldValue); } } @Inject TemplateParamsTablePresenter(final View view); @PostConstruct ...
### Question: TemplateParamsFormPresenter extends AbstractHasContentChangeHandlers implements PipelineParamsForm { @Override public String getWizardTitle() { return view.getWizardTitle(); } @Inject TemplateParamsFormPresenter(final View view, final TemplateParamsTablePresenter pa...
### Question: TemplateParamsFormPresenter extends AbstractHasContentChangeHandlers implements PipelineParamsForm { @Override public View getView() { return view; } @Inject TemplateParamsFormPresenter(final View view, final TemplateParamsTablePresenter paramsEditorPresenter, ...
### Question: TemplateParamsFormPresenter extends AbstractHasContentChangeHandlers implements PipelineParamsForm { @Override public void initialise() { templateLoaded = false; openShiftClientService.call(getDefaultSettingsSuccessCallback(), popupHelper.getPopupErrorCallback()).getDefaultSettings(); } @Inject TemplateP...
### Question: TemplateParamsFormPresenter extends AbstractHasContentChangeHandlers implements PipelineParamsForm { @Override public void prepareView() { paramsEditorPresenter.getView().redraw(); } @Inject TemplateParamsFormPresenter(final View view, final TemplateParamsTablePrese...
### Question: TemplateParamsFormPresenter extends AbstractHasContentChangeHandlers implements PipelineParamsForm { @Override public void isComplete(final Callback<Boolean> callback) { boolean isValid = isRuntimeValid() && isTemplateValid() && isParamsValid() && isImageStreamsURLValid() && isSecretsFileURLValid(); callb...
### Question: TemplateParamsFormPresenter extends AbstractHasContentChangeHandlers implements PipelineParamsForm { @Override public void clear() { runtimeNameValid = false; clearParams(); view.clear(); } @Inject TemplateParamsFormPresenter(final View view, final TemplateParamsTab...
### Question: AutocompleteTextAreaDOMElementFactory extends BaseSingletonDOMElementFactory<String, MonacoEditorWidget, MonacoEditorDOMElement> { @Override protected MonacoEditorDOMElement createDomElementInternal(final MonacoEditorWidget widget, final GridLayer gridLayer, final GridWidget gridWidget) { final MonacoEdit...
### Question: OpenShiftProviderConfigPresenter extends AbstractHasContentChangeHandlers implements ProviderConfigurationForm { @Override public ProviderConfiguration buildProviderConfiguration() { final Map<String, Object> values = new HashMap<>(); values.put(MASTER_URL, getMasterURL()); values.put(USER, getUsername())...
### Question: OpenShiftProviderConfigPresenter extends AbstractHasContentChangeHandlers implements ProviderConfigurationForm { @Override public void clear() { view.clear(); } @Inject OpenShiftProviderConfigPresenter(final View view); @PostConstruct void init(); View getView(); @Override ProviderConfiguration buildProv...
### Question: OpenShiftProviderConfigPresenter extends AbstractHasContentChangeHandlers implements ProviderConfigurationForm { @Override public void load(final Provider provider) { clear(); view.setProviderName(provider.getKey().getId()); view.setMasterURL(getStringValue(provider.getConfiguration().getValues(), MASTER_...
### Question: OpenShiftProviderConfigPresenter extends AbstractHasContentChangeHandlers implements ProviderConfigurationForm { public String getProviderName() { return view.getProviderName(); } @Inject OpenShiftProviderConfigPresenter(final View view); @PostConstruct void init(); View getView(); @Override ProviderConf...
### Question: OpenShiftProviderConfigPresenter extends AbstractHasContentChangeHandlers implements ProviderConfigurationForm { public String getMasterURL() { return view.getMasterURL(); } @Inject OpenShiftProviderConfigPresenter(final View view); @PostConstruct void init(); View getView(); @Override ProviderConfigurat...
### Question: OpenShiftProviderConfigPresenter extends AbstractHasContentChangeHandlers implements ProviderConfigurationForm { public String getUsername() { return view.getUsername(); } @Inject OpenShiftProviderConfigPresenter(final View view); @PostConstruct void init(); View getView(); @Override ProviderConfiguratio...
### Question: OpenShiftProviderConfigPresenter extends AbstractHasContentChangeHandlers implements ProviderConfigurationForm { public String getPassword() { return view.getPassword(); } @Inject OpenShiftProviderConfigPresenter(final View view); @PostConstruct void init(); View getView(); @Override ProviderConfiguratio...
### Question: OpenShiftProviderConfigPresenter extends AbstractHasContentChangeHandlers implements ProviderConfigurationForm { public void isValid(final Callback<Boolean> callback) { boolean isValid = !isEmpty(view.getProviderName()) && !isEmpty(view.getMasterURL()) && !isEmpty(view.getUsername()) && !isEmpty(view.getP...
### Question: OpenShiftProviderConfigPresenter extends AbstractHasContentChangeHandlers implements ProviderConfigurationForm { @Override public void disable() { view.disable(); } @Inject OpenShiftProviderConfigPresenter(final View view); @PostConstruct void init(); View getView(); @Override ProviderConfiguration build...
### Question: TextAreaSingletonDOMElementFactory extends BaseSingletonDOMElementFactory<String, TextArea, TextAreaDOMElement> { @Override protected KeyDownHandlerCommon destroyOrFlushKeyDownHandler() { return new KeyDownHandlerCommon(gridPanel, gridLayer, gridWidget, this, true, false, true); } TextAreaSingletonDOMElem...
### Question: WildflyClientServiceImpl implements WildflyClientService { @Override public TestConnectionResult testConnection(final String host, final int port, final int managementPort, final String user, final String password) { final TestConnectionResult result = new TestConnectionResult(); try { final String testMe...
### Question: WildflyProviderConfigConverter implements ProviderConfigConverter<ProviderConfiguration, WildflyProviderConfig> { @Override public WildflyProviderConfig toDomain(ProviderConfiguration modelValue) { if (modelValue == null) { return null; } return new WildflyProviderConfigImpl(modelValue.getId(), getStringV...
### Question: WildflyProviderConfigConverter implements ProviderConfigConverter<ProviderConfiguration, WildflyProviderConfig> { @Override public ProviderConfiguration toModel(WildflyProviderConfig domainValue) { if (domainValue == null) { return null; } final Map<String, Object> values = new HashMap<>(); values.put(PRO...
### Question: WF10ProviderConfigPresenter extends AbstractHasContentChangeHandlers implements ProviderConfigurationForm { @Override public ProviderConfiguration buildProviderConfiguration() { final Map<String, Object> values = new HashMap<>(); values.put(HOST, getHost()); values.put(PORT, getPort()); values.put(MANAGEM...
### Question: WF10ProviderConfigPresenter extends AbstractHasContentChangeHandlers implements ProviderConfigurationForm { @Override public void clear() { view.clear(); } @Inject WF10ProviderConfigPresenter(final View view, final Caller<WildflyClientService> wildflyClientService);...
### Question: WF10ProviderConfigPresenter extends AbstractHasContentChangeHandlers implements ProviderConfigurationForm { @Override public void load(final Provider provider) { clear(); view.setProviderName(provider.getKey().getId()); view.setHost(getStringValue(provider.getConfiguration().getValues(), HOST)); view.setP...
### Question: WF10ProviderConfigPresenter extends AbstractHasContentChangeHandlers implements ProviderConfigurationForm { public String getProviderName() { return view.getProviderName(); } @Inject WF10ProviderConfigPresenter(final View view, final Caller<WildflyClientService> wil...
### Question: DMNMarshallerImportsHelperStandaloneImpl implements DMNMarshallerImportsHelperStandalone { @Override public Map<Import, Definitions> getImportDefinitions(final Metadata metadata, final List<Import> imports) { final Map<Import, Definitions> importDefinitions = new HashMap<>(); if (imports.size() > 0) { for...
### Question: WF10ProviderConfigPresenter extends AbstractHasContentChangeHandlers implements ProviderConfigurationForm { public String getHost() { return view.getHost(); } @Inject WF10ProviderConfigPresenter(final View view, final Caller<WildflyClientService> wildflyClientServic...
### Question: WF10ProviderConfigPresenter extends AbstractHasContentChangeHandlers implements ProviderConfigurationForm { public String getPort() { return view.getPort(); } @Inject WF10ProviderConfigPresenter(final View view, final Caller<WildflyClientService> wildflyClientServic...
### Question: WF10ProviderConfigPresenter extends AbstractHasContentChangeHandlers implements ProviderConfigurationForm { public String getManagementPort() { return view.getManagementPort(); } @Inject WF10ProviderConfigPresenter(final View view, final Caller<WildflyClientService>...
### Question: WF10ProviderConfigPresenter extends AbstractHasContentChangeHandlers implements ProviderConfigurationForm { public String getUsername() { return view.getUsername(); } @Inject WF10ProviderConfigPresenter(final View view, final Caller<WildflyClientService> wildflyClie...
### Question: WF10ProviderConfigPresenter extends AbstractHasContentChangeHandlers implements ProviderConfigurationForm { public String getPassword() { return view.getPassword(); } @Inject WF10ProviderConfigPresenter(final View view, final Caller<WildflyClientService> wildflyClie...
### Question: WF10ProviderConfigPresenter extends AbstractHasContentChangeHandlers implements ProviderConfigurationForm { public void isValid(final Callback<Boolean> callback) { boolean isValid = !isEmpty(view.getProviderName()) && !isEmpty(view.getHost()) && isValidPort(view.getPort()) && isValidPort(view.getManagemen...
### Question: WF10ProviderConfigPresenter extends AbstractHasContentChangeHandlers implements ProviderConfigurationForm { @Override public void disable() { view.disable(); } @Inject WF10ProviderConfigPresenter(final View view, final Caller<WildflyClientService> wildflyClientServi...
### Question: WF10ProviderConfigPresenter extends AbstractHasContentChangeHandlers implements ProviderConfigurationForm { protected void onTestConnection() { if (validateRemoteParams()) { wildflyClientService.call(getTestConnectionSuccessCallback(), getTestConnectionErrorCallback()).testConnection(view.getHost(), getIn...
### Question: RuntimeProvisioningServiceBackendImpl implements RuntimeProvisioningServiceBackend { @Override public List<ProviderType> getProviderTypes(Integer page, Integer pageSize, String sort, boolean sortOrder) throws BusinessException { return runtimeProvisioningService.getProviderTypes(page, pageSize, sort, sort...
### Question: RuntimeProvisioningServiceBackendImpl implements RuntimeProvisioningServiceBackend { @Override public List<Provider> getProviders(Integer page, Integer pageSize, String sort, boolean sortOrder) throws BusinessException { return runtimeProvisioningService.getProviders(page, pageSize, sort, sortOrder).getIt...
### Question: RuntimeProvisioningServiceBackendImpl implements RuntimeProvisioningServiceBackend { @Override public List<Runtime> getRuntimes(Integer page, Integer pageSize, String sort, boolean sortOrder) throws BusinessException { return runtimeProvisioningService.getRuntimes(page, pageSize, sort, sortOrder).getItems...
### Question: RuntimeProvisioningServiceBackendImpl implements RuntimeProvisioningServiceBackend { @Override public void registerProvider(ProviderConfig conf) throws BusinessException { runtimeProvisioningService.registerProvider(conf); } RuntimeProvisioningServiceBackendImpl(); @Inject RuntimeProvisioningServiceBacke...
### Question: RuntimeProvisioningServiceBackendImpl implements RuntimeProvisioningServiceBackend { @Override public void unregisterProvider(String name) throws BusinessException { runtimeProvisioningService.deregisterProvider(name); } RuntimeProvisioningServiceBackendImpl(); @Inject RuntimeProvisioningServiceBackendIm...
### Question: RuntimeProvisioningServiceBackendImpl implements RuntimeProvisioningServiceBackend { @Override public String newRuntime(RuntimeConfig conf) throws BusinessException { return runtimeProvisioningService.newRuntime(conf); } RuntimeProvisioningServiceBackendImpl(); @Inject RuntimeProvisioningServiceBackendIm...
### Question: RuntimeProvisioningServiceBackendImpl implements RuntimeProvisioningServiceBackend { @Override public void destroyRuntime(String runtimeId, boolean forced) throws BusinessException { runtimeProvisioningService.destroyRuntime(runtimeId, forced); } RuntimeProvisioningServiceBackendImpl(); @Inject RuntimePr...
### Question: RuntimeProvisioningServiceBackendImpl implements RuntimeProvisioningServiceBackend { @Override public void startRuntime(String runtimeId) throws BusinessException { runtimeProvisioningService.startRuntime(runtimeId); } RuntimeProvisioningServiceBackendImpl(); @Inject RuntimeProvisioningServiceBackendImpl...
### Question: RuntimeProvisioningServiceBackendImpl implements RuntimeProvisioningServiceBackend { @Override public void stopRuntime(String runtimeId) throws BusinessException { runtimeProvisioningService.stopRuntime(runtimeId); } RuntimeProvisioningServiceBackendImpl(); @Inject RuntimeProvisioningServiceBackendImpl(f...
### Question: NameAndDataTypeDOMElementColumnRenderer extends BaseGridColumnSingletonDOMElementRenderer<String, W, E> { @Override public Group renderCell(final GridCell<String> cell, final GridBodyCellRenderContext context) { if (cell == null || cell.getValue() == null) { return null; } return RendererUtils.getExpressi...
### Question: RuntimeProvisioningServiceBackendImpl implements RuntimeProvisioningServiceBackend { @Override public void restartRuntime(String runtimeId) throws BusinessException { runtimeProvisioningService.restartRuntime(runtimeId); } RuntimeProvisioningServiceBackendImpl(); @Inject RuntimeProvisioningServiceBackend...
### Question: RuntimeProvisioningServiceBackendImpl implements RuntimeProvisioningServiceBackend { @Override public List<RuntimeQueryResultItem> executeQuery(RuntimeQuery query) throws BusinessException { return runtimeProvisioningService.executeQuery(query).getItems(); } RuntimeProvisioningServiceBackendImpl(); @Injec...
### Question: PipelineServiceBackendImpl implements PipelineServiceBackend { @Override public List<PipelineConfig> getPipelineConfigs(Integer page, Integer pageSize, String sort, boolean sortOrder) throws BusinessException { return pipelineService.getPipelineConfigs(page, pageSize, sort, sortOrder).getItems(); } Pipeli...
### Question: PipelineServiceBackendImpl implements PipelineServiceBackend { @Override public List<String> getPipelineNames(ProviderType providerType, Integer page, Integer pageSize, String sort, boolean sortOrder) throws BusinessException { return pipelineService.getPipelineNames(providerType.getProviderTypeName(), pr...
### Question: PipelineServiceBackendImpl implements PipelineServiceBackend { @Override public String newPipeline(PipelineConfig pipelineConfig, ProviderType providerType) throws BusinessException { return pipelineService.newPipeline(pipelineConfig, providerType); } PipelineServiceBackendImpl(); @Inject PipelineService...
### Question: PipelineServiceBackendImpl implements PipelineServiceBackend { @Override public void stopPipelineExecution(final String executionId) throws BusinessException { pipelineService.stopPipelineExecution(executionId); } PipelineServiceBackendImpl(); @Inject PipelineServiceBackendImpl(final PipelineService pipe...
### Question: PipelineServiceBackendImpl implements PipelineServiceBackend { @Override public void deletePipelineExecution(final String executionId) throws BusinessException { pipelineService.deletePipelineExecution(executionId); } PipelineServiceBackendImpl(); @Inject PipelineServiceBackendImpl(final PipelineService ...
### Question: ProvisioningScreensServiceImpl implements ProvisioningScreensService { @Override public ProvidersInfo getProvidersInfo(final ProviderTypeKey providerTypeKey) { checkNotNull("providerTypeKey", providerTypeKey); final ProviderType providerType = providerTypeService.getProviderType(providerTypeKey); if (prov...
### Question: EditablePopupHeaderMetaData implements EditableHeaderMetaData { @Override public void setColumnGroup(final String columnGroup) { throw new UnsupportedOperationException("Group cannot be set."); } EditablePopupHeaderMetaData(final CellEditorControlsView.Presenter cellEditorControls, ...
### Question: ProvisioningScreensServiceImpl implements ProvisioningScreensService { @Override public RuntimesInfo getRuntimesInfo(final ProviderKey providerKey) { checkNotNull("providerKey", providerKey); final Provider provider = providerService.getProvider(providerKey); if (provider == null) { return null; } final C...
### Question: ProvisioningScreensServiceImpl implements ProvisioningScreensService { @Override public boolean hasRuntimes(final ProviderKey providerKey) { checkNotNull("providerKey", providerKey); return !runtimeService.getRuntimeItems(providerKey).isEmpty(); } ProvisioningScreensServiceImpl(); @Inject ProvisioningScr...
### Question: ServiceUtil { public static final String getStringValue(Map map, String key) { return map.get(key) != null ? map.get(key).toString() : null; } static final String getStringValue(Map map, String key); }### Answer: @Test public void getGetStringValue() { Map v...
### Question: RuntimeServiceImpl implements RuntimeService { @Override public Collection<RuntimeListItem> getRuntimeItems(final ProviderKey providerKey) { checkNotNull("providerKey", providerKey); final RuntimeQuery query = RuntimeQueryBuilder.newInstance() .withProviderId(providerKey.getId()) .build(); return buildRun...
### Question: RuntimeServiceImpl implements RuntimeService { @Override public RuntimeListItem getRuntimeItem(final PipelineExecutionTraceKey pipelineExecutionTraceKey) { checkNotNull("pipelineExecutionTraceKey", pipelineExecutionTraceKey); final RuntimeQuery query = RuntimeQueryBuilder.newInstance() .withPipelineExecut...
### Question: EditablePopupHeaderMetaData implements EditableHeaderMetaData { @Override public void setTitle(final String title) { throw new UnsupportedOperationException("Title is derived and cannot be set on the HeaderMetaData."); } EditablePopupHeaderMetaData(final CellEditorControlsView.Presenter cellEditorControls...
### Question: RuntimeServiceImpl implements RuntimeService { @Override public Collection<PipelineKey> getPipelines(final ProviderTypeKey providerTypeKey) { checkNotNull("providerTypeKey", providerTypeKey); return pipelineService.getPipelineNames(new org.guvnor.ala.runtime.providers.ProviderType() { @Override public Str...
### Question: RuntimeServiceImpl implements RuntimeService { @Override public void stopPipelineExecution(final PipelineExecutionTraceKey pipelineExecutionTraceKey) { checkNotNull("pipelineExecutionTraceKey", pipelineExecutionTraceKey); pipelineService.stopPipelineExecution(pipelineExecutionTraceKey.getId()); pipelineEx...
### Question: RuntimeServiceImpl implements RuntimeService { @Override public void deletePipelineExecution(final PipelineExecutionTraceKey pipelineExecutionTraceKey) { checkNotNull("pipelineExecutionTraceKey", pipelineExecutionTraceKey); pipelineService.deletePipelineExecution(pipelineExecutionTraceKey.getId()); pipeli...
### Question: RuntimeServiceImpl implements RuntimeService { @Override public void stopRuntime(final RuntimeKey runtimeKey) { checkNotNull("runtimeKey", runtimeKey); runtimeProvisioningService.stopRuntime(runtimeKey.getId()); runtimeChangeEvent.fire(new RuntimeChangeEvent(RuntimeChange.STOPPED, runtimeKey)); } RuntimeS...
### Question: RuntimeServiceImpl implements RuntimeService { @Override public void startRuntime(final RuntimeKey runtimeKey) { checkNotNull("runtimeKey", runtimeKey); runtimeProvisioningService.startRuntime(runtimeKey.getId()); runtimeChangeEvent.fire(new RuntimeChangeEvent(RuntimeChange.STARTED, runtimeKey)); } Runtim...
### Question: EditablePopupHeaderMetaData implements EditableHeaderMetaData { @Override public void edit(final GridBodyCellEditContext context) { final int uiRowIndex = context.getRowIndex(); final int uiColumnIndex = context.getColumnIndex(); final double cellWidth = context.getCellWidth(); final double cellHeight = c...
### Question: ProviderTypeServiceImpl implements ProviderTypeService { @Override public Collection<ProviderType> getAvailableProviderTypes() { List<ProviderType> result = new ArrayList<>(); List<org.guvnor.ala.runtime.providers.ProviderType> providers = runtimeProvisioningService.getProviderTypes(0, 100, PROVIDER_TYPE_...
### Question: ProviderTypeServiceImpl implements ProviderTypeService { @Override public ProviderType getProviderType(final ProviderTypeKey providerTypeKey) { checkNotNull("providerTypeKey", providerTypeKey); return getAvailableProviderTypes().stream() .filter(providerType -> providerType.getKey().equals(providerTypeKey...
### Question: ProviderTypeServiceImpl implements ProviderTypeService { @Override public Collection<ProviderType> getEnabledProviderTypes() { return getProviderTypesStatus().entrySet().stream() .filter(entry -> ProviderTypeStatus.ENABLED.equals(entry.getValue())) .map(Map.Entry::getKey) .collect(Collectors.toList()); } ...
### Question: ProviderTypeServiceImpl implements ProviderTypeService { @Override public void enableProviderTypes(final Collection<ProviderType> providerTypes) { checkNotEmpty("providerTypes", providerTypes); providerTypes.forEach(providerType -> enableProviderType(providerType, true)); } ProviderTypeServiceImpl(); @Inj...
### Question: ProviderTypeServiceImpl implements ProviderTypeService { @Override public void disableProviderType(final ProviderType providerType) { checkNotNull("providerType", providerType); enableProviderType(providerType, false); } ProviderTypeServiceImpl(); @Inject ProviderTypeServiceImpl(final RuntimeProvisioning...
### Question: ProviderTypeServiceImpl implements ProviderTypeService { @Override public Map<ProviderType, ProviderTypeStatus> getProviderTypesStatus() { final Map<ProviderType, ProviderTypeStatus> result = new HashMap<>(); readProviderTypeEnablements().forEach((providerType, isEnabled) -> result.put(providerType, Boole...
### Question: BackendProviderHandlerRegistry extends AbstractProviderHandlerRegistry<BackendProviderHandler> { public BackendProviderHandler ensureHandler(ProviderTypeKey providerTypeKey) { final BackendProviderHandler handler = getProviderHandler(providerTypeKey); if (handler == null) { throw new RuntimeException("Bac...
### Question: PipelineInputBuilder { public Input build() { final Input input = new Input(); if (runtimeName != null) { input.put(RuntimeConfig.RUNTIME_NAME, runtimeName); } if (providerKey != null) { input.put(ProviderConfig.PROVIDER_NAME, providerKey.getId()); } if (params != null) { input.putAll(params); } return in...
### Question: ProviderConverterImpl implements ProviderConverter { @Override public Provider toModel(org.guvnor.ala.runtime.providers.Provider provider) { Provider result = null; if (provider != null) { ProviderTypeKey providerTypeKey = new ProviderTypeKey(provider.getProviderType().getProviderTypeName(), provider.getP...
### Question: ProviderConverterFactoryImpl implements ProviderConverterFactory { @Override public ProviderConfigConverter getProviderConfigConverter(final ProviderTypeKey providerTypeKey) { final BackendProviderHandler handler = handlerRegistry.ensureHandler(providerTypeKey); return handler.getProviderConfigConverter()...
### Question: ProviderConverterFactoryImpl implements ProviderConverterFactory { @Override public ProviderConverter getProviderConverter() { return providerConverter; } ProviderConverterFactoryImpl(); @Inject ProviderConverterFactoryImpl(final BackendProviderHandlerRegistry handlerRegistry); @Override ProviderConfigCo...
### Question: ProvisioningValidationServiceImpl implements ProvisioningValidationService { @Override public boolean isValidContainerName(final String containerName) { return containerName != null && containerName.matches("[A-Za-z0-9_\\-.:]+"); } ProvisioningValidationServiceImpl(); @Override boolean isValidContainerNam...
### Question: ProviderServiceImpl implements ProviderService { @Override public Collection<Provider> getProviders(final ProviderType providerType) { checkNotNull("providerType", providerType); return getAllProviders().stream() .filter(provider -> provider.getKey().getProviderTypeKey().equals(providerType.getKey())) .co...
### Question: ProviderServiceImpl implements ProviderService { @Override public Collection<ProviderKey> getProvidersKey(final ProviderType providerType) { return getProviders(providerType).stream() .map(AbstractHasKeyObject::getKey) .collect(toList()); } ProviderServiceImpl(); @Inject ProviderServiceImpl(final Runtime...
### Question: ProviderServiceImpl implements ProviderService { @Override public void createProvider(final ProviderType providerType, final ProviderConfiguration configuration) { checkNotNull("providerType", providerType); checkNotNull("providerType.providerTypeKey", providerType.getKey()); checkNotNull("configuration",...
### Question: EditablePopupHeaderMetaData implements EditableHeaderMetaData { @Override public void destroyResources() { editor.hide(); } EditablePopupHeaderMetaData(final CellEditorControlsView.Presenter cellEditorControls, final E editor); @Override void setColumnGroup(final Str...
### Question: ProviderServiceImpl implements ProviderService { @Override public void deleteProvider(final ProviderKey providerKey) { runtimeProvisioningService.unregisterProvider(providerKey.getId()); } ProviderServiceImpl(); @Inject ProviderServiceImpl(final RuntimeProvisioningServiceBackend runtimeProvisioningServic...
### Question: ProviderServiceImpl implements ProviderService { @Override public Provider getProvider(final ProviderKey providerKey) { List<org.guvnor.ala.runtime.providers.Provider> providers = runtimeProvisioningService.getProviders(0, 1000, PROVIDER_TYPE_NAME_SORT, true); Optional<Provider> result = Optional.empty();...
### Question: SourceServiceImpl implements SourceService { @Override public Collection<String> getOrganizationUnits() { return organizationalUnitService.getOrganizationalUnits().stream() .map(OrganizationalUnit::getName) .collect(Collectors.toList()); } SourceServiceImpl(); @Inject SourceServiceImpl(OrganizationalUnit...
### Question: SourceServiceImpl implements SourceService { @Override public Collection<String> getRepositories(final String organizationalUnit) { checkNotNull("organizationalUnit", organizationalUnit); OrganizationalUnit ou = organizationalUnitService.getOrganizationalUnit(organizationalUnit); if (ou == null) { return ...
### Question: SourceServiceImpl implements SourceService { @Override public Collection<String> getBranches(final Space space, final String repositoryName) { checkNotNull("repositoryName", repositoryName); final Repository repository = repositoryService.getRepositoryFromSpace(space, repositoryName); return repository !=...
### Question: SourceServiceImpl implements SourceService { @Override public Collection<Module> getModules(final Space space, final String repositoryAlias, final String branchName) { checkNotNull("repositoryAlias", repositoryAlias); checkNotNull("branchName", branchName); final Repository repository = repositoryService....
### Question: PipelineExecutionListener implements PipelineEventListener { @Override public void beforePipelineExecution(BeforePipelineExecutionEvent bpee) { pipelineStatusChangeEvent.fire(new PipelineStatusChangeEvent(new PipelineExecutionTraceKey(bpee.getExecutionId()), PipelineStatus.RUNNING)); } PipelineExecutionLi...