Tabnine Logo
ConfigItem.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
org.guvnor.structure.server.config.ConfigItem
constructor

Best Java code snippets using org.guvnor.structure.server.config.ConfigItem.<init> (Showing top 20 results out of 315)

origin: org.guvnor/guvnor-structure-backend

@Override
public ConfigItem<String> newConfigItem(final String name,
                    final String valueType) {
  final ConfigItem<String> stringConfigItem = new ConfigItem<String>();
  stringConfigItem.setName(name);
  stringConfigItem.setValue(valueType);
  return stringConfigItem;
}
origin: org.guvnor/guvnor-structure-backend

@Override
public ConfigItem<List> newConfigItem(String name,
                   List valueType) {
  final ConfigItem<List> listConfigItem = new ConfigItem<List>();
  listConfigItem.setName(name);
  listConfigItem.setValue(valueType);
  return listConfigItem;
}
origin: kiegroup/appformer

@Override
public ConfigItem<String> newConfigItem(final String name,
                    final String valueType) {
  final ConfigItem<String> stringConfigItem = new ConfigItem<String>();
  stringConfigItem.setName(name);
  stringConfigItem.setValue(valueType);
  return stringConfigItem;
}
origin: kiegroup/appformer

  @Override
  public ConfigItem<Object> newConfigItem(String name,
                      Object valueType) {
    final ConfigItem<Object> listConfigItem = new ConfigItem<Object>();
    listConfigItem.setName(name);
    listConfigItem.setValue(valueType);
    return listConfigItem;
  }
}
origin: kiegroup/appformer

@Override
public ConfigItem<Boolean> newConfigItem(final String name,
                     final boolean valueType) {
  final ConfigItem<Boolean> booleanConfigItem = new ConfigItem<Boolean>();
  booleanConfigItem.setName(name);
  booleanConfigItem.setValue(valueType);
  return booleanConfigItem;
}
origin: kiegroup/appformer

@Override
public ConfigItem<List> newConfigItem(String name,
                   List valueType) {
  final ConfigItem<List> listConfigItem = new ConfigItem<List>();
  listConfigItem.setName(name);
  listConfigItem.setValue(valueType);
  return listConfigItem;
}
origin: org.guvnor/guvnor-structure-backend

@Override
public ConfigItem<Boolean> newConfigItem(final String name,
                     final boolean valueType) {
  final ConfigItem<Boolean> booleanConfigItem = new ConfigItem<Boolean>();
  booleanConfigItem.setName(name);
  booleanConfigItem.setValue(valueType);
  return booleanConfigItem;
}
origin: org.guvnor/guvnor-structure-backend

  @Override
  public ConfigItem<Object> newConfigItem(String name,
                      Object valueType) {
    final ConfigItem<Object> listConfigItem = new ConfigItem<Object>();
    listConfigItem.setName(name);
    listConfigItem.setValue(valueType);
    return listConfigItem;
  }
}
origin: org.kie.workbench/kie-wb-common-cli-project-migration

private void addSpacesToRepoConfigs(Map<String, String> orgUnitByRepo, List<ConfigGroup> repoConfigs) {
  system.out().println("Updating repository configurations with spaces...");
  configService.startBatch();
  repoConfigs.forEach(group -> {
    String space = orgUnitByRepo.get(group.getName());
    if (space != null) {
      system.out().printf("Configuring repo [%s] in space [%s]...\n", group.getName(), space);
      ConfigItem<Object> item = new ConfigItem<>();
      item.setName(EnvironmentParameters.SPACE);
      item.setValue(space);
      group.setConfigItem(item);
      configService.updateConfiguration(group);
    }
  });
  configService.endBatch();
  system.out().println("Finished updating repository configurations.");
}
origin: org.guvnor/guvnor-structure-backend

  private ConfigGroup getConfigGroup() {
    ConfigGroup repoConfig = new ConfigGroup();
    ConfigItem configItem = new ConfigItem();
    configItem.setName(EnvironmentParameters.SCHEME);
    repoConfig.addConfigItem(configItem);
    return repoConfig;
  }
}
origin: org.uberfire/uberfire-structure-backend

@Test
public void testNewRepositoryReplaceIfExists() {
  rootDirectories.add(createPath("default://master@uf-playground"));
  ConfigGroup configGroup = getConfigGroup();
  configGroup.setName("test");
  ConfigItem configItem = new ConfigItem();
  configItem.setName("replaceIfExists");
  configItem.setValue(true);
  configGroup.setConfigItem(configItem);
  final IOService service = getServiceToTest();
  when(service.newFileSystem(any(URI.class),
      anyMap()))
      .thenThrow(FileSystemAlreadyExistsException.class)
      .thenReturn(fileSystem);
  when(service.getFileSystem(any(URI.class))).thenReturn(fileSystem);
  helper.newRepository(configGroup);
  verify(service, times(1)).delete(any(Path.class));
  verify(service, times(2)).newFileSystem(any(URI.class), anyMap());
}
origin: org.guvnor/guvnor-structure-backend

@Test
public void testNewRepositoryReplaceIfExists() throws Exception {
  rootDirectories.add(createPath("default://master@uf-playground"));
  ConfigGroup configGroup = getConfigGroup();
  configGroup.setName("test");
  ConfigItem configItem = new ConfigItem();
  configItem.setName("replaceIfExists");
  configItem.setValue(true);
  configGroup.setConfigItem(configItem);
  when(ioService.newFileSystem(any(URI.class),
                 anyMap()))
      .thenThrow(FileSystemAlreadyExistsException.class)
      .thenReturn(fileSystem);
  when(ioService.getFileSystem(any(URI.class))).thenReturn(fileSystem);
  helper.newRepository(configGroup);
  verify(ioService,
      times(1)).delete(any(Path.class));
  verify(ioService,
      times(2)).newFileSystem(any(URI.class),
                  anyMap());
}
origin: kiegroup/appformer

@Test
public void testNewRepositoryReplaceIfExists() {
  rootDirectories.add(createPath("default://master@uf-playground"));
  ConfigGroup configGroup = getConfigGroup();
  configGroup.setName("test");
  ConfigItem configItem = new ConfigItem();
  configItem.setName("replaceIfExists");
  configItem.setValue(true);
  configGroup.setConfigItem(configItem);
  final IOService service = getServiceToTest();
  when(service.newFileSystem(any(URI.class),
      anyMap()))
      .thenThrow(FileSystemAlreadyExistsException.class)
      .thenReturn(fileSystem);
  when(service.getFileSystem(any(URI.class))).thenReturn(fileSystem);
  helper.newRepository(configGroup);
  verify(service, times(1)).delete(any(Path.class));
  verify(service, times(2)).newFileSystem(any(URI.class), anyMap());
}
origin: org.guvnor/guvnor-structure-backend

@Test
public void testNewRepositoryDontReplaceIfExists() throws Exception {
  rootDirectories.add(createPath("default://master@uf-playground"));
  ConfigGroup configGroup = getConfigGroup();
  configGroup.setName("test");
  ConfigItem configItem = new ConfigItem();
  configItem.setName("replaceIfExists");
  configItem.setValue(false);
  configGroup.setConfigItem(configItem);
  when(ioService.newFileSystem(any(URI.class),
                 anyMap()))
      .thenThrow(FileSystemAlreadyExistsException.class);
  when(ioService.getFileSystem(any(URI.class))).thenReturn(fileSystem);
  helper.newRepository(configGroup);
  verify(ioService,
      never()).delete(any(Path.class));
  verify(ioService,
      times(1)).newFileSystem(any(URI.class),
                  anyMap());
}
origin: org.uberfire/uberfire-structure-backend

  protected ConfigGroup getConfigGroup() {
    ConfigGroup repoConfig = new ConfigGroup();
    {
      ConfigItem configItem = new ConfigItem();
      configItem.setName(EnvironmentParameters.SCHEME);
      repoConfig.addConfigItem(configItem);
    }
    {
      ConfigItem configItem = new ConfigItem();
      configItem.setName(EnvironmentParameters.SPACE);
      configItem.setValue("space");
      repoConfig.addConfigItem(configItem);
    }

    return repoConfig;
  }
}
origin: kiegroup/appformer

  protected ConfigGroup getConfigGroup() {
    ConfigGroup repoConfig = new ConfigGroup();
    {
      ConfigItem configItem = new ConfigItem();
      configItem.setName(EnvironmentParameters.SCHEME);
      repoConfig.addConfigItem(configItem);
    }
    {
      ConfigItem configItem = new ConfigItem();
      configItem.setName(EnvironmentParameters.SPACE);
      configItem.setValue("space");
      repoConfig.addConfigItem(configItem);
    }

    return repoConfig;
  }
}
origin: kiegroup/appformer

@Test
public void testNewRepositoryDontReplaceIfExists() {
  rootDirectories.add(createPath("default://master@uf-playground"));
  ConfigGroup configGroup = getConfigGroup();
  configGroup.setName("test");
  ConfigItem configItem = new ConfigItem();
  configItem.setName("replaceIfExists");
  configItem.setValue(false);
  configGroup.setConfigItem(configItem);
  final IOService service = getServiceToTest();
  when(service.newFileSystem(any(URI.class),
      anyMap()))
      .thenThrow(FileSystemAlreadyExistsException.class);
  when(service.getFileSystem(any(URI.class))).thenReturn(fileSystem);
  helper.newRepository(configGroup);
  verify(service,
      never()).delete(any(Path.class));
  verify(service,
      times(1)).newFileSystem(any(URI.class),
      anyMap());
}
origin: org.uberfire/uberfire-structure-backend

@Test
public void testNewRepositoryDontReplaceIfExists() {
  rootDirectories.add(createPath("default://master@uf-playground"));
  ConfigGroup configGroup = getConfigGroup();
  configGroup.setName("test");
  ConfigItem configItem = new ConfigItem();
  configItem.setName("replaceIfExists");
  configItem.setValue(false);
  configGroup.setConfigItem(configItem);
  final IOService service = getServiceToTest();
  when(service.newFileSystem(any(URI.class),
      anyMap()))
      .thenThrow(FileSystemAlreadyExistsException.class);
  when(service.getFileSystem(any(URI.class))).thenReturn(fileSystem);
  helper.newRepository(configGroup);
  verify(service,
      never()).delete(any(Path.class));
  verify(service,
      times(1)).newFileSystem(any(URI.class),
      anyMap());
}
origin: kiegroup/appformer

  protected ConfigGroup getConfigGroup() {
    ConfigGroup repoConfig = super.getConfigGroup();

    {
      ConfigItem<String> configItem = new ConfigItem<>();
      configItem.setName(EnvironmentParameters.AVOID_INDEX);
      configItem.setValue("true");
      repoConfig.addConfigItem(configItem);
    }

    return repoConfig;
  }
}
origin: org.uberfire/uberfire-structure-backend

  protected ConfigGroup getConfigGroup() {
    ConfigGroup repoConfig = super.getConfigGroup();

    {
      ConfigItem<String> configItem = new ConfigItem<>();
      configItem.setName(EnvironmentParameters.AVOID_INDEX);
      configItem.setValue("true");
      repoConfig.addConfigItem(configItem);
    }

    return repoConfig;
  }
}
org.guvnor.structure.server.configConfigItem<init>

Popular methods of ConfigItem

  • getValue
  • getName
  • setValue
  • setName
  • getColumnDescribe
  • getColumnType
  • getDisplayValue
  • isList
  • isNull
  • isUpdate
  • setDisplayValue
  • setDisplayValue

Popular in Java

  • Creating JSON documents from java classes using gson
  • putExtra (Intent)
  • getSupportFragmentManager (FragmentActivity)
  • onCreateOptionsMenu (Activity)
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
  • 14 Best Plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now