|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.directory.shared.ldap.message.AbstractMessage
org.apache.directory.shared.ldap.message.AbstractRequest
org.apache.directory.shared.ldap.message.AbstractAbandonableRequest
org.apache.directory.shared.ldap.message.SearchRequestImpl
public class SearchRequestImpl
Lockable SearchRequest implementation.
| Field Summary |
|---|
| Fields inherited from interface org.apache.directory.shared.ldap.message.SearchRequest |
|---|
RESPONSE_TYPES, TYPE |
| Constructor Summary | |
|---|---|
SearchRequestImpl(int id)
Creates a Lockable SearcRequest implementing object used to search the DIT. |
|
| Method Summary | |
|---|---|
void |
addAttribute(java.lang.String attribute)
Adds an attribute to the set of entry attributes to return. |
boolean |
equals(java.lang.Object obj)
Checks to see if two search requests are equal. |
java.util.Collection |
getAttributes()
Gets a list of the attributes to be returned from each entry which matches the search filter. |
LdapDN |
getBase()
Gets the search base as a distinguished name. |
DerefAliasesEnum |
getDerefAliases()
Gets the alias handling parameter. |
ExprNode |
getFilter()
Gets the search filter associated with this search request. |
MessageTypeEnum[] |
getResponseTypes()
Gets the different response types generated by a search request. |
ResultResponse |
getResultResponse()
The result containing response for this request. |
ScopeEnum |
getScope()
Gets the search scope parameter enumeration. |
int |
getSizeLimit()
A sizelimit that restricts the maximum number of entries to be returned as a result of the search. |
int |
getTimeLimit()
Gets the timelimit that restricts the maximum time (in seconds) allowed for a search. |
boolean |
getTypesOnly()
An indicator as to whether search results will contain both attribute types and values, or just attribute types. |
void |
removeAttribute(java.lang.String attribute)
Removes an attribute to the set of entry attributes to return. |
void |
setBase(LdapDN base)
Sets the search base as a distinguished name. |
void |
setDerefAliases(DerefAliasesEnum derefAliases)
Sets the alias handling parameter. |
void |
setFilter(ExprNode filter)
Sets the search filter associated with this search request. |
void |
setScope(ScopeEnum scope)
Sets the search scope parameter enumeration. |
void |
setSizeLimit(int entriesMax)
Sets sizelimit that restricts the maximum number of entries to be returned as a result of the search. |
void |
setTimeLimit(int secondsMax)
Sets the timelimit that restricts the maximum time (in seconds) allowed for a search. |
void |
setTypesOnly(boolean typesOnly)
An indicator as to whether search results will contain both attribute types and values, or just attribute types. |
java.lang.String |
toString()
Return a string the represent a SearchRequest |
| Methods inherited from class org.apache.directory.shared.ldap.message.AbstractAbandonableRequest |
|---|
abandon, addAbandonListener, isAbandoned |
| Methods inherited from class org.apache.directory.shared.ldap.message.AbstractRequest |
|---|
hasResponse |
| Methods inherited from class org.apache.directory.shared.ldap.message.AbstractMessage |
|---|
add, get, getControls, getMessageId, getType, initControls, put, remove |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.apache.directory.shared.ldap.message.Request |
|---|
hasResponse |
| Methods inherited from interface org.apache.directory.shared.ldap.message.Message |
|---|
add, get, getControls, getMessageId, getType, put, remove |
| Methods inherited from interface org.apache.directory.shared.ldap.message.AbandonableRequest |
|---|
abandon, addAbandonListener, isAbandoned |
| Constructor Detail |
|---|
public SearchRequestImpl(int id)
id - the sequential message identifier| Method Detail |
|---|
public java.util.Collection getAttributes()
getAttributes in interface SearchRequestpublic LdapDN getBase()
getBase in interface SearchRequestpublic void setBase(LdapDN base)
setBase in interface SearchRequestbase - the search basepublic DerefAliasesEnum getDerefAliases()
getDerefAliases in interface SearchRequestpublic void setDerefAliases(DerefAliasesEnum derefAliases)
setDerefAliases in interface SearchRequestderefAliases - the alias handling parameter enumeration.public ExprNode getFilter()
getFilter in interface SearchRequestpublic void setFilter(ExprNode filter)
setFilter in interface SearchRequestfilter - the expression node for the root of the filter expression
tree.public MessageTypeEnum[] getResponseTypes()
getResponseTypes in interface ManyReplyRequestgetResponseTypes in interface SearchRequestSearchRequest.RESPONSE_TYPESpublic ScopeEnum getScope()
getScope in interface SearchRequestpublic void setScope(ScopeEnum scope)
setScope in interface SearchRequestscope - the scope enumeration parameter.public int getSizeLimit()
getSizeLimit in interface SearchRequestpublic void setSizeLimit(int entriesMax)
setSizeLimit in interface SearchRequestentriesMax - maximum search result entries to return.public int getTimeLimit()
getTimeLimit in interface SearchRequestpublic void setTimeLimit(int secondsMax)
setTimeLimit in interface SearchRequestsecondsMax - the search time limit in seconds.public boolean getTypesOnly()
getTypesOnly in interface SearchRequestpublic void setTypesOnly(boolean typesOnly)
setTypesOnly in interface SearchRequesttypesOnly - true for only types, false for types and values.public void addAttribute(java.lang.String attribute)
addAttribute in interface SearchRequestattribute - the attribute description or identifier.public void removeAttribute(java.lang.String attribute)
removeAttribute in interface SearchRequestattribute - the attribute description or identifier.public ResultResponse getResultResponse()
getResultResponse in interface ResultResponseRequestpublic boolean equals(java.lang.Object obj)
equals in class AbstractMessageobj - the object to check for equality to this SearchRequest
public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||