Java javax.naming.directory SearchControls fields, constructors, methods, implement or subclass

Example usage for Java javax.naming.directory SearchControls fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for javax.naming.directory SearchControls.

The text is from its open source code.

Field

intOBJECT_SCOPE
Search the named object.
intONELEVEL_SCOPE
Search one level of the named context.
intSUBTREE_SCOPE
Search the entire subtree rooted at the named object.

Constructor

SearchControls()
Constructs a search constraints using defaults.
SearchControls(int scope, long countlim, int timelim, String[] attrs, boolean retobj, boolean deref)
Constructs a search constraints using arguments.

Method

longgetCountLimit()
Retrieves the maximum number of entries that will be returned as a result of the search.
booleangetDerefLinkFlag()
Determines whether links will be dereferenced during the search.
String[]getReturningAttributes()
Retrieves the attributes that will be returned as part of the search.
booleangetReturningObjFlag()
Determines whether objects will be returned as part of the result.
intgetSearchScope()
Retrieves the search scope of these SearchControls.
intgetTimeLimit()
Retrieves the time limit of these SearchControls in milliseconds.
voidsetCountLimit(long limit)
Sets the maximum number of entries to be returned as a result of the search.
voidsetDerefLinkFlag(boolean on)
Enables/disables link dereferencing during the search.
voidsetReturningAttributes(String[] attrs)
Specifies the attributes that will be returned as part of the search.
voidsetReturningObjFlag(boolean on)
Enables/disables returning objects returned as part of the result.
voidsetSearchScope(int scope)
Sets the search scope to one of: OBJECT_SCOPE, ONELEVEL_SCOPE, SUBTREE_SCOPE.
voidsetTimeLimit(int ms)
Sets the time limit of these SearchControls in milliseconds.