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