|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.mentata.sg8.SG8Discovery
com.mentata.sg8.SG8Search
A bean defining a directory search and its results. This bean shares the information used for a directory search, including the filter, the total number of matching entries, a desired batch size, the current page, total pages, and the action to which the search results are to be forwarded. The bean uses a pseudo property to iterate through search results, providing access to each entry via the properties inherited from SG8Discovery. It also has properties providing an action hyperlink to the current entry or an implicit SG8Discovery bean.
| Constructor Summary | |
SG8Search()
|
|
| Method Summary | |
String |
getAction()
Returns the gateway action for the search results. |
SG8Discovery |
getDiscovery()
Returns an SG8 discovery bean containing the first entry in the search results. |
String |
getFilter()
Returns the filter from the search. |
String |
getHyperlink()
Returns a hyperlink to the gateway servlet against the current entry. |
int |
getPage()
Returns the page number for the search results. |
int |
getPages()
Returns the number of total pages for the search results. |
LDAPEntry[] |
getResults()
Returns the results matching the search. |
int |
getSize()
Returns the total number of entries matching the search. |
boolean |
isNext()
Iterates to the next entry in the search results. |
void |
setAction(String action)
Sets the gateway action for the search results. |
void |
setFilter(String filter)
Sets the filter for the search. |
void |
setPage(int page)
Sets the page number for the search results. |
void |
setResults(LDAPEntry[] results)
Sets the results matching the search. |
| Methods inherited from class com.mentata.sg8.SG8Discovery |
getAttribute, getAttributelist, getKeywords, getObject, getSg8attribute, setAttribute, setCurrentattribute, setCurrentlist, setObject |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SG8Search()
| Method Detail |
public void setFilter(String filter)
filter - an LDAP filterpublic String getFilter()
public void setAction(String action)
action - an SG8 servlet namepublic String getAction()
public void setPage(int page)
page - a page numberpublic int getPage()
public int getPages()
public void setResults(LDAPEntry[] results)
results - LDAP entries matching the searchpublic LDAPEntry[] getResults()
public int getSize()
public String getHyperlink()
public boolean isNext()
throws SG8Exception
SG8Exception - if the search object cannot be populated
public SG8Discovery getDiscovery()
throws SG8Exception
SG8Exception - if the discovery object cannot be populated
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||