]> git.argeo.org Git - lgpl/argeo-commons.git/blobdiff - org.argeo.util/src/org/argeo/osgi/useradmin/UserDirectory.java
Start clarifying user admin.
[lgpl/argeo-commons.git] / org.argeo.util / src / org / argeo / osgi / useradmin / UserDirectory.java
index ff80c5ac8385bf4aacac7699102754004cbdb6a6..7d773a9e72283aed73fabe695314e1cd2da12a4f 100644 (file)
@@ -1,15 +1,22 @@
 package org.argeo.osgi.useradmin;
 
-import javax.naming.ldap.LdapName;
-import javax.transaction.xa.XAResource;
+import java.util.Optional;
+
+import org.argeo.osgi.transaction.WorkControl;
 
 /** Information about a user directory. */
 public interface UserDirectory {
-       /** The base DN of all entries in this user directory */
-       LdapName getBaseDn();
+       /**
+        * The base of the hierarchy defined by this directory. This could typically be
+        * an LDAP base DN.
+        */
+       String getBasePath();
+
+//     /** The base DN of all entries in this user directory */
+//     LdapName getBaseDn();
 
-       /** The related {@link XAResource} */
-       XAResource getXaResource();
+//     /** The related {@link XAResource} */
+//     XAResource getXaResource();
 
        boolean isReadOnly();
 
@@ -22,4 +29,9 @@ public interface UserDirectory {
        String getGroupObjectClass();
 
        String getGroupBase();
+
+       Optional<String> getRealm();
+
+       @Deprecated
+       void setTransactionControl(WorkControl transactionControl);
 }