]> git.argeo.org Git - lgpl/argeo-commons.git/blob - org.argeo.util/src/org/argeo/util/directory/Directory.java
Separate LDIF and LDAP DAOs
[lgpl/argeo-commons.git] / org.argeo.util / src / org / argeo / util / directory / Directory.java
1 package org.argeo.util.directory;
2
3 import java.util.Optional;
4
5 import org.argeo.util.transaction.WorkControl;
6
7 public interface Directory {
8 /**
9 * The base of the hierarchy defined by this directory. This could typically be
10 * an LDAP base DN.
11 */
12 String getContext();
13
14 String getName();
15
16 boolean isReadOnly();
17
18 boolean isDisabled();
19
20 Optional<String> getRealm();
21
22 void setTransactionControl(WorkControl transactionControl);
23
24 /*
25 * HIERARCHY
26 */
27
28 Iterable<HierarchyUnit> getDirectHierarchyUnits(boolean functionalOnly);
29
30 HierarchyUnit getHierarchyUnit(String path);
31
32 }