public class SearchControl extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
static int |
SCOPE_BASE
Search scope for just this object.
|
static int |
SCOPE_ONE
Search scope for one level.
|
static int |
SCOPE_SUB
Search scope for subtree level.
|
Constructor and Description |
---|
SearchControl() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
contains(String name)
Checks if an internal attribute is defined for the control
|
protected Object |
get(String name)
Gets internal attribute defined in SearchControl
|
int |
getMaxResults()
Gets the maximum number of search results to return. return 0 means there
is no limit.
|
int |
getSearchScope()
Gets the search scope defined in the SearchControl.
|
int |
getSearchScope(int defaultScope)
Gets the search scope defined in the SearchControl.
|
SortKey[] |
getSortKeys()
Get existing attribute names for sorting.
|
int |
getTimeOut()
Get current time out setting.
|
String |
getVLVJumpTo()
Get jumpTo value for VLV range.
|
int[] |
getVLVRange()
Get range for current VLV setting.
|
boolean |
isGetAllReturnAttributesEnabled()
Method to check if the boolean getAllAttributesEnabled is enabled or
disabled.
|
protected void |
set(String name,
Object o)
Sets internal attribute value in SearchControl
|
void |
setAllReturnAttributes(boolean getAllAttributes)
Sets the specified boolean value to the variable.
|
void |
setMaxResults(int maxNumber)
Sets the maximum number of search results to return; 0 means there is no
limit.
|
void |
setSearchScope(int scope)
Sets the search scope in SearchControl.
|
void |
setSortKeys(SortKey[] sortKeys)
Set sort order based on SortKey
|
void |
setSortKeys(String[] attributeNames)
Set sort order based on attribute names.
|
void |
setTimeOut(int timeOut)
Sets the maximum number of milliseconds to wait for any operation for the
search.
|
void |
setVLVRange(int startIndex,
int beforeCount,
int afterCount)
Set range for retrieving VLV data.
|
void |
setVLVRange(String jumpTo,
int beforeCount,
int afterCount)
Set range for retrieving VLV data.
|
public static final int SCOPE_ONE
public static final int SCOPE_SUB
public static final int SCOPE_BASE
public void setSortKeys(String[] attributeNames)
attributeNames
- array of attribute names to sort onpublic void setSortKeys(SortKey[] sortKeys)
sortKeys
- array of SortKey.public SortKey[] getSortKeys()
public void setVLVRange(int startIndex, int beforeCount, int afterCount)
startIndex
- starting positionbeforeCount
- Number of entries before the startIndexafterCount
- Number of entries after the startIndex.public void setVLVRange(String jumpTo, int beforeCount, int afterCount)
jumpTo
- Search expression defining the result set returnbeforeCount
- Number of entries before the startIndexafterCount
- Number of entries after the startIndex.public int[] getVLVRange()
public String getVLVJumpTo()
public void setTimeOut(int timeOut)
timeOut
- Max number of milliseconds.public int getTimeOut()
public void setMaxResults(int maxNumber)
public int getMaxResults()
public void setSearchScope(int scope)
scope
- Search scope defined in the SearchControl to be used with the
search API.public int getSearchScope()
public int getSearchScope(int defaultScope)
defaultScope
- Scope value to be used in case the SearchControl is not set up
with a search scopeprotected Object get(String name)
name
- Name of attribute to getprotected boolean contains(String name)
name
- Name of internal attribute to check againsttrue
if internal attribute is defined in the
control and false
otherwisepublic void setAllReturnAttributes(boolean getAllAttributes)
getAllAttributes
- Boolean value set to true as part of the AMSearchControl to
obtain all attributes as part of the search.public boolean isGetAllReturnAttributesEnabled()
Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.