|
||||||||||
| 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 CoreSession |
coreSession
a handle on the top core session |
protected List<LdifLoadFilter> |
filters
the filters to use while loading entries into the server |
protected File |
ldif
the LDIF file or directory containing LDIFs to load |
protected ClassLoader |
loader
the class loader to use if we cannot file the file as a path |
| Constructor Summary | |
|---|---|
LdifFileLoader(CoreSession coreSession,
File ldif,
List<? extends LdifLoadFilter> filters)
Creates a new instance of LdifFileLoader. |
|
LdifFileLoader(CoreSession coreSession,
File ldif,
List<? extends LdifLoadFilter> filters,
ClassLoader loader)
Creates a new instance of LdifFileLoader. |
|
LdifFileLoader(CoreSession coreSession,
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 CoreSession coreSession
protected File ldif
protected final List<LdifLoadFilter> filters
protected final ClassLoader loader
| Constructor Detail |
|---|
public LdifFileLoader(CoreSession coreSession,
String ldif)
coreSession - the context to load the entries into.ldif - the file of LDIF entries to load.
public LdifFileLoader(CoreSession coreSession,
File ldif,
List<? extends LdifLoadFilter> filters)
coreSession - ldif - filters -
public LdifFileLoader(CoreSession coreSession,
File ldif,
List<? extends LdifLoadFilter> filters,
ClassLoader loader)
coreSession - ldif - filters - loader - | Method Detail |
|---|
public int execute()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||