Java Doc for LdapContextImpl.java in  » Apache-Harmony-Java-SE » org-package » org » apache » harmony » jndi » provider » ldap » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Apache Harmony Java SE » org package » org.apache.harmony.jndi.provider.ldap 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.harmony.jndi.provider.ldap.LdapContextImpl

All known Subclasses:   org.apache.harmony.jndi.provider.ldap.LdapSchemaAttrDefContextImpl,  org.apache.harmony.jndi.provider.ldap.LdapSchemaClassDefContextImpl,  org.apache.harmony.jndi.provider.ldap.LdapSchemaContextImpl,
LdapContextImpl
public class LdapContextImpl implements LdapContext,EventDirContext(Code)
This context implements LdapContext, it's main entry point of all JNDI ldap operations.

Inner Class :public static interface UnsolicitedListener

Field Summary
protected  NamecontextDn
    
protected  Hashtable<Object, Object>env
    
public static  Hashtable<String, Hashtable<String, Hashtable<String, Object>>>schemaTree
    
protected  Stringsubschemasubentry
    

Constructor Summary
public  LdapContextImpl(LdapContextImpl context, Hashtable<Object, Object> environment, String dn)
    
public  LdapContextImpl(LdapClient client, Hashtable<Object, Object> environment, String dn)
     construct a new LdapContextImpl with a fresh LdapClient which didn't do ldap bind operation yet.

Method Summary
public  voidaddNamingListener(Name name, String filter, Object[] filterArgs, SearchControls searchControls, NamingListener namingListener)
    
public  voidaddNamingListener(Name name, String filter, SearchControls searchControls, NamingListener namingListener)
    
public  voidaddNamingListener(String name, String filter, Object[] filterArgs, SearchControls searchControls, NamingListener namingListener)
    
public  voidaddNamingListener(String name, String filter, SearchControls searchControls, NamingListener namingListener)
    
public  voidaddNamingListener(Name name, int scope, NamingListener namingListener)
    
public  voidaddNamingListener(String s, int i, NamingListener namingListener)
    
public  ObjectaddToEnvironment(String s, Object o)
    
public  voidbind(Name name, Object obj, Attributes attributes)
    
public  voidbind(String s, Object obj, Attributes attributes)
    
public  voidbind(Name n, Object o)
    
public  voidbind(String s, Object o)
    
public  voidclose()
    
public  NamecomposeName(Name name, Name prefix)
     Only instance of LdapName or CompositeName are acceptable.
public  StringcomposeName(String s, String pfx)
    
protected  NameconvertFromStringToName(String s)
     convert String name to Name instance, we assume the String name parameter is using composite name syntax (see LDAP service providers guidlines, part 4).
protected  StringconvertToRelativeName(String dn, String base)
     convert absolute dn to the dn relatived to the dn of targetContextDN.
public  DirContextcreateSubcontext(Name name, Attributes attributes)
    
public  DirContextcreateSubcontext(String s, Attributes attributes)
    
public  ContextcreateSubcontext(Name name)
    
public  ContextcreateSubcontext(String s)
    
public  voiddestroySubcontext(Name name)
    
public  voiddestroySubcontext(String s)
    
protected  voiddoBasicOperation(LdapOperation op)
     Do operations with one request and one response which contains LdapResult.
 LdapSearchResultdoSearch(SearchOp op)
    
 LdapSearchResultdoSearch(String dn, Filter filter, SearchControls controls)
    
public  ExtendedResponseextendedOperation(ExtendedRequest request)
    
protected  voidfinalize()
    
protected  ContextfindNnsContext(Name name)
    
 Hashtable<String, Object>findSchemaDefInfo(String schemaType, String className)
    
public  AttributesgetAttributes(Name name)
    
public  AttributesgetAttributes(Name name, String[] as)
    
public  AttributesgetAttributes(String s)
    
public  AttributesgetAttributes(String s, String[] as)
    
public  Control[]getConnectControls()
    
public  HashtablegetEnvironment()
    
public  StringgetNameInNamespace()
    
public  NameParsergetNameParser(Name name)
    
public  NameParsergetNameParser(String s)
    
public  Control[]getRequestControls()
    
public  Control[]getResponseControls()
    
public  DirContextgetSchema(Name name)
    
public  DirContextgetSchema(String s)
    
 DirContextgetSchemaAttributeDefinition(String name)
    
public  DirContextgetSchemaClassDefinition(Name name)
    
public  DirContextgetSchemaClassDefinition(String s)
    
protected  StringgetTargetDN(Name name, Name prefix)
    
public  NamingEnumeration<NameClassPair>list(Name name)
    
public  NamingEnumeration<NameClassPair>list(String s)
    
public  NamingEnumeration<Binding>listBindings(Name name)
    
public  NamingEnumeration<Binding>listBindings(String s)
    
public  Objectlookup(Name name)
    
public  Objectlookup(String s)
    
public  ObjectlookupLink(Name name)
    
public  ObjectlookupLink(String s)
    
public  voidmodifyAttributes(Name name, int i, Attributes attributes)
    
public  voidmodifyAttributes(Name name, ModificationItem[] modificationItems)
    
public  voidmodifyAttributes(String s, int i, Attributes attributes)
    
public  voidmodifyAttributes(String s, ModificationItem[] modificationItems)
    
public  LdapContextnewInstance(Control[] reqCtrls)
    
public  voidrebind(Name name, Object obj, Attributes attributes)
    
public  voidrebind(String s, Object obj, Attributes attributes)
    
public  voidrebind(Name n, Object o)
    
public  voidrebind(String s, Object o)
    
public  voidreconnect(Control[] ac)
    
public  ObjectremoveFromEnvironment(String s)
    
public  voidremoveNamingListener(NamingListener namingListener)
    
public  voidrename(Name nOld, Name nNew)
    
public  voidrename(String sOld, String sNew)
    
public  NamingEnumeration<SearchResult>search(Name name, Attributes attributes)
    
public  NamingEnumeration<SearchResult>search(Name name, Attributes attributes, String[] as)
    
public  NamingEnumeration<SearchResult>search(Name name, String filter, Object[] objs, SearchControls searchControls)
    
public  NamingEnumeration<SearchResult>search(Name name, String filter, SearchControls searchControls)
    
public  NamingEnumeration<SearchResult>search(String name, Attributes attributes)
    
public  NamingEnumeration<SearchResult>search(String name, Attributes attributes, String[] as)
    
public  NamingEnumeration<SearchResult>search(String name, String filter, Object[] objs, SearchControls searchControls)
    
public  NamingEnumeration<SearchResult>search(String name, String filter, SearchControls searchControls)
    
public  voidsetRequestControls(Control[] controls)
    
public  booleantargetMustExist()
    
public  voidunbind(Name n)
    
public  voidunbind(String s)
    

Field Detail
contextDn
protected Name contextDn(Code)
name of the context



env
protected Hashtable<Object, Object> env(Code)
environment properties for this context



schemaTree
public static Hashtable<String, Hashtable<String, Hashtable<String, Object>>> schemaTree(Code)



subschemasubentry
protected String subschemasubentry(Code)




Constructor Detail
LdapContextImpl
public LdapContextImpl(LdapContextImpl context, Hashtable<Object, Object> environment, String dn) throws InvalidNameException(Code)
construct a new inherit LdapContextImpl
Parameters:
  context -
Parameters:
  environment -
Parameters:
  dn -
throws:
  InvalidNameException -



LdapContextImpl
public LdapContextImpl(LdapClient client, Hashtable<Object, Object> environment, String dn) throws NamingException(Code)
construct a new LdapContextImpl with a fresh LdapClient which didn't do ldap bind operation yet.
Parameters:
  client -
Parameters:
  environment -
Parameters:
  dn -
throws:
  NamingException -




Method Detail
addNamingListener
public void addNamingListener(Name name, String filter, Object[] filterArgs, SearchControls searchControls, NamingListener namingListener) throws NamingException(Code)



addNamingListener
public void addNamingListener(Name name, String filter, SearchControls searchControls, NamingListener namingListener) throws NamingException(Code)



addNamingListener
public void addNamingListener(String name, String filter, Object[] filterArgs, SearchControls searchControls, NamingListener namingListener) throws NamingException(Code)



addNamingListener
public void addNamingListener(String name, String filter, SearchControls searchControls, NamingListener namingListener) throws NamingException(Code)



addNamingListener
public void addNamingListener(Name name, int scope, NamingListener namingListener) throws NamingException(Code)



addNamingListener
public void addNamingListener(String s, int i, NamingListener namingListener) throws NamingException(Code)



addToEnvironment
public Object addToEnvironment(String s, Object o) throws NamingException(Code)



bind
public void bind(Name name, Object obj, Attributes attributes) throws NamingException(Code)



bind
public void bind(String s, Object obj, Attributes attributes) throws NamingException(Code)



bind
public void bind(Name n, Object o) throws NamingException(Code)



bind
public void bind(String s, Object o) throws NamingException(Code)



close
public void close() throws NamingException(Code)



composeName
public Name composeName(Name name, Name prefix) throws NamingException(Code)
Only instance of LdapName or CompositeName are acceptable. If both name and prefix are LdapName, a new LdapName instance composed of the two name will be return , else a CompositeName will be return.



composeName
public String composeName(String s, String pfx) throws NamingException(Code)



convertFromStringToName
protected Name convertFromStringToName(String s) throws InvalidNameException(Code)
convert String name to Name instance, we assume the String name parameter is using composite name syntax (see LDAP service providers guidlines, part 4).
Parameters:
  s - String name to be converted Name instance equivalent to s
throws:
  InvalidNameException - occurs error while converting



convertToRelativeName
protected String convertToRelativeName(String dn, String base)(Code)
convert absolute dn to the dn relatived to the dn of targetContextDN.
Parameters:
  dn - absolute dn
Parameters:
  base - base dn of the relative name dn relatived to the dn of base



createSubcontext
public DirContext createSubcontext(Name name, Attributes attributes) throws NamingException(Code)



createSubcontext
public DirContext createSubcontext(String s, Attributes attributes) throws NamingException(Code)



createSubcontext
public Context createSubcontext(Name name) throws NamingException(Code)



createSubcontext
public Context createSubcontext(String s) throws NamingException(Code)



destroySubcontext
public void destroySubcontext(Name name) throws NamingException(Code)



destroySubcontext
public void destroySubcontext(String s) throws NamingException(Code)



doBasicOperation
protected void doBasicOperation(LdapOperation op) throws NamingException(Code)
Do operations with one request and one response which contains LdapResult. This is the convenience way to do the most of ldap operation except search opeartion which has multi-response, bind operation, abandon and unbind operations which have no response.
Parameters:
  op -
throws:
  NamingException -



doSearch
LdapSearchResult doSearch(SearchOp op) throws NamingException(Code)



doSearch
LdapSearchResult doSearch(String dn, Filter filter, SearchControls controls) throws NamingException(Code)



extendedOperation
public ExtendedResponse extendedOperation(ExtendedRequest request) throws NamingException(Code)



finalize
protected void finalize()(Code)



findNnsContext
protected Context findNnsContext(Name name) throws NamingException(Code)



findSchemaDefInfo
Hashtable<String, Object> findSchemaDefInfo(String schemaType, String className)(Code)



getAttributes
public Attributes getAttributes(Name name) throws NamingException(Code)



getAttributes
public Attributes getAttributes(Name name, String[] as) throws NamingException(Code)



getAttributes
public Attributes getAttributes(String s) throws NamingException(Code)



getAttributes
public Attributes getAttributes(String s, String[] as) throws NamingException(Code)



getConnectControls
public Control[] getConnectControls() throws NamingException(Code)



getEnvironment
public Hashtable getEnvironment() throws NamingException(Code)



getNameInNamespace
public String getNameInNamespace() throws NamingException(Code)



getNameParser
public NameParser getNameParser(Name name) throws NamingException(Code)



getNameParser
public NameParser getNameParser(String s) throws NamingException(Code)



getRequestControls
public Control[] getRequestControls() throws NamingException(Code)



getResponseControls
public Control[] getResponseControls() throws NamingException(Code)



getSchema
public DirContext getSchema(Name name) throws NamingException(Code)



getSchema
public DirContext getSchema(String s) throws NamingException(Code)



getSchemaAttributeDefinition
DirContext getSchemaAttributeDefinition(String name) throws NamingException(Code)



getSchemaClassDefinition
public DirContext getSchemaClassDefinition(Name name) throws NamingException(Code)



getSchemaClassDefinition
public DirContext getSchemaClassDefinition(String s) throws NamingException(Code)



getTargetDN
protected String getTargetDN(Name name, Name prefix) throws NamingException, InvalidNameException(Code)



list
public NamingEnumeration<NameClassPair> list(Name name) throws NamingException(Code)



list
public NamingEnumeration<NameClassPair> list(String s) throws NamingException(Code)



listBindings
public NamingEnumeration<Binding> listBindings(Name name) throws NamingException(Code)



listBindings
public NamingEnumeration<Binding> listBindings(String s) throws NamingException(Code)



lookup
public Object lookup(Name name) throws NamingException(Code)



lookup
public Object lookup(String s) throws NamingException(Code)



lookupLink
public Object lookupLink(Name name) throws NamingException(Code)



lookupLink
public Object lookupLink(String s) throws NamingException(Code)



modifyAttributes
public void modifyAttributes(Name name, int i, Attributes attributes) throws NamingException(Code)



modifyAttributes
public void modifyAttributes(Name name, ModificationItem[] modificationItems) throws NamingException(Code)



modifyAttributes
public void modifyAttributes(String s, int i, Attributes attributes) throws NamingException(Code)



modifyAttributes
public void modifyAttributes(String s, ModificationItem[] modificationItems) throws NamingException(Code)



newInstance
public LdapContext newInstance(Control[] reqCtrls) throws NamingException(Code)



rebind
public void rebind(Name name, Object obj, Attributes attributes) throws NamingException(Code)



rebind
public void rebind(String s, Object obj, Attributes attributes) throws NamingException(Code)



rebind
public void rebind(Name n, Object o) throws NamingException(Code)



rebind
public void rebind(String s, Object o) throws NamingException(Code)



reconnect
public void reconnect(Control[] ac) throws NamingException(Code)



removeFromEnvironment
public Object removeFromEnvironment(String s) throws NamingException(Code)



removeNamingListener
public void removeNamingListener(NamingListener namingListener) throws NamingException(Code)



rename
public void rename(Name nOld, Name nNew) throws NamingException(Code)



rename
public void rename(String sOld, String sNew) throws NamingException(Code)



search
public NamingEnumeration<SearchResult> search(Name name, Attributes attributes) throws NamingException(Code)



search
public NamingEnumeration<SearchResult> search(Name name, Attributes attributes, String[] as) throws NamingException(Code)



search
public NamingEnumeration<SearchResult> search(Name name, String filter, Object[] objs, SearchControls searchControls) throws NamingException(Code)



search
public NamingEnumeration<SearchResult> search(Name name, String filter, SearchControls searchControls) throws NamingException(Code)



search
public NamingEnumeration<SearchResult> search(String name, Attributes attributes) throws NamingException(Code)



search
public NamingEnumeration<SearchResult> search(String name, Attributes attributes, String[] as) throws NamingException(Code)



search
public NamingEnumeration<SearchResult> search(String name, String filter, Object[] objs, SearchControls searchControls) throws NamingException(Code)



search
public NamingEnumeration<SearchResult> search(String name, String filter, SearchControls searchControls) throws NamingException(Code)



setRequestControls
public void setRequestControls(Control[] controls) throws NamingException(Code)



targetMustExist
public boolean targetMustExist() throws NamingException(Code)



unbind
public void unbind(Name n) throws NamingException(Code)



unbind
public void unbind(String s) throws NamingException(Code)



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.