package javax.naming.directory;
import javax.naming.Context;
import javax.naming.Name;
import javax.naming.NamingEnumeration;
import javax.naming.NamingException;
public interface DirContext extends Context
{
int ADD_ATTRIBUTE = 1;
int REPLACE_ATTRIBUTE = 2;
int REMOVE_ATTRIBUTE = 3;
Attributes getAttributes (String name) throws NamingException;
Attributes getAttributes (String name, String[] attrIds) throws NamingException;
Attributes getAttributes (Name name) throws NamingException;
Attributes getAttributes(Name name, String[] attrIds) throws NamingException;
void modifyAttributes(Name name, int mod_op, Attributes attrs) throws NamingException;
void modifyAttributes(String name, int mod_op, Attributes attrs) throws NamingException;
void modifyAttributes(Name name, ModificationItem[] mods) throws NamingException;
void modifyAttributes(String name, ModificationItem[] mods) throws NamingException;
void bind(Name name, Object obj, Attributes attrs) throws NamingException;
void bind(String name, Object obj, Attributes attrs) throws NamingException;
void rebind(Name name, Object obj, Attributes attrs) throws NamingException;
void rebind(String name, Object obj, Attributes attrs) throws NamingException;
DirContext createSubcontext(Name name, Attributes attrs) throws NamingException;
DirContext createSubcontext(String name, Attributes attrs) throws NamingException;
DirContext getSchema(Name name) throws NamingException;
DirContext getSchema(String name) throws NamingException;
DirContext getSchemaClassDefinition(Name name) throws NamingException;
DirContext getSchemaClassDefinition(String name) throws NamingException;
NamingEnumeration search(Name name, Attributes matchingAttributes, String[] attributesToReturn) throws NamingException;
NamingEnumeration search(String name, Attributes matchingAttributes, String[] attributesToReturn) throws NamingException;
NamingEnumeration search(Name name, Attributes matchingAttributes) throws NamingException;
NamingEnumeration search(String name, Attributes matchingAttributes) throws NamingException;
NamingEnumeration search(Name name, String filter, SearchControls cons) throws NamingException;
NamingEnumeration search(String name, String filter, SearchControls cons) throws NamingException;
NamingEnumeration search(Name name, String filterExpr, Object[] filterArgs, SearchControls cons) throws NamingException;
NamingEnumeration search(String name, String filterExpr, Object[] filterArgs, SearchControls cons) throws NamingException;
}