public class LdapQuery extends AbstractQuery
Query.ResultType| Modifier and Type | Field and Description | 
|---|---|
protected Map<String,String> | 
_attributeMap
The decoded attributes. 
 | 
protected String | 
_attributes
The LDAP attributes to return. 
 | 
protected String | 
_constraint
The LDAP constraint, optionally contains parameters. 
 | 
protected String | 
_relativeDN
Relative DN for users. 
 | 
protected String | 
_scope
The LDAP constraint, optionally contains parameters. 
 | 
static Pattern | 
ATTRIBUTE_MATCHER
Attribute matcher. 
 | 
static String | 
ATTRIBUTE_PATTERN
Attribute pattern (matches attributeName[attributeLabel]). 
 | 
_dataSourceId, _description, _factoryId, _id, _name, _parameters, _resultTypePARAMETER_MATCHER, PARAMETER_PATTERN| Constructor and Description | 
|---|
LdapQuery()  | 
| Modifier and Type | Method and Description | 
|---|---|
protected Map<String,String> | 
_buildAttributesMap(String query)
Extract attributes from a query string in the form "attr1[label1], attr2[label2], attr3". 
 | 
Map<String,String> | 
getAdditionalConfiguration()
Get the additional query configuration information. 
 | 
String | 
getAttributes()
Get the LDAP attributes to return. 
 | 
Map<String,String> | 
getAttributesAsMap()
Get attributes as Map. 
 | 
String | 
getConstraint()
Get the LDAP constraint. 
 | 
Map<String,String> | 
getParameters()
Get the query parameter names. 
 | 
String | 
getRelativeDN()
Get the relative DN for users 
 | 
String | 
getScope()
Get the LDAP scope. 
 | 
DataSourceClientInteraction.DataSourceType | 
getType()
Get the query type. 
 | 
void | 
setAttributes(String attributes)
Set the LDAP attributes to return. 
 | 
void | 
setConstraint(String constraint)
Set the LDAP constraint. 
 | 
void | 
setRelativeDN(String relativeDN)
Set relative DN for users 
 | 
void | 
setScope(String scope)
Set the LDAP scope. 
 | 
_buildParameters, getDataSourceId, getDescription, getFactory, getId, getName, getResultType, setDataSourceId, setDescription, setFactory, setId, setName, setResultTypepublic static final String ATTRIBUTE_PATTERN
public static final Pattern ATTRIBUTE_MATCHER
protected String _attributes
protected String _constraint
protected String _relativeDN
protected Map<String,String> _attributeMap
public LdapQuery()
public DataSourceClientInteraction.DataSourceType getType()
Querypublic String getAttributes()
public void setAttributes(String attributes)
attributes - LDAP attributes to return.public String getConstraint()
public void setConstraint(String constraint)
constraint - the LDAP constraint to set.public void setRelativeDN(String relativeDN)
relativeDN - the LDAP relative DN for userspublic String getRelativeDN()
public void setScope(String scope)
scope - the LDAP scope to setpublic Map<String,String> getParameters()
Querypublic Map<String,String> getAdditionalConfiguration()
Querypublic Map<String,String> getAttributesAsMap()
protected Map<String,String> _buildAttributesMap(String query)
query - the query containing parameters.