|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ldaptive.templates.SearchTemplates
public class SearchTemplates
Contains a list of common search filter templates that can be formatted for any given query.
| Nested Class Summary | |
|---|---|
class |
SearchTemplates.DefaultTermParser
Adds each term as a filter parameter using the name 'termX' where X is the index of the term. |
class |
SearchTemplates.InitialTermParser
Adds the first letter of each term as a filter parameter using the name 'initialX' where X is the index of the term. |
static interface |
SearchTemplates.TermParser
Converts query terms into search filter parameters. |
| Constructor Summary | |
|---|---|
SearchTemplates(String... templates)
Creates a new search templates. |
|
| Method Summary | |
|---|---|
org.ldaptive.SearchFilter[] |
format(Query query)
Creates the search filters using configured templates and the supplied query. |
String |
getSearchRestrictions()
Returns the filter to use for search restrictions. |
SearchTemplates.TermParser[] |
getTermParsers()
Returns the term parsers used for creating filter parameters. |
void |
setSearchRestrictions(String restrictions)
Sets the filter to use for search restrictions. |
void |
setTermParsers(SearchTemplates.TermParser... parsers)
Sets the term parsers used for creating filter parameters. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SearchTemplates(String... templates)
templates - list of search filters| Method Detail |
|---|
public String getSearchRestrictions()
public void setSearchRestrictions(String restrictions)
restrictions - search restrictionspublic SearchTemplates.TermParser[] getTermParsers()
public void setTermParsers(SearchTemplates.TermParser... parsers)
parsers - term parserspublic org.ldaptive.SearchFilter[] format(Query query)
query - to create search filter with
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||