|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.directory.server.protocol.shared.store.LdifFileLoader
public class LdifFileLoader
Support for commands to load an LDIF file into a DirContext.
| Field Summary | |
|---|---|
protected javax.naming.directory.DirContext |
ctx
a handle on the top initial context: get new context from this |
protected java.util.List<LdifLoadFilter> |
filters
the filters to use while loading entries into the server |
protected java.io.File |
ldif
the LDIF file or directory containing LDIFs to load |
protected java.lang.ClassLoader |
loader
the class loader to use if we cannot file the file as a path |
| Constructor Summary | |
|---|---|
LdifFileLoader(javax.naming.directory.DirContext ctx,
java.io.File ldif,
java.util.List<LdifLoadFilter> filters)
Creates a new instance of LdifFileLoader. |
|
LdifFileLoader(javax.naming.directory.DirContext ctx,
java.io.File ldif,
java.util.List<LdifLoadFilter> filters,
java.lang.ClassLoader loader)
Creates a new instance of LdifFileLoader. |
|
LdifFileLoader(javax.naming.directory.DirContext ctx,
java.lang.String ldif)
Creates a new instance of LdifFileLoader. |
|
| Method Summary | |
|---|---|
int |
execute()
Opens the LDIF file and loads the entries into the context. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected javax.naming.directory.DirContext ctx
protected java.io.File ldif
protected final java.util.List<LdifLoadFilter> filters
protected final java.lang.ClassLoader loader
| Constructor Detail |
|---|
public LdifFileLoader(javax.naming.directory.DirContext ctx,
java.lang.String ldif)
ctx - the context to load the entries into.ldif - the file of LDIF entries to load.
public LdifFileLoader(javax.naming.directory.DirContext ctx,
java.io.File ldif,
java.util.List<LdifLoadFilter> filters)
ctx - ldif - filters -
public LdifFileLoader(javax.naming.directory.DirContext ctx,
java.io.File ldif,
java.util.List<LdifLoadFilter> filters,
java.lang.ClassLoader loader)
ctx - ldif - filters - loader - | Method Detail |
|---|
public int execute()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||