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