public class LdifInputStreamLoader extends Object
Modifier and Type | Field and Description |
---|---|
protected org.apache.directory.server.core.api.CoreSession |
coreSession
A handle on the top core session.
|
protected InputStream |
ldif
The LDIF input stream file containing LDIFs to load.
|
Constructor and Description |
---|
LdifInputStreamLoader(org.apache.directory.server.core.api.CoreSession coreSession,
InputStream ldif)
Creates a new instance of LdifFileLoader.
|
LdifInputStreamLoader(org.apache.directory.server.core.api.CoreSession coreSession,
InputStream ldif,
List<? extends org.apache.directory.server.protocol.shared.store.LdifLoadFilter> filters)
Creates a new instance of LdifFileLoader.
|
Modifier and Type | Method and Description |
---|---|
int |
execute()
Opens the LDIF file and loads the entries into the context.
|
protected org.apache.directory.server.core.api.CoreSession coreSession
protected InputStream ldif
public LdifInputStreamLoader(org.apache.directory.server.core.api.CoreSession coreSession, InputStream ldif)
coreSession
- the context to load the entries into.ldif
- the file of LDIF entries to load.public LdifInputStreamLoader(org.apache.directory.server.core.api.CoreSession coreSession, InputStream ldif, List<? extends org.apache.directory.server.protocol.shared.store.LdifLoadFilter> filters)
coreSession
- core sessionldif
- LDIF contentfilters
- filtersCopyright © 2010–2023 The Apache Software Foundation. All rights reserved.