Search in sources :

Example 1 with RepositoryConfiguration

use of org.guvnor.structure.organizationalunit.config.RepositoryConfiguration in project kie-wb-common by kiegroup.

the class ConfigGroupToSpaceInfoConverter method toRepositoryInfo.

private RepositoryInfo toRepositoryInfo(ConfigGroup configGroup) {
    final Map<String, Object> envMap = extractEnvMap(configGroup);
    RepositoryUtils.cleanUpCredentialsFromEnvMap(envMap);
    return new RepositoryInfo(configGroup.getName(), false, new RepositoryConfiguration(envMap));
}
Also used : RepositoryInfo(org.guvnor.structure.organizationalunit.config.RepositoryInfo) RepositoryConfiguration(org.guvnor.structure.organizationalunit.config.RepositoryConfiguration)

Example 2 with RepositoryConfiguration

use of org.guvnor.structure.organizationalunit.config.RepositoryConfiguration in project kie-wb-common by kiegroup.

the class BaseProjectImportService method createConfigGroup.

protected RepositoryInfo createConfigGroup(String alias, Map<String, Object> env) {
    RepositoryConfiguration configuration = new RepositoryConfiguration(env);
    configuration.add(EnvironmentParameters.AVOID_INDEX, true);
    configuration.add(EnvironmentParameters.SPACE, this.getDefaultSpace());
    RepositoryInfo repositoryConfig = new RepositoryInfo(alias, false, configuration);
    return repositoryConfig;
}
Also used : RepositoryInfo(org.guvnor.structure.organizationalunit.config.RepositoryInfo) RepositoryConfiguration(org.guvnor.structure.organizationalunit.config.RepositoryConfiguration)

Aggregations

RepositoryConfiguration (org.guvnor.structure.organizationalunit.config.RepositoryConfiguration)2 RepositoryInfo (org.guvnor.structure.organizationalunit.config.RepositoryInfo)2