|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.ametys.plugins.datainclusion.data.ldap.LdapQueryResult
public class LdapQueryResult
LDAP query result.
| Field Summary | |
|---|---|
protected Map<String,String> |
_attributes
The attribute labels. |
protected List<String> |
_columnNames
The column names (ordered) |
protected Query.ResultType |
_resultType
The result type. |
protected List<QueryResultRow> |
_rows
The result rows. |
| Constructor Summary | |
|---|---|
LdapQueryResult(NamingEnumeration<SearchResult> results,
List<String> columnNames,
Map<String,String> attributes)
Constructs a query result around a ResultSet. |
|
| Method Summary | |
|---|---|
protected void |
_extractResults(NamingEnumeration<SearchResult> results,
List<String> columnNames,
Map<String,String> attributes)
Extract the column names and results from a LDAP naming enumeration. |
void |
close()
Close and cleanup the underlying objects and resources (resultset if SQL, LDAP resources...) if needed. |
Collection<String> |
getColumnNames()
Get the column names. |
Query.ResultType |
getType()
Get the type of the result. |
Iterator<QueryResultRow> |
iterator()
|
void |
setType(Query.ResultType resultType)
Set the result type. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Query.ResultType _resultType
protected List<QueryResultRow> _rows
protected List<String> _columnNames
protected Map<String,String> _attributes
| Constructor Detail |
|---|
public LdapQueryResult(NamingEnumeration<SearchResult> results,
List<String> columnNames,
Map<String,String> attributes)
results - columnNames - attributes - | Method Detail |
|---|
public Query.ResultType getType()
QueryResult
getType in interface QueryResultpublic void setType(Query.ResultType resultType)
resultType - the result type.
public Collection<String> getColumnNames()
throws DataInclusionException
QueryResult
getColumnNames in interface QueryResultDataInclusionExceptionpublic Iterator<QueryResultRow> iterator()
iterator in interface Iterable<QueryResultRow>public void close()
QueryResult
close in interface QueryResult
protected void _extractResults(NamingEnumeration<SearchResult> results,
List<String> columnNames,
Map<String,String> attributes)
throws NamingException
results - the LDAP naming enumeration.columnNames - attributes -
NamingException
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||