Package org.springframework.ldap.test
Class DummyDirContext
java.lang.Object
org.springframework.ldap.test.DummyDirContext
- All Implemented Interfaces:
Context
,DirContext
-
Field Summary
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
Fields inherited from interface javax.naming.directory.DirContext
ADD_ATTRIBUTE, REMOVE_ATTRIBUTE, REPLACE_ATTRIBUTE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddToEnvironment
(String propName, Object propVal) void
void
bind
(String name, Object obj, Attributes attrs) void
void
bind
(Name name, Object obj, Attributes attrs) void
close()
composeName
(String name, String prefix) composeName
(Name name, Name prefix) createSubcontext
(String name) createSubcontext
(String name, Attributes attrs) createSubcontext
(Name name) createSubcontext
(Name name, Attributes attrs) void
destroySubcontext
(String name) void
destroySubcontext
(Name name) getAttributes
(String name) getAttributes
(String name, String[] attrIds) getAttributes
(Name name) getAttributes
(Name name, String[] attrIds) Hashtable<?,
?> getNameParser
(String name) getNameParser
(Name name) getSchemaClassDefinition
(Name name) listBindings
(String name) listBindings
(Name name) lookupLink
(String name) lookupLink
(Name name) void
modifyAttributes
(String name, int modOp, Attributes attrs) void
modifyAttributes
(String name, ModificationItem[] mods) void
modifyAttributes
(Name name, int modOp, Attributes attrs) void
modifyAttributes
(Name name, ModificationItem[] mods) void
void
rebind
(String name, Object obj, Attributes attrs) void
void
rebind
(Name name, Object obj, Attributes attrs) removeFromEnvironment
(String propName) void
void
search
(String name, String filterExpr, Object[] filterArgs, SearchControls cons) search
(String name, String filter, SearchControls cons) search
(String name, Attributes matchingAttributes) search
(String name, Attributes matchingAttributes, String[] attributesToReturn) search
(Name name, String filterExpr, Object[] filterArgs, SearchControls cons) search
(Name name, String filter, SearchControls cons) search
(Name name, Attributes matchingAttributes) search
(Name name, Attributes matchingAttributes, String[] attributesToReturn) void
void
-
Constructor Details
-
DummyDirContext
public DummyDirContext()
-
-
Method Details
-
getAttributes
- Specified by:
getAttributes
in interfaceDirContext
- Throws:
NamingException
-
getAttributes
- Specified by:
getAttributes
in interfaceDirContext
- Throws:
NamingException
-
getAttributes
- Specified by:
getAttributes
in interfaceDirContext
- Throws:
NamingException
-
getAttributes
- Specified by:
getAttributes
in interfaceDirContext
- Throws:
NamingException
-
modifyAttributes
- Specified by:
modifyAttributes
in interfaceDirContext
- Throws:
NamingException
-
modifyAttributes
- Specified by:
modifyAttributes
in interfaceDirContext
- Throws:
NamingException
-
modifyAttributes
- Specified by:
modifyAttributes
in interfaceDirContext
- Throws:
NamingException
-
modifyAttributes
- Specified by:
modifyAttributes
in interfaceDirContext
- Throws:
NamingException
-
bind
- Specified by:
bind
in interfaceDirContext
- Throws:
NamingException
-
bind
- Specified by:
bind
in interfaceDirContext
- Throws:
NamingException
-
rebind
- Specified by:
rebind
in interfaceDirContext
- Throws:
NamingException
-
rebind
- Specified by:
rebind
in interfaceDirContext
- Throws:
NamingException
-
createSubcontext
- Specified by:
createSubcontext
in interfaceDirContext
- Throws:
NamingException
-
createSubcontext
- Specified by:
createSubcontext
in interfaceDirContext
- Throws:
NamingException
-
getSchema
- Specified by:
getSchema
in interfaceDirContext
- Throws:
NamingException
-
getSchema
- Specified by:
getSchema
in interfaceDirContext
- Throws:
NamingException
-
getSchemaClassDefinition
- Specified by:
getSchemaClassDefinition
in interfaceDirContext
- Throws:
NamingException
-
getSchemaClassDefinition
- Specified by:
getSchemaClassDefinition
in interfaceDirContext
- Throws:
NamingException
-
search
public NamingEnumeration<SearchResult> search(Name name, Attributes matchingAttributes, String[] attributesToReturn) throws NamingException - Specified by:
search
in interfaceDirContext
- Throws:
NamingException
-
search
public NamingEnumeration<SearchResult> search(String name, Attributes matchingAttributes, String[] attributesToReturn) throws NamingException - Specified by:
search
in interfaceDirContext
- Throws:
NamingException
-
search
public NamingEnumeration<SearchResult> search(Name name, Attributes matchingAttributes) throws NamingException - Specified by:
search
in interfaceDirContext
- Throws:
NamingException
-
search
public NamingEnumeration<SearchResult> search(String name, Attributes matchingAttributes) throws NamingException - Specified by:
search
in interfaceDirContext
- Throws:
NamingException
-
search
public NamingEnumeration<SearchResult> search(Name name, String filter, SearchControls cons) throws NamingException - Specified by:
search
in interfaceDirContext
- Throws:
NamingException
-
search
public NamingEnumeration<SearchResult> search(String name, String filter, SearchControls cons) throws NamingException - Specified by:
search
in interfaceDirContext
- Throws:
NamingException
-
search
public NamingEnumeration<SearchResult> search(Name name, String filterExpr, Object[] filterArgs, SearchControls cons) throws NamingException - Specified by:
search
in interfaceDirContext
- Throws:
NamingException
-
search
public NamingEnumeration<SearchResult> search(String name, String filterExpr, Object[] filterArgs, SearchControls cons) throws NamingException - Specified by:
search
in interfaceDirContext
- Throws:
NamingException
-
lookup
- Specified by:
lookup
in interfaceContext
- Throws:
NamingException
-
lookup
- Specified by:
lookup
in interfaceContext
- Throws:
NamingException
-
bind
- Specified by:
bind
in interfaceContext
- Throws:
NamingException
-
bind
- Specified by:
bind
in interfaceContext
- Throws:
NamingException
-
rebind
- Specified by:
rebind
in interfaceContext
- Throws:
NamingException
-
rebind
- Specified by:
rebind
in interfaceContext
- Throws:
NamingException
-
unbind
- Specified by:
unbind
in interfaceContext
- Throws:
NamingException
-
unbind
- Specified by:
unbind
in interfaceContext
- Throws:
NamingException
-
rename
- Specified by:
rename
in interfaceContext
- Throws:
NamingException
-
rename
- Specified by:
rename
in interfaceContext
- Throws:
NamingException
-
list
- Specified by:
list
in interfaceContext
- Throws:
NamingException
-
list
- Specified by:
list
in interfaceContext
- Throws:
NamingException
-
listBindings
- Specified by:
listBindings
in interfaceContext
- Throws:
NamingException
-
listBindings
- Specified by:
listBindings
in interfaceContext
- Throws:
NamingException
-
destroySubcontext
- Specified by:
destroySubcontext
in interfaceContext
- Throws:
NamingException
-
destroySubcontext
- Specified by:
destroySubcontext
in interfaceContext
- Throws:
NamingException
-
createSubcontext
- Specified by:
createSubcontext
in interfaceContext
- Throws:
NamingException
-
createSubcontext
- Specified by:
createSubcontext
in interfaceContext
- Throws:
NamingException
-
lookupLink
- Specified by:
lookupLink
in interfaceContext
- Throws:
NamingException
-
lookupLink
- Specified by:
lookupLink
in interfaceContext
- Throws:
NamingException
-
getNameParser
- Specified by:
getNameParser
in interfaceContext
- Throws:
NamingException
-
getNameParser
- Specified by:
getNameParser
in interfaceContext
- Throws:
NamingException
-
composeName
- Specified by:
composeName
in interfaceContext
- Throws:
NamingException
-
composeName
- Specified by:
composeName
in interfaceContext
- Throws:
NamingException
-
addToEnvironment
- Specified by:
addToEnvironment
in interfaceContext
- Throws:
NamingException
-
removeFromEnvironment
- Specified by:
removeFromEnvironment
in interfaceContext
- Throws:
NamingException
-
getEnvironment
- Specified by:
getEnvironment
in interfaceContext
- Throws:
NamingException
-
close
- Specified by:
close
in interfaceContext
- Throws:
NamingException
-
getNameInNamespace
- Specified by:
getNameInNamespace
in interfaceContext
- Throws:
NamingException
-