|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.ametys.plugins.datainclusion.data.AbstractDataSource
org.ametys.plugins.datainclusion.data.ldap.LdapDataSource
public class LdapDataSource
LDAP data source.
| Field Summary | |
|---|---|
protected String |
_adminDn
The LDAP admin DN. |
protected String |
_adminPassword
The LDAP admin password. |
protected String |
_authMethod
The LDAP server auth method. |
protected String |
_baseUrl
The LDAP server base URL. |
protected String |
_filter
The LDAP filter. |
protected Map<String,LdapQuery> |
_queries
This data source SQL queries. |
protected String |
_scope
The LDAP scope. |
protected boolean |
_useSsl
Indicates if the server is to be connected to via SSL. |
| Fields inherited from class org.ametys.plugins.datainclusion.data.AbstractDataSource |
|---|
_description, _id, _name |
| Constructor Summary | |
|---|---|
LdapDataSource()
Constructor. |
|
| Method Summary | |
|---|---|
protected Hashtable<String,String> |
_getContextEnv()
Get the parameters for connecting to the LDAP server. |
DirContext |
connect()
Connect to the LDAP server. |
Map<String,String> |
getAdditionalValues(boolean exceptPassword)
Get the additional datasource configuration information. |
String |
getAdminDn()
Get the LDAP admin DN. |
String |
getAdminPassword()
Get the LDAP admin password. |
String |
getAuthMethod()
Get the LDAP server auth method. |
String |
getBaseUrl()
Get the LDAP server base URL. |
String |
getFilter()
Get the LDAP filter. |
Map<String,LdapQuery> |
getQueries()
Get the queries on this datasource. |
String |
getScope()
Get the LDAP scope. |
String |
getType()
Get the datasource type. |
void |
setAdminDn(String adminDn)
Set the LDAP admin DN. |
void |
setAdminPassword(String adminPassword)
Set the LDAP admin password. |
void |
setAuthMethod(String authMethod)
Set the LDAP server auth method. |
void |
setBaseUrl(String baseUrl)
Set the LDAP server base URL. |
void |
setFilter(String filter)
Set the LDAP filter. |
void |
setScope(String scope)
Set the LDAP scope. |
void |
setUseSsl(boolean useSsl)
Set if the server uses SSL. |
boolean |
useSsl()
Get if the server uses SSL. |
| Methods inherited from class org.ametys.plugins.datainclusion.data.AbstractDataSource |
|---|
getDescription, getId, getName, setDescription, setId, setName |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected String _baseUrl
protected String _filter
protected String _scope
protected String _adminDn
protected String _adminPassword
protected String _authMethod
protected boolean _useSsl
protected Map<String,LdapQuery> _queries
| Constructor Detail |
|---|
public LdapDataSource()
| Method Detail |
|---|
public String getType()
DataSource
public String getBaseUrl()
public void setBaseUrl(String baseUrl)
baseUrl - the LDAP server base URL to setpublic String getFilter()
public void setFilter(String filter)
filter - the LDAP filter to setpublic String getScope()
public void setScope(String scope)
scope - the LDAP scope to setpublic String getAdminDn()
public void setAdminDn(String adminDn)
adminDn - the LDAP admin DN to setpublic String getAdminPassword()
public void setAdminPassword(String adminPassword)
adminPassword - the LDAP admin password to setpublic String getAuthMethod()
public void setAuthMethod(String authMethod)
authMethod - the LDAP server auth method to setpublic boolean useSsl()
public void setUseSsl(boolean useSsl)
useSsl - if the server is to be connected to via SSL.public Map<String,String> getAdditionalValues(boolean exceptPassword)
DataSource
exceptPassword - true to do not return password values
public Map<String,LdapQuery> getQueries()
DataSource
public DirContext connect()
throws NamingException,
DataInclusionException
NamingException
DataInclusionExceptionprotected Hashtable<String,String> _getContextEnv()
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||