|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.ametys.plugins.datainclusion.data.ldap.LdapDataSourceFactory
public class LdapDataSourceFactory
LDAP Data Source factory.
| Field Summary | |
|---|---|
static String |
DATASOURCE_CONFIGURATION_ADMINDN
adminDn configuration parameter. |
static String |
DATASOURCE_CONFIGURATION_ADMINPASSWORD
adminPassword configuration parameter. |
static String |
DATASOURCE_CONFIGURATION_AUTHMETHOD
authMethod configuration parameter. |
static String |
DATASOURCE_CONFIGURATION_BASEURL
Base URL configuration parameter. |
static String |
DATASOURCE_CONFIGURATION_FILTER
filter configuration parameter. |
static List<String> |
DATASOURCE_CONFIGURATION_PARAMETERS
Data Source configuration parameters. |
static String |
DATASOURCE_CONFIGURATION_SCOPE
scope configuration parameter. |
static String |
DATASOURCE_CONFIGURATION_USESSL
useSsl configuration parameter. |
static String |
QUERY_CONFIGURATION_ATTRIBUTES
"Attributes to return" configuration parameter. |
static String |
QUERY_CONFIGURATION_CONSTRAINT
Constraint configuration parameter. |
static List<String> |
QUERY_CONFIGURATION_PARAMETERS
Query configuration parameters. |
| Constructor Summary | |
|---|---|
LdapDataSourceFactory()
|
|
| Method Summary | |
|---|---|
LdapDataSource |
buildDataSource(String id,
String type,
String name,
String description,
Map<String,String> additionalConfiguration)
Build a data source with the specified information. |
LdapQuery |
buildQuery(String id,
String type,
String name,
String description,
Query.ResultType resultType,
DataSource dataSource,
Map<String,String> additionalConfiguration)
Build a query with the specified information. |
Collection<String> |
getDataSourceConfigurationParameters(String type)
The configuration parameters needed to build a DataSource of the specified type. |
Collection<String> |
getHandledTypes()
Get the types that the factory can build. |
Collection<String> |
getQueryConfigurationParameters(String type)
The configuration parameters needed to build a Query of the specified type. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String DATASOURCE_CONFIGURATION_BASEURL
public static final String DATASOURCE_CONFIGURATION_FILTER
public static final String DATASOURCE_CONFIGURATION_SCOPE
public static final String DATASOURCE_CONFIGURATION_ADMINDN
public static final String DATASOURCE_CONFIGURATION_ADMINPASSWORD
public static final String DATASOURCE_CONFIGURATION_AUTHMETHOD
public static final String DATASOURCE_CONFIGURATION_USESSL
public static final List<String> DATASOURCE_CONFIGURATION_PARAMETERS
public static final String QUERY_CONFIGURATION_ATTRIBUTES
public static final String QUERY_CONFIGURATION_CONSTRAINT
public static final List<String> QUERY_CONFIGURATION_PARAMETERS
| Constructor Detail |
|---|
public LdapDataSourceFactory()
| Method Detail |
|---|
public Collection<String> getHandledTypes()
DataSourceFactory
getHandledTypes in interface DataSourceFactorypublic Collection<String> getDataSourceConfigurationParameters(String type)
DataSourceFactory
getDataSourceConfigurationParameters in interface DataSourceFactorytype - the type of the DataSource.
public Collection<String> getQueryConfigurationParameters(String type)
DataSourceFactory
getQueryConfigurationParameters in interface DataSourceFactorytype - the type of the Query.
public LdapDataSource buildDataSource(String id,
String type,
String name,
String description,
Map<String,String> additionalConfiguration)
throws DataInclusionException
DataSourceFactory
buildDataSource in interface DataSourceFactoryid - the DataSource ID.type - the DataSource type.name - the DataSource name.description - the DataSource description.additionalConfiguration - additional data source configuration parameter values as a Map<parameterName, parameterValue>.
DataInclusionException - if an error occurs trying to create the DataSource.
public LdapQuery buildQuery(String id,
String type,
String name,
String description,
Query.ResultType resultType,
DataSource dataSource,
Map<String,String> additionalConfiguration)
throws DataInclusionException
DataSourceFactory
buildQuery in interface DataSourceFactoryid - the Query ID.type - the Query type.name - the Query name.description - the Query description.resultType - the Query result type (single/multiple).dataSource - the DataSource the Query depends on.additionalConfiguration - additional query configuration parameter values as a Map<parameterName, parameterValue>.
DataInclusionException - if an error occurs trying to create the Query.
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||