@NotMutable @ThreadSafety(level=COMPLETELY_THREADSAFE) public final class SearchScope extends java.lang.Object implements java.io.Serializable
BASE
, ONE
, SUB
, or
SUBORDINATE_SUBTREE
values, although it is possible to create a new
scope with a specified integer value if necessary using the
valueOf(int)
method. The following search scope values are defined:
BASE
-- Indicates that only the entry specified by the base DN
should be considered.ONE
-- Indicates that only entries that are immediate
subordinates of the entry specified by the base DN (but not the base
entry itself) should be considered.SUB
-- Indicates that the base entry itself and any subordinate
entries (to any depth) should be considered.SUBORDINATE_SUBTREE
-- Indicates that any subordinate entries
(to any depth) below the entry specified by the base DN should be
considered, but the base entry itself should not be considered, as
described in draft-sermersheim-ldap-subordinate-scope.Modifier and Type | Field and Description |
---|---|
static SearchScope |
BASE
A predefined baseObject scope value, which indicates that only the entry
specified by the base DN should be considered.
|
static int |
BASE_INT_VALUE
The integer value for the "base" search scope.
|
static SearchScope |
ONE
A predefined singleLevel scope value, which indicates that only entries
that are immediate subordinates of the entry specified by the base DN (but
not the base entry itself) should be considered.
|
static int |
ONE_INT_VALUE
The integer value for the "one" search scope.
|
static SearchScope |
SUB
A predefined wholeSubtree scope value, which indicates that the base entry
itself and any subordinate entries (to any depth) should be considered.
|
static int |
SUB_INT_VALUE
The integer value for the "sub" search scope.
|
static SearchScope |
SUBORDINATE_SUBTREE
A predefined subordinateSubtree scope value, which indicates that any
subordinate entries (to any depth) below the entry specified by the base DN
should be considered, but the base entry itself should not be considered.
|
static int |
SUBORDINATE_SUBTREE_INT_VALUE
The integer value for the "subordinate subtree" search scope.
|
Modifier and Type | Method and Description |
---|---|
static SearchScope |
definedValueOf(int intValue)
Retrieves the predefined search scope with the specified integer value.
|
boolean |
equals(java.lang.Object o)
Indicates whether the provided object is equal to this search scope.
|
java.lang.String |
getName()
Retrieves the name for this search scope.
|
int |
hashCode()
The hash code for this search scope.
|
int |
intValue()
Retrieves the integer value for this search scope.
|
java.lang.String |
toString()
Retrieves a string representation of this search scope.
|
static SearchScope |
valueOf(int intValue)
Retrieves the search scope with the specified integer value.
|
static SearchScope[] |
values()
Retrieves an array of all search scopes defined in the LDAP SDK.
|
public static final int BASE_INT_VALUE
@NotNull public static final SearchScope BASE
public static final int ONE_INT_VALUE
@NotNull public static final SearchScope ONE
public static final int SUB_INT_VALUE
@NotNull public static final SearchScope SUB
public static final int SUBORDINATE_SUBTREE_INT_VALUE
@NotNull public static final SearchScope SUBORDINATE_SUBTREE
@NotNull public java.lang.String getName()
public int intValue()
@NotNull public static SearchScope valueOf(int intValue)
intValue
- The integer value for which to retrieve the corresponding
search scope.@Nullable public static SearchScope definedValueOf(int intValue)
intValue
- The integer value for which to retrieve the corresponding
search scope.null
if the provided integer value does not represent a defined scope.@NotNull public static SearchScope[] values()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(@Nullable java.lang.Object o)
equals
in class java.lang.Object
o
- The object for which to make the determination.true
if the provided object is a search scope that is
equal to this search scope, or false
if not.