Package org.forgerock.opendj.ldap
Class SearchScope
- java.lang.Object
- 
- org.forgerock.opendj.ldap.SearchScope
 
- 
 public final class SearchScope extends Object A Search operation search scope as defined in RFC 4511 section 4.5.1.2 is used to specify the scope of a Search operation.
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classSearchScope.EnumContains equivalent values for the SearchScope values.
 - 
Field SummaryFields Modifier and Type Field Description static SearchScopeBASE_OBJECTThe scope is constrained to the search base entry.static SearchScopeSINGLE_LEVELThe scope is constrained to the immediate subordinates of the search base entry.static SearchScopeSUBORDINATESThe scope is constrained to all the subordinates of the search base entry, but does not include the search base entry itself (as wholeSubtree does).static SearchScopeWHOLE_SUBTREEThe scope is constrained to the search base entry and to all its subordinates.
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description SearchScope.EnumasEnum()Returns the enum equivalent for this search scope.booleanequals(Object obj)inthashCode()intintValue()Returns the integer value of this search scope as defined in RFC 4511 section 4.5.1.2.StringtoString()Returns the string representation of this search scope as defined in RFC 4516.static SearchScopevalueOf(int intValue)Returns the search scope having the specified integer value as defined in RFC 4511 section 4.5.1.2.static SearchScopevalueOf(String name)Returns the search scope having the specified name as defined in RFC 4511 section 4.5.1.2.static List<SearchScope>values()Returns an unmodifiable list containing the set of available search scopes indexed on their integer value as defined in RFC 4511 section 4.5.1.2.
 
- 
- 
- 
Field Detail- 
BASE_OBJECTpublic static final SearchScope BASE_OBJECT The scope is constrained to the search base entry.
 - 
SINGLE_LEVELpublic static final SearchScope SINGLE_LEVEL The scope is constrained to the immediate subordinates of the search base entry.
 - 
WHOLE_SUBTREEpublic static final SearchScope WHOLE_SUBTREE The scope is constrained to the search base entry and to all its subordinates.
 - 
SUBORDINATESpublic static final SearchScope SUBORDINATES The scope is constrained to all the subordinates of the search base entry, but does not include the search base entry itself (as wholeSubtree does).
 
- 
 - 
Method Detail- 
valueOfpublic static SearchScope valueOf(int intValue) Returns the search scope having the specified integer value as defined in RFC 4511 section 4.5.1.2.- Parameters:
- intValue- The integer value of the search scope.
- Returns:
- The search scope, or nullif there was no search scope associated withintValue.
 
 - 
valueOfpublic static SearchScope valueOf(String name) Returns the search scope having the specified name as defined in RFC 4511 section 4.5.1.2.- Parameters:
- name- the name of the search scope to return
- Returns:
- The search scope, or nullif there was no search scope associated withname.
- Throws:
- NullPointerException- if name is null
 
 - 
valuespublic static List<SearchScope> values() Returns an unmodifiable list containing the set of available search scopes indexed on their integer value as defined in RFC 4511 section 4.5.1.2.- Returns:
- An unmodifiable list containing the set of available search scopes.
 
 - 
intValuepublic int intValue() Returns the integer value of this search scope as defined in RFC 4511 section 4.5.1.2.- Returns:
- The integer value of this search scope.
 
 - 
asEnumpublic SearchScope.Enum asEnum() Returns the enum equivalent for this search scope.- Returns:
- The enum equivalent for this search scope when a known mapping exists,
         or SearchScope.Enum.UNKNOWNif this is an unknown search scope.
 
 
- 
 
-