public class Ldif extends Directory
| Modifier and Type | Class and Description |
|---|---|
static class |
Ldif.LdifOut
LdifOut - out method is called to write ldif output
|
| Constructor and Description |
|---|
Ldif()
Constructor required so we can instantiate object dynamically
|
Ldif(File f) |
Ldif(InputStream in) |
Ldif(String fileName) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
create(DirRecord rec) |
void |
destroy(String dn) |
static void |
dumpAttr(Ldif.LdifOut lo,
Attribute a) |
static void |
dumpLdif(Ldif.LdifOut lo,
DirRecord rec)
dumpLdif write the entire record as ldif.
|
void |
modify(String dn,
ModificationItem[] mods) |
DirRecord |
nextRecord()
Return the next record in the input stream.
|
void |
reInit()
If possible, reInit should allow reuse after a close
|
void |
replace(String dn,
String attrName,
Object val)
Replace an entire attribute with one containing only the given value
|
void |
replace(String dn,
String attrName,
Object[] val)
Replace an entire attribute with one containing only the given values
|
void |
replace(String dn,
String attrName,
Object oldval,
Object newval)
Replace a single given attribute value with the given value
|
boolean |
search(String dn,
String filter,
int scope)
search
|
newRecord, search, searchBase, searchOnepublic Ldif()
throws Exception
Exceptionpublic Ldif(InputStream in) throws Exception
Exceptionpublic void reInit()
throws Exception
Directorypublic DirRecord nextRecord() throws Exception
nextRecord in class DirectoryExceptionpublic void replace(String dn, String attrName, Object val) throws Exception
Directorypublic void replace(String dn, String attrName, Object[] val) throws Exception
Directorypublic void replace(String dn, String attrName, Object oldval, Object newval) throws Exception
Directorypublic void modify(String dn, ModificationItem[] mods) throws Exception
public static void dumpLdif(Ldif.LdifOut lo, DirRecord rec) throws Exception
Exceptionpublic static void dumpAttr(Ldif.LdifOut lo, Attribute a) throws Exception
ExceptionCopyright © 2015 Bedework. All rights reserved.