javax.naming.directory
Interface DirContext

All Superinterfaces:
Context
All Known Subinterfaces:
EventDirContext, LdapContext
All Known Implementing Classes:
InitialDirContext, InitialLdapContext

public interface DirContext
extends Context


Field Summary
static int ADD_ATTRIBUTE
           
static int REMOVE_ATTRIBUTE
           
static int REPLACE_ATTRIBUTE
           
 
Fields inherited from interface javax.naming.Context
APPLET, AUTHORITATIVE, BATCHSIZE, DNS_URL, INITIAL_CONTEXT_FACTORY, LANGUAGE, OBJECT_FACTORIES, PROVIDER_URL, REFERRAL, SECURITY_AUTHENTICATION, SECURITY_CREDENTIALS, SECURITY_PRINCIPAL, SECURITY_PROTOCOL, STATE_FACTORIES, URL_PKG_PREFIXES
 
Method Summary
 void bind(Name name, Object obj, Attributes attrs)
           
 void bind(String name, Object obj, Attributes attrs)
           
 DirContext createSubcontext(Name name, Attributes attrs)
           
 DirContext createSubcontext(String name, Attributes attrs)
           
 Attributes getAttributes(Name name)
           
 Attributes getAttributes(Name name, String[] attrIds)
           
 Attributes getAttributes(String name)
           
 Attributes getAttributes(String name, String[] attrIds)
           
 DirContext getSchema(Name name)
           
 DirContext getSchema(String name)
           
 DirContext getSchemaClassDefinition(Name name)
           
 DirContext getSchemaClassDefinition(String name)
           
 void modifyAttributes(Name name, int mod_op, Attributes attrs)
           
 void modifyAttributes(Name name, ModificationItem[] mods)
           
 void modifyAttributes(String name, int mod_op, Attributes attrs)
           
 void modifyAttributes(String name, ModificationItem[] mods)
           
 void rebind(Name name, Object obj, Attributes attrs)
           
 void rebind(String name, Object obj, Attributes attrs)
           
 NamingEnumeration<SearchResult> search(Name name, Attributes matchingAttributes)
           
 NamingEnumeration<SearchResult> search(Name name, Attributes matchingAttributes, String[] attributesToReturn)
           
 NamingEnumeration<SearchResult> search(Name name, String filterExpr, Object[] filterArgs, SearchControls cons)
           
 NamingEnumeration<SearchResult> search(Name name, String filter, SearchControls cons)
           
 NamingEnumeration<SearchResult> search(String name, Attributes matchingAttributes)
           
 NamingEnumeration<SearchResult> search(String name, Attributes matchingAttributes, String[] attributesToReturn)
           
 NamingEnumeration<SearchResult> search(String name, String filterExpr, Object[] filterArgs, SearchControls cons)
           
 NamingEnumeration<SearchResult> search(String name, String filter, SearchControls cons)
           
 
Methods inherited from interface javax.naming.Context
addToEnvironment, bind, bind, close, composeName, composeName, createSubcontext, createSubcontext, destroySubcontext, destroySubcontext, getEnvironment, getNameInNamespace, getNameParser, getNameParser, list, list, listBindings, listBindings, lookup, lookup, lookupLink, lookupLink, rebind, rebind, removeFromEnvironment, rename, rename, unbind, unbind
 

Field Detail

ADD_ATTRIBUTE

static final int ADD_ATTRIBUTE
See Also:
Constant Field Values

REPLACE_ATTRIBUTE

static final int REPLACE_ATTRIBUTE
See Also:
Constant Field Values

REMOVE_ATTRIBUTE

static final int REMOVE_ATTRIBUTE
See Also:
Constant Field Values
Method Detail

getAttributes

Attributes getAttributes(String name)
                         throws NamingException
Throws:
NamingException

getAttributes

Attributes getAttributes(String name,
                         String[] attrIds)
                         throws NamingException
Throws:
NamingException

getAttributes

Attributes getAttributes(Name name)
                         throws NamingException
Throws:
NamingException

getAttributes

Attributes getAttributes(Name name,
                         String[] attrIds)
                         throws NamingException
Throws:
NamingException

modifyAttributes

void modifyAttributes(Name name,
                      int mod_op,
                      Attributes attrs)
                      throws NamingException
Throws:
NamingException

modifyAttributes

void modifyAttributes(String name,
                      int mod_op,
                      Attributes attrs)
                      throws NamingException
Throws:
NamingException

modifyAttributes

void modifyAttributes(Name name,
                      ModificationItem[] mods)
                      throws NamingException
Throws:
NamingException

modifyAttributes

void modifyAttributes(String name,
                      ModificationItem[] mods)
                      throws NamingException
Throws:
NamingException

bind

void bind(Name name,
          Object obj,
          Attributes attrs)
          throws NamingException
Throws:
NamingException

bind

void bind(String name,
          Object obj,
          Attributes attrs)
          throws NamingException
Throws:
NamingException

rebind

void rebind(Name name,
            Object obj,
            Attributes attrs)
            throws NamingException
Throws:
NamingException

rebind

void rebind(String name,
            Object obj,
            Attributes attrs)
            throws NamingException
Throws:
NamingException

createSubcontext

DirContext createSubcontext(Name name,
                            Attributes attrs)
                            throws NamingException
Throws:
NamingException

createSubcontext

DirContext createSubcontext(String name,
                            Attributes attrs)
                            throws NamingException
Throws:
NamingException

getSchema

DirContext getSchema(Name name)
                     throws NamingException
Throws:
NamingException

getSchema

DirContext getSchema(String name)
                     throws NamingException
Throws:
NamingException

getSchemaClassDefinition

DirContext getSchemaClassDefinition(Name name)
                                    throws NamingException
Throws:
NamingException

getSchemaClassDefinition

DirContext getSchemaClassDefinition(String name)
                                    throws NamingException
Throws:
NamingException

search

NamingEnumeration<SearchResult> search(Name name,
                                       Attributes matchingAttributes,
                                       String[] attributesToReturn)
                                       throws NamingException
Throws:
NamingException

search

NamingEnumeration<SearchResult> search(String name,
                                       Attributes matchingAttributes,
                                       String[] attributesToReturn)
                                       throws NamingException
Throws:
NamingException

search

NamingEnumeration<SearchResult> search(Name name,
                                       Attributes matchingAttributes)
                                       throws NamingException
Throws:
NamingException

search

NamingEnumeration<SearchResult> search(String name,
                                       Attributes matchingAttributes)
                                       throws NamingException
Throws:
NamingException

search

NamingEnumeration<SearchResult> search(Name name,
                                       String filter,
                                       SearchControls cons)
                                       throws NamingException
Throws:
NamingException

search

NamingEnumeration<SearchResult> search(String name,
                                       String filter,
                                       SearchControls cons)
                                       throws NamingException
Throws:
NamingException

search

NamingEnumeration<SearchResult> search(Name name,
                                       String filterExpr,
                                       Object[] filterArgs,
                                       SearchControls cons)
                                       throws NamingException
Throws:
NamingException

search

NamingEnumeration<SearchResult> search(String name,
                                       String filterExpr,
                                       Object[] filterArgs,
                                       SearchControls cons)
                                       throws NamingException
Throws:
NamingException