Java Doc for LDAPNovell.java in  » Groupware » hipergate » com » knowgate » 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 » Groupware » hipergate » com.knowgate.ldap 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.knowgate.ldap.LDAPModel
      com.knowgate.ldap.LDAPNovell

LDAPNovell
public class LDAPNovell extends LDAPModel (Code)
Very Basic LDAP interface API implementation
author:
   Sergio Montoro Ten
version:
   2.1



Constructor Summary
public  LDAPNovell()
    

Method Summary
public  voidaddAddress(Connection oJdbc, String sAddrId)
    

Add an address from v_ldap_contacts view to an LDAP directory

Addresses may be either public or private depending on the value of field v_ldap_contacts.bo_private.
public  voidaddOrReplaceAddress(Connection oJdbc, String sAddrId)
    

Add or replace an Address

This method is the same as addAddress() except that it does not raise an LDAPException if address already exists; in that case address is just replaced.
public  voidaddOrReplaceUser(Connection oJdbc, String sUserId)
    
public  voidaddUser(Connection oJdbc, String sUserId)
    
public  voidbind(String sUser, String sPass)
    

Synchronously authenticates to the LDAP server using LDAP_V3.

If the object has been disconnected from an LDAP server, this method attempts to reconnect to the server.
public  voidconnect(String sConnStr)
    

Connect to LDAP Service

At this point, there is no authentication, and any operations are conducted as an anonymous client.
public  voidconnectAndBind(Properties oProps)
    
public  voiddeleteAddress(Connection oJdbc, String sAddrId)
    
public  voiddeleteUser(Connection oJdbc, String sUserId)
    
public  voiddeleteWorkArea(String sDomainNm, String sWorkAreaNm)
    
public  voiddisconnect()
    

Synchronously disconnects from the LDAP server

The disconnect method abandons any outstanding requests, issues an unbind request to the server, and then closes the socket.
public  voiddropAll()
    
public  booleanexists(String sSearchString)
    
public  voidloadDomain(Connection oJdbc, int iDomainId)
    
public  voidloadWorkArea(Connection oJdbc, String sDomainNm, String sWorkAreaNm)
    
public static  voidmain(String[] argv)
    


Constructor Detail
LDAPNovell
public LDAPNovell()(Code)




Method Detail
addAddress
public void addAddress(Connection oJdbc, String sAddrId) throws com.knowgate.ldap.LDAPException, java.sql.SQLException, java.lang.IllegalStateException(Code)

Add an address from v_ldap_contacts view to an LDAP directory

Addresses may be either public or private depending on the value of field v_ldap_contacts.bo_private. If bo_private is zero then the address is public, if bo_private is not zero then the address is private.
Private addresses are only visible to the user that created them.
Public addresses are stored at cn=user@mail.com,dc=publicContacts,dc=workarea_name,dc=domain_name,dc=hipergate,dc=org
Private addresses are stored at cn=user@mail.com,dc=privateContacts,cn=owner_guid,dc=users,dc=domain_name,dc=hipergate,dc=org
Parameters:
  oJdbc - JDBC Connection
Parameters:
  sAddrId - GUID of address to be added
throws:
  com.knowgate.ldap.LDAPException - If address already exists at directory
throws:
  SQLException - If sAddrId is not found at v_ldap_contacts SQL view
throws:
  IllegalStateException - If not connected to LDAP



addOrReplaceAddress
public void addOrReplaceAddress(Connection oJdbc, String sAddrId) throws com.knowgate.ldap.LDAPException, java.sql.SQLException(Code)

Add or replace an Address

This method is the same as addAddress() except that it does not raise an LDAPException if address already exists; in that case address is just replaced.
Parameters:
  oJdbc - JDBC Connection
Parameters:
  sAddrId - GUID of address to be added or replaced
throws:
  com.knowgate.ldap.LDAPException -
throws:
  java.sql.SQLException -



addOrReplaceUser
public void addOrReplaceUser(Connection oJdbc, String sUserId) throws com.knowgate.ldap.LDAPException, java.sql.SQLException(Code)
Add or replace a User from v_ldap_users SQL view to the LDAP directory
Parameters:
  oJdbc - JDBC database connection
Parameters:
  sUserId - GUID of user to be added or replaced
throws:
  com.knowgate.ldap.LDAPException -
throws:
  java.sql.SQLException -



addUser
public void addUser(Connection oJdbc, String sUserId) throws com.knowgate.ldap.LDAPException, java.sql.SQLException, IllegalStateException(Code)

Add a User from v_ldap_users view to an LDAP directory

Users are added under cn=user@mail.com,dc=users,dc=workarea_name,dc=domain_name,dc=hipergate,dc=org
Parameters:
  oJdbc - JDBC Connection
Parameters:
  sUserId - GUID of user to be added
throws:
  LDAPException -
throws:
  SQLException - If sUserId is not found at v_ldap_users SQL view
throws:
  IllegalStateException - If not connected to LDAP



bind
public void bind(String sUser, String sPass) throws com.knowgate.ldap.LDAPException, IllegalStateException(Code)

Synchronously authenticates to the LDAP server using LDAP_V3.

If the object has been disconnected from an LDAP server, this method attempts to reconnect to the server. If the object has already authenticated, the old authentication is discarded.
Parameters:
  sUser - If non-null and non-empty, specifies that the connection and all operations through it should be authenticated with dn as the distinguished name.
Parameters:
  sPass - If non-null and non-empty, specifies that the connection and all operations through it should be authenticated with dn as the distinguished name and passwd as password.
throws:
  LDAPException -
throws:
  IllegalStateException - If not conencted to LDAP



connect
public void connect(String sConnStr) throws com.knowgate.ldap.LDAPException(Code)

Connect to LDAP Service

At this point, there is no authentication, and any operations are conducted as an anonymous client.
Parameters:
  sConnStr - ldap://host:port/distinguished_name
Example "ldap://fobos.kg.int:389/dc=hipergate,dc=org"
throws:
  com.knowgate.ldap.LDAPException -



connectAndBind
public void connectAndBind(Properties oProps) throws com.knowgate.ldap.LDAPException(Code)

Connect to LDAP Server using a Properties object


Parameters:
  oProps - Properties for connecting to LDAP server.
For example :
ldapconnect=ldap://fobos.kg.int:389/dc=hipergate,dc=org
ldapuser=cn=Manager,dc=hipergate,dc=org
ldappassword=manager

throws:
  com.knowgate.ldap.LDAPException -



deleteAddress
public void deleteAddress(Connection oJdbc, String sAddrId) throws com.knowgate.ldap.LDAPException, java.sql.SQLException, java.lang.IllegalStateException(Code)
Delete an address from LDAP directory
Parameters:
  oJdbc - JDBC Connection
Parameters:
  sAddrId - GUID of address to be deleted
throws:
  com.knowgate.ldap.LDAPException -
throws:
  SQLException - If sAddrId is not found at v_ldap_contacts SQL view
throws:
  IllegalStateException - If not connected to LDAP



deleteUser
public void deleteUser(Connection oJdbc, String sUserId) throws com.knowgate.ldap.LDAPException, java.sql.SQLException(Code)
Delete a User from LDAP directory
Parameters:
  oJdbc - JDBC Connection
Parameters:
  sUserId - GUID of user to be added
throws:
  com.knowgate.ldap.LDAPException -
throws:
  SQLException - If sUserId is not found at v_ldap_users SQL view



deleteWorkArea
public void deleteWorkArea(String sDomainNm, String sWorkAreaNm) throws com.knowgate.ldap.LDAPException, IllegalStateException(Code)

Delete a WorkArea from the LDAP directory

All entries under dc=sDomainNm,dc=hipergate,dc=org that match dc=sWorkAreaNm are deleted
Parameters:
  sDomainNm - Domain Name
Parameters:
  sWorkAreaNm - WorkArea Name
throws:
  com.knowgate.ldap.LDAPException -
throws:
  IllegalStateException - If not connected to LDAP



disconnect
public void disconnect() throws com.knowgate.ldap.LDAPException(Code)

Synchronously disconnects from the LDAP server

The disconnect method abandons any outstanding requests, issues an unbind request to the server, and then closes the socket.
throws:
  com.knowgate.ldap.LDAPException -



dropAll
public void dropAll() throws com.knowgate.ldap.LDAPException, IllegalStateException(Code)
Drop an entire LDAP directory
throws:
  com.knowgate.ldap.LDAPException -
throws:
  IllegalStateException - If not connected to LDAP



exists
public boolean exists(String sSearchString) throws com.knowgate.ldap.LDAPException(Code)

Check whether or not an LDAP entry exists

The directory is searched from the connection string key.
For example if ldapconnect connection property is ldap://192.168.1.1:389/dc=hipergate,dc=org then only entries under "dc=hipergate,dc=org" will be searched
Parameters:
  sSearchString - LDAP search string, for example "cn=user@mail.com,dc=publicContacts,dc=my_workarea,dc=my_domain"
throws:
  com.knowgate.ldap.LDAPException -



loadDomain
public void loadDomain(Connection oJdbc, int iDomainId) throws com.knowgate.ldap.LDAPException, java.sql.SQLException(Code)

Load all users and contact address from a Domain into an LDAP directory


Parameters:
  oJdbc - JDBC Connection
Parameters:
  iDomainId - Numeric Identifier for Domain
throws:
  com.knowgate.ldap.LDAPException -
throws:
  SQLException -



loadWorkArea
public void loadWorkArea(Connection oJdbc, String sDomainNm, String sWorkAreaNm) throws com.knowgate.ldap.LDAPException, java.sql.SQLException(Code)

Load all users and contact address from a WorkArea into an LDAP directory


Parameters:
  oJdbc - JDBC Connection
Parameters:
  sDomainNm - Name for Domain containing the WorkArea
Parameters:
  sWorkAreaNm - WorkArea Name
throws:
  com.knowgate.ldap.LDAPException -
throws:
  SQLException -



main
public static void main(String[] argv) throws java.lang.ClassNotFoundException, java.io.IOException, java.sql.SQLException, com.knowgate.ldap.LDAPException(Code)



Fields inherited from com.knowgate.ldap.LDAPModel
final public static short ACCOUNT_CANCELLED(Code)(Java Doc)
final public static short ACCOUNT_DEACTIVATED(Code)(Java Doc)
final public static short DOMAIN_NOT_FOUND(Code)(Java Doc)
final public static short INTERNAL_ERROR(Code)(Java Doc)
final public static short INVALID_PASSWORD(Code)(Java Doc)
final public static short PASSWORD_EXPIRED(Code)(Java Doc)
final public static int PWD_CLEAR_TEXT(Code)(Java Doc)
final public static int PWD_DTIP_RC4(Code)(Java Doc)
final public static short SESSION_EXPIRED(Code)(Java Doc)
final public static short USER_NOT_FOUND(Code)(Java Doc)
final public static short WORKAREA_NOT_FOUND(Code)(Java Doc)
final public static short WORKAREA_NOT_SET(Code)(Java Doc)

Methods inherited from com.knowgate.ldap.LDAPModel
abstract public void addAddress(Connection oJdbc, String sAddrId) throws LDAPException, SQLException(Code)(Java Doc)
abstract public void addOrReplaceAddress(Connection oJdbc, String sAddrId) throws LDAPException, SQLException(Code)(Java Doc)
abstract public void addOrReplaceUser(Connection oJdbc, String sUserId) throws LDAPException, SQLException(Code)(Java Doc)
abstract public void addUser(Connection oJdbc, String sUserId) throws LDAPException, SQLException(Code)(Java Doc)
abstract public void bind(String sUser, String sPass) throws LDAPException(Code)(Java Doc)
abstract public void connect(String sConnStr) throws LDAPException(Code)(Java Doc)
abstract public void connectAndBind(Properties oProps) throws LDAPException(Code)(Java Doc)
abstract public void deleteAddress(Connection oJdbc, String sAddrId) throws LDAPException, SQLException(Code)(Java Doc)
abstract public void deleteUser(Connection oJdbc, String sUserId) throws LDAPException, SQLException(Code)(Java Doc)
abstract public void deleteWorkArea(String sDomainNm, String sWorkAreaNm) throws LDAPException, IllegalStateException(Code)(Java Doc)
abstract public void disconnect() throws LDAPException(Code)(Java Doc)
abstract public void dropAll() throws LDAPException(Code)(Java Doc)
abstract public boolean exists(String sSearchString) throws LDAPException(Code)(Java Doc)
abstract public void loadDomain(Connection oJdbc, int iDomainId) throws LDAPException, SQLException(Code)(Java Doc)
abstract public void loadWorkArea(Connection oJdbc, String sDomainNm, String sWorkAreaNm) throws LDAPException, SQLException(Code)(Java Doc)

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.