1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20 package no.feide.moria.directory.index;
21
22 /***
23 * This is the interface used to access an underlying index implementation.
24 */
25 public interface DirectoryManagerIndex {
26
27 /***
28 * Looks up one or more backend references from a given logical ID,
29 * typically a username.
30 * @param id
31 * The logical ID.
32 * @return One or more backend references , or <code>null</code> if no
33 * such reference was found.
34 */
35 IndexedReference[] getReferences(String id);
36
37
38 /***
39 * Return the related realm of a given logical ID, typically a username.
40 * @param id
41 * The logical ID.
42 * @return The realm, or <code>null</code> if the realm could not be
43 * resolved.
44 */
45 String getRealm(String id);
46
47
48 /***
49 * Return the username associated with a certain search base.
50 * @param base
51 * The search base.
52 * @return The username. May be an empty string if <code>base</code> is
53 * unknown.
54 */
55 String getUsername(String base);
56
57
58 /***
59 * Return the password associated with a certain search base.
60 * @param base
61 * The search base.
62 * @return The password. May be an empty string if <code>base</code> is
63 * unknown.
64 */
65 String getPassword(String base);
66
67 }