public class LDAPDataSourceManager extends AbstractDataSourceManager
AbstractDataSourceManager.DataSourceDefinition
Modifier and Type | Field and Description |
---|---|
private static String |
__filename |
static String |
LDAP_DATASOURCE_PREFIX
The id of the internal DataSource
|
static String |
PARAM_ADMIN_DN
LDAP parameter's name for administrator DN
|
static String |
PARAM_ADMIN_PASSWORD
LDAP parameter's name for administration password
|
static String |
PARAM_ALIAS_DEREFERENCING
LDAP parameter's name for alias dereferencing
|
static String |
PARAM_AUTHENTICATION_METHOD
LDAP parameter's name for authentication method
|
static String |
PARAM_BASE_DN
LDAP parameter's name for base DN
|
static String |
PARAM_BASE_URL
LDAP parameter's name for base URL
|
static String |
PARAM_FOLLOW_REFERRALS
LDAP parameter's name for follow referrals property
|
static String |
PARAM_USE_SSL
LDAP parameter's name for use SSL
|
static String |
ROLE
Avalon Role
|
_currentUserProvider, _dataSourcesDef, _observationManager, DEFAULT_DATASOURCE_SUFFIX
Constructor and Description |
---|
LDAPDataSourceManager() |
Modifier and Type | Method and Description |
---|---|
void |
checkParameters(Map<String,String> rawParameters)
Checks the parameters of a data source
|
protected void |
createDataSource(AbstractDataSourceManager.DataSourceDefinition dataSource)
Creates a data source from its configuration
|
protected void |
deleteDataSource(AbstractDataSourceManager.DataSourceDefinition dataSource)
Deletes a data source
|
protected void |
editDataSource(AbstractDataSourceManager.DataSourceDefinition dataSource)
Edit a data source from its configuration
|
protected String |
getDataSourcePrefixId()
Get the prefix for data source identifier
|
File |
getFileConfiguration()
Get the file configuration of data sources
|
protected void |
internalSetDefaultDataSource()
Set a default data source internally
|
static void |
setFilename(String filename)
Set the config filename.
|
add, checkDataSources, delete, edit, getDataSourceDefinition, getDataSourceDefinitions, getDefaultDataSourceDefinition, getDefaultDataSourceId, initialize, readConfiguration, readDataSourceDefinition, saveConfiguration, saxDataSource, service, setDefaultDataSource
getLogger, setLogger
public static final String PARAM_BASE_URL
public static final String PARAM_BASE_DN
public static final String PARAM_USE_SSL
public static final String PARAM_ALIAS_DEREFERENCING
public static final String PARAM_FOLLOW_REFERRALS
public static final String PARAM_AUTHENTICATION_METHOD
public static final String PARAM_ADMIN_DN
public static final String PARAM_ADMIN_PASSWORD
public static final String LDAP_DATASOURCE_PREFIX
private static String __filename
public LDAPDataSourceManager()
public static void setFilename(String filename)
filename
- Name with path of the config filepublic File getFileConfiguration()
AbstractDataSourceManager
getFileConfiguration
in class AbstractDataSourceManager
protected String getDataSourcePrefixId()
AbstractDataSourceManager
getDataSourcePrefixId
in class AbstractDataSourceManager
public void checkParameters(Map<String,String> rawParameters) throws ParameterCheckerTestFailureException
AbstractDataSourceManager
checkParameters
in class AbstractDataSourceManager
rawParameters
- the parameters of the data sourceParameterCheckerTestFailureException
- if the test failedprotected void createDataSource(AbstractDataSourceManager.DataSourceDefinition dataSource)
AbstractDataSourceManager
createDataSource
in class AbstractDataSourceManager
dataSource
- the data source configurationprotected void deleteDataSource(AbstractDataSourceManager.DataSourceDefinition dataSource)
AbstractDataSourceManager
deleteDataSource
in class AbstractDataSourceManager
dataSource
- the data source configurationprotected void editDataSource(AbstractDataSourceManager.DataSourceDefinition dataSource)
AbstractDataSourceManager
editDataSource
in class AbstractDataSourceManager
dataSource
- the data source configurationprotected void internalSetDefaultDataSource()
AbstractDataSourceManager
internalSetDefaultDataSource
in class AbstractDataSourceManager