X-Git-Url: https://git.argeo.org/?a=blobdiff_plain;f=org.argeo.util%2Fsrc%2Forg%2Fargeo%2Futil%2Fdirectory%2FDirectory.java;h=9e564ced9d339ba1255f23ce3bf389782831454d;hb=285c23f26c4d634cd139d393ebcb708187d5e960;hp=b3dfa8b05cc8ae208ec65508eec06f42f5453b25;hpb=e2ffdf6872592aa22d0de2b0ec69ee4eca698c45;p=lgpl%2Fargeo-commons.git diff --git a/org.argeo.util/src/org/argeo/util/directory/Directory.java b/org.argeo.util/src/org/argeo/util/directory/Directory.java index b3dfa8b05..9e564ced9 100644 --- a/org.argeo.util/src/org/argeo/util/directory/Directory.java +++ b/org.argeo.util/src/org/argeo/util/directory/Directory.java @@ -1,36 +1,41 @@ package org.argeo.util.directory; +import java.util.Dictionary; import java.util.Optional; import org.argeo.util.transaction.WorkControl; -public interface Directory { - /** - * The base of the hierarchy defined by this directory. This could typically be - * an LDAP base DN. - */ - String getContext(); - +/** An information directory (typicylly LDAP). */ +public interface Directory extends HierarchyUnit { String getName(); + /** Whether this directory is read only. */ boolean isReadOnly(); + /** Whether this directory is disabled. */ boolean isDisabled(); - String getUserObjectClass(); - - String getGroupObjectClass(); - + /** The realm (typically Kerberos) of this directory. */ Optional getRealm(); + /** Sets the transaction control used by this directory when editing. */ void setTransactionControl(WorkControl transactionControl); /* - * HIERARCHY + * METADATA */ + /** Metadata of this directory. */ + public Dictionary getProperties(); + /* + * HIERARCHY + */ + /** The first level of hierarchy units. */ Iterable getDirectHierarchyUnits(boolean functionalOnly); + /** The hierarchy unit at this path. */ HierarchyUnit getHierarchyUnit(String path); + /** Create a new hierarchy unit. */ + HierarchyUnit createHierarchyUnit(String path); }