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));
}
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;
}
Aggregations