public class Query
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private static java.lang.String[] |
EMPTY_STRING_ARRAY
Used for setting empty terms.
|
private java.lang.Integer |
fromResult
Start index of search results to return.
|
private java.lang.String[] |
returnAttributes
Attributes to return with the ldap query.
|
private java.lang.String |
searchRestrictions
Additional restrictions to place on every query.
|
private java.lang.String[] |
terms
Query separated into terms.
|
private java.lang.Integer |
toResult
End index of search results to return.
|
| Constructor and Description |
|---|
Query(java.lang.String query)
Parses the query from a string into query terms.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Integer |
getFromResult()
Returns the from result.
|
java.lang.String[] |
getReturnAttributes()
Returns the return attributes.
|
java.lang.String |
getSearchRestrictions()
Returns the search restrictions.
|
java.lang.String[] |
getTerms()
Returns the terms.
|
java.lang.Integer |
getToResult()
Returns the to result.
|
void |
setFromResult(java.lang.Integer i)
Sets the index of the result to begin searching.
|
void |
setReturnAttributes(java.lang.String[] attrs)
Sets the return attributes.
|
void |
setSearchRestrictions(java.lang.String restrictions)
Sets the search restrictions.
|
void |
setToResult(java.lang.Integer i)
Sets the index of the result to stop searching.
|
java.lang.String |
toString() |
private static final java.lang.String[] EMPTY_STRING_ARRAY
private final java.lang.String[] terms
private java.lang.String[] returnAttributes
private java.lang.String searchRestrictions
private java.lang.Integer fromResult
private java.lang.Integer toResult
public Query(java.lang.String query)
query - to parsepublic java.lang.String[] getTerms()
public void setReturnAttributes(java.lang.String[] attrs)
attrs - return attributespublic java.lang.String[] getReturnAttributes()
public void setSearchRestrictions(java.lang.String restrictions)
restrictions - search restrictionspublic java.lang.String getSearchRestrictions()
public void setFromResult(java.lang.Integer i)
i - from indexpublic java.lang.Integer getFromResult()
public void setToResult(java.lang.Integer i)
i - to resultpublic java.lang.Integer getToResult()
public java.lang.String toString()
toString in class java.lang.Object