com.endeca.portal.data.config
Class DataSourceConfigHelper
java.lang.Object
com.endeca.portal.data.config.DataSourceConfigHelper
public class DataSourceConfigHelper
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DATA_SOURCE_CONFIG_DIRECTORY
public static final java.lang.String DATA_SOURCE_CONFIG_DIRECTORY
- See Also:
- Constant Field Values
DataSourceConfigHelper
public DataSourceConfigHelper()
resetDataSourceStatusPoller
public static void resetDataSourceStatusPoller()
getDataSourceConfigurations
public static java.util.Map<java.lang.String,MDEXState> getDataSourceConfigurations()
incrementDataSourceConfigVersion
public static void incrementDataSourceConfigVersion()
getDataSourceConfigVersion
public static int getDataSourceConfigVersion()
addDataSourceConfiguration
public static void addDataSourceConfiguration(MDEXState d)
throws DataSourceConfigAlreadyExistsException,
DataSourceConfigUpdateException
- Throws:
DataSourceConfigAlreadyExistsException
DataSourceConfigUpdateException
updateDataSourceConfiguration
public static void updateDataSourceConfiguration(MDEXState d,
boolean overwrite,
boolean backup)
throws DataSourceConfigAlreadyExistsException,
DataSourceConfigUpdateException
- Parameters:
d
- the data source configuration to be written, represented by an MDEXStateoverwrite
- should we overwrite a definition that already exists?backup
-
- Throws:
DataSourceConfigAlreadyExistsException
- if overwrite is false but an Data Source config already exists
DataSourceConfigUpdateException
- if other errors occurred while updating
deleteDataSourceConfiguration
public static void deleteDataSourceConfiguration(MDEXState d)
expandLiferayHomeToken
public static java.lang.String expandLiferayHomeToken(java.lang.String value)
- Expands tokens in a path string representing the data source directory.
Currently the only acceptable token is "${liferay.home}"
- Parameters:
value
- the tokenized path string
- Returns:
- the path string with tokens replaced
getFileFromPath
public static java.io.File getFileFromPath(java.lang.String path)