KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > exoplatform > services > ldap > LDAPService


1 package org.exoplatform.services.ldap;
2
3 import org.exoplatform.services.exception.ExoServiceException;
4 import netscape.ldap.*;
5
6
7
8 /**
9  * Created by the eXo platform team
10  * User: Daniel Summer
11  * Date: 25/5/2004
12  *
13  * interface abstracted from JSDK
14  */

15 public interface LDAPService {
16     
17     public void connect(
18         java.lang.String JavaDoc host,
19         int port)
20         throws ExoServiceException;
21     public void authenticate(
22         java.lang.String JavaDoc dn,
23         java.lang.String JavaDoc passwd)
24         throws ExoServiceException;
25     public void add(LDAPEntry entry) throws ExoServiceException;
26     public void delete(java.lang.String JavaDoc DN) throws ExoServiceException;
27     public void modify(java.lang.String JavaDoc DN, LDAPModification mod) throws ExoServiceException;
28     public void modify(java.lang.String JavaDoc DN, LDAPModification[] mods) throws ExoServiceException;
29     public void modify(java.lang.String JavaDoc DN, LDAPModificationSet mods) throws ExoServiceException;
30            
31     public LDAPEntry read(java.lang.String JavaDoc DN) throws ExoServiceException;
32     public void rename(
33         java.lang.String JavaDoc DN,
34         java.lang.String JavaDoc newRDN,
35         boolean deleteOldRDN) throws ExoServiceException;
36     public LDAPSearchResults search(
37         java.lang.String JavaDoc base,
38         int scope,
39         java.lang.String JavaDoc filter,
40         java.lang.String JavaDoc[] attrs,
41         boolean attrsOnly) throws ExoServiceException;
42     public void disconnect() throws ExoServiceException;
43
44
45 }
46
Popular Tags