public class SearchParams
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private AliasDerefMode |
aliasDerefMode
The aliasDerefMode.
|
private java.util.Set<Control> |
controls
The set of controls for this search.
|
private static org.slf4j.Logger |
LOG
The LoggerFactory used by this class
|
private java.util.Set<AttributeTypeOptions> |
returningAttributes
The list of attributes to return, once it has been normalized.
|
private java.util.Set<java.lang.String> |
returningAttributesStr
The list of attributes to return, as Strings.
|
private SearchScope |
scope
The search scope.
|
private long |
sizeLimit
The size limit.
|
private int |
timeLimit
The time limit.
|
private boolean |
typesOnly
If we should return only types.
|
| Constructor and Description |
|---|
SearchParams()
Creates a new instance of SearchContext, with all the values set to
default.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addControl(Control control) |
void |
addReturningAttributes(java.lang.String returningAttribute) |
AliasDerefMode |
getAliasDerefMode() |
java.util.Set<Control> |
getControls() |
java.util.Set<AttributeTypeOptions> |
getReturningAttributes() |
java.util.Set<java.lang.String> |
getReturningAttributesStr() |
SearchScope |
getScope() |
long |
getSizeLimit() |
int |
getTimeLimit() |
boolean |
isTypesOnly() |
void |
normalize(SchemaManager schemaManager)
Normalize the ReturningAttributes.
|
void |
setAliasDerefMode(AliasDerefMode aliasDerefMode) |
void |
setControls(java.util.Set<Control> controls) |
void |
setReturningAttributes(java.lang.String... returningAttributes) |
void |
setScope(SearchScope scope) |
void |
setSizeLimit(long sizeLimit) |
void |
setTimeLimit(int timeLimit) |
void |
setTypesOnly(boolean typesOnly) |
static SearchParams |
toSearchParams(javax.naming.directory.SearchControls searchControls,
AliasDerefMode aliasDerefMode)
Creates a
SearchParams from JNDI search controls. |
java.lang.String |
toString() |
private static final org.slf4j.Logger LOG
private SearchScope scope
private int timeLimit
private long sizeLimit
private boolean typesOnly
private AliasDerefMode aliasDerefMode
private java.util.Set<java.lang.String> returningAttributesStr
private java.util.Set<AttributeTypeOptions> returningAttributes
private java.util.Set<Control> controls
public SearchParams()
public SearchScope getScope()
public void setScope(SearchScope scope)
scope - the scope to setpublic int getTimeLimit()
public void setTimeLimit(int timeLimit)
timeLimit - the timeLimit to setpublic long getSizeLimit()
public void setSizeLimit(long sizeLimit)
sizeLimit - the sizeLimit to setpublic boolean isTypesOnly()
public void setTypesOnly(boolean typesOnly)
typesOnly - the typesOnly to setpublic AliasDerefMode getAliasDerefMode()
public void setAliasDerefMode(AliasDerefMode aliasDerefMode)
aliasDerefMode - the aliasDerefMode to setpublic java.util.Set<AttributeTypeOptions> getReturningAttributes()
public java.util.Set<java.lang.String> getReturningAttributesStr()
public void normalize(SchemaManager schemaManager)
schemaManager - The schema managerpublic void setReturningAttributes(java.lang.String... returningAttributes)
returningAttributes - the returningAttributes to setpublic void addReturningAttributes(java.lang.String returningAttribute)
returningAttribute - the returningAttributes to addpublic java.util.Set<Control> getControls()
public void setControls(java.util.Set<Control> controls)
controls - the controls to setpublic void addControl(Control control)
control - the controls to setpublic static SearchParams toSearchParams(javax.naming.directory.SearchControls searchControls, AliasDerefMode aliasDerefMode)
SearchParams from JNDI search controls.searchControls - the search controlsaliasDerefMode - the alias deref modepublic java.lang.String toString()
toString in class java.lang.Object