]> git.argeo.org Git - lgpl/argeo-commons.git/blobdiff - org.argeo.util/src/org/argeo/util/directory/ldap/LdapDirectoryDao.java
Multiple user referentials working with IPA.
[lgpl/argeo-commons.git] / org.argeo.util / src / org / argeo / util / directory / ldap / LdapDirectoryDao.java
index 3a0f4e6e019987c517250f86913b02daf938c5cc..c70d8c54f08a32d0e2ebcc8f98115289fdd630a0 100644 (file)
@@ -9,10 +9,15 @@ import javax.naming.ldap.LdapName;
 import org.argeo.util.directory.HierarchyUnit;
 import org.argeo.util.transaction.WorkingCopyProcessor;
 
+/** Low-level access to an LDAP/LDIF directory. */
 public interface LdapDirectoryDao extends WorkingCopyProcessor<LdapEntryWorkingCopy> {
-       Boolean daoHasEntry(LdapName dn);
+       boolean checkConnection();
 
-       LdapEntry daoGetEntry(LdapName name) throws NameNotFoundException;
+       boolean entryExists(LdapName dn);
+
+       LdapEntry doGetEntry(LdapName name) throws NameNotFoundException;
+
+       Attributes doGetAttributes(LdapName name);
 
        List<LdapEntry> doGetEntries(LdapName searchBase, String filter, boolean deep);
 
@@ -22,11 +27,11 @@ public interface LdapDirectoryDao extends WorkingCopyProcessor<LdapEntryWorkingC
 
        HierarchyUnit doGetHierarchyUnit(LdapName dn);
 
-       LdapEntry newUser(LdapName name, Attributes attrs);
+       LdapEntry newUser(LdapName name);
+
+       LdapEntry newGroup(LdapName name);
 
-       LdapEntry newGroup(LdapName name, Attributes attrs);
-       
        void init();
-       
+
        void destroy();
 }