public final class Requests extends Object
All copy constructors of the form copyOfXXXRequest
perform deep
copies of their request parameter. More specifically, any controls,
modifications, and attributes contained within the response will be
duplicated.
Similarly, all unmodifiable views of request returned by methods of the form
unmodifiableXXXRequest
return deep unmodifiable views of their
request parameter. More specifically, any controls, modifications, and
attributes contained within the returned request will be unmodifiable.
Requests
Modifier and Type | Method and Description |
---|---|
static SearchRequest |
newSearchRequest(DN name,
org.forgerock.opendj.ldap.SearchScope scope)
Return a new search request object.
|
static SearchRequest |
newSearchRequest(DN name,
org.forgerock.opendj.ldap.SearchScope scope,
SearchFilter filter,
String... attributeDescriptions)
Creates a new search request using the provided distinguished name,
scope, and filter.
|
static SearchRequest |
newSearchRequest(DN name,
org.forgerock.opendj.ldap.SearchScope scope,
String filter)
Return a new search request object.
|
static SearchRequest |
newSearchRequest(String name,
org.forgerock.opendj.ldap.SearchScope scope,
String filter)
Return a new search request object.
|
static SearchRequest |
newSearchRequest(String name,
org.forgerock.opendj.ldap.SearchScope scope,
String filter,
String... attributeDescriptions)
Creates a new search request using the provided distinguished name,
scope, and filter, decoded using the default schema.
|
public static SearchRequest newSearchRequest(DN name, org.forgerock.opendj.ldap.SearchScope scope, SearchFilter filter, String... attributeDescriptions) throws NullPointerException
name
- The distinguished name of the base entry relative to which the
search is to be performed.scope
- The scope of the search.filter
- The filter that defines the conditions that must be fulfilled
in order for an entry to be returned.attributeDescriptions
- The names of the attributes to be included with each entry.NullPointerException
- If the name
, scope
, or filter
were
null
.public static SearchRequest newSearchRequest(String name, org.forgerock.opendj.ldap.SearchScope scope, String filter, String... attributeDescriptions) throws NullPointerException, LocalizedIllegalArgumentException, DirectoryException
name
- The distinguished name of the base entry relative to which the
search is to be performed.scope
- The scope of the search.filter
- The filter that defines the conditions that must be fulfilled
in order for an entry to be returned.attributeDescriptions
- The names of the attributes to be included with each entry.DirectoryException
- If a problem occurs while decoding the provided string as a
search filter.LocalizedIllegalArgumentException
- If name
could not be decoded using the default
schema, or if filter
is not a valid LDAP string
representation of a filter.NullPointerException
- If the name
, scope
, or filter
were
null
.public static SearchRequest newSearchRequest(String name, org.forgerock.opendj.ldap.SearchScope scope, String filter) throws DirectoryException
name
- the dnscope
- the search scopefilter
- the search filterDirectoryException
- if a problem occursnewSearchRequest(DN, SearchScope, SearchFilter, String...)
public static SearchRequest newSearchRequest(DN name, org.forgerock.opendj.ldap.SearchScope scope, String filter) throws DirectoryException
name
- the dnscope
- the search scopefilter
- the search filterDirectoryException
- if a problem occursnewSearchRequest(DN, SearchScope, SearchFilter, String...)
public static SearchRequest newSearchRequest(DN name, org.forgerock.opendj.ldap.SearchScope scope)
name
- the dnscope
- the search scopenewSearchRequest(DN, SearchScope, SearchFilter, String...)
Copyright © 2010-2016 ForgeRock AS. All Rights Reserved.