public final class ImportExportUtil extends Object
Modifier and Type | Method and Description |
---|---|
static void |
doFixPassword(Properties props,
String passwordProperty) |
static void |
exportProperties(String folder,
Map<String,String> properties)
Writes the provided map to the folder in a property file.
|
static void |
exportProperties(String folder,
Map<String,String> properties,
Collection<String> ignoredProperties) |
static void |
exportProperties(String folder,
Map<String,String> properties,
Collection<String> ignoredProperties,
boolean includeInstallPath) |
static Properties |
fixDatabasePassword(Properties props) |
static void |
importProperties(String folder)
Loads the configuration from the properties files of the given folder replacing old install path
values by the current install path, using Unix separators to unify behavior in different os.
|
static void |
importProperties(String folder,
Collection<String> ignoreProperties) |
static void |
importProperties(String folder,
Collection<String> ignoreProperties,
UnaryOperator<Properties> propertiesFixer) |
static void |
importProperties(String folder,
Collection<String> ignoreProperties,
UnaryOperator<Properties> propertiesFixer,
IConfigurationPropertiesManager manager) |
static byte[] |
zipFolder(String folder)
Generates a zip file with the contents of the directory provided and returns it as a byte array.
|
public static byte[] zipFolder(String folder) throws IOException
IOException
public static void exportProperties(String folder, Map<String,String> properties) throws IOException
IOException
public static void exportProperties(String folder, Map<String,String> properties, Collection<String> ignoredProperties) throws IOException
IOException
public static void exportProperties(String folder, Map<String,String> properties, Collection<String> ignoredProperties, boolean includeInstallPath) throws IOException
IOException
public static void importProperties(String folder) throws IOException
folder
- ignoreProperties
- IOException
public static void importProperties(String folder, Collection<String> ignoreProperties) throws IOException
IOException
public static void importProperties(String folder, Collection<String> ignoreProperties, UnaryOperator<Properties> propertiesFixer) throws IOException
IOException
public static void importProperties(String folder, Collection<String> ignoreProperties, UnaryOperator<Properties> propertiesFixer, IConfigurationPropertiesManager manager) throws IOException
IOException
public static Properties fixDatabasePassword(Properties props)
public static void doFixPassword(Properties props, String passwordProperty)
Copyright © 2021 Denodo Technologies. All rights reserved.