Class DummyDirContext
java.lang.Object
com.liferay.portal.security.ldap.dummy.DummyContext
com.liferay.portal.security.ldap.dummy.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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
bind
(String name, Object object, Attributes attributes) void
bind
(Name name, Object object, Attributes attributes) createSubcontext
(String name, Attributes attributes) createSubcontext
(Name name, Attributes attributes) getAttributes
(String name) getAttributes
(String name, String[] attrIds) getAttributes
(Name name) getAttributes
(Name name, String[] attrIds) getSchemaClassDefinition
(Name name) void
modifyAttributes
(String name, int modificationOp, Attributes attributes) void
modifyAttributes
(String name, ModificationItem[] mods) void
modifyAttributes
(Name name, int modificationOp, Attributes attributes) void
modifyAttributes
(Name name, ModificationItem[] mods) void
rebind
(String name, Object object, Attributes attributes) void
rebind
(Name name, Object object, Attributes attributes) 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) Methods inherited from class com.liferay.portal.security.ldap.dummy.DummyContext
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
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
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
-
Constructor Details
-
DummyDirContext
public DummyDirContext()
-
-
Method Details
-
bind
- Specified by:
bind
in interfaceDirContext
- Throws:
NamingException
-
bind
- Specified by:
bind
in interfaceDirContext
- Throws:
NamingException
-
createSubcontext
- Specified by:
createSubcontext
in interfaceDirContext
- Throws:
NamingException
-
createSubcontext
- Specified by:
createSubcontext
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
-
getAttributes
- Specified by:
getAttributes
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
-
modifyAttributes
public void modifyAttributes(Name name, int modificationOp, Attributes attributes) throws NamingException - Specified by:
modifyAttributes
in interfaceDirContext
- Throws:
NamingException
-
modifyAttributes
- Specified by:
modifyAttributes
in interfaceDirContext
- Throws:
NamingException
-
modifyAttributes
public void modifyAttributes(String name, int modificationOp, Attributes attributes) throws NamingException - Specified by:
modifyAttributes
in interfaceDirContext
- Throws:
NamingException
-
modifyAttributes
- Specified by:
modifyAttributes
in interfaceDirContext
- Throws:
NamingException
-
rebind
- Specified by:
rebind
in interfaceDirContext
- Throws:
NamingException
-
rebind
- Specified by:
rebind
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(Name name, Attributes matchingAttributes, String[] attributesToReturn) 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(Name name, String filter, SearchControls cons) 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(String name, Attributes matchingAttributes, String[] attributesToReturn) 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
-
search
public NamingEnumeration<SearchResult> search(String name, String filter, SearchControls cons) throws NamingException - Specified by:
search
in interfaceDirContext
- Throws:
NamingException
-