public interface ImportableDataProvider
FIXME: the async APIs used below are a bad fit. We do not want to return an
LdapException
. We really need a more generic promises API.
FIXME: it would be nice if we can use EntryReader, however we may need to provide an optimized implementation for use in multi-threaded imports. E.g. performing DN checking as early as possible before doing schema validation.
FIXME: import allows you to append, merge, replace entries. Do we need to expose that here?
Modifier and Type | Method and Description |
---|---|
DataProviderID |
getDataProviderID()
Returns the ID of this data provider.
|
LdapPromise<Void> |
importEntries(EntryReader reader,
LdapResultHandler<Void> handler)
Imports the contents of this data provider from the provided entry
reader.
|
DataProviderID getDataProviderID()
LdapPromise<Void> importEntries(EntryReader reader, LdapResultHandler<Void> handler)
Note that the server will not explicitly initialize this data provider before calling this method.
reader
- The entry reader.handler
- A handler which will be notified when the import completes.Copyright 2010-2017 ForgeRock AS.