public interface DataProviderConnection extends org.forgerock.opendj.ldap.RequestHandler<Operation>
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes this data provider connection.
|
boolean |
containsEntry(org.forgerock.opendj.ldap.DN dn)
Indicates whether the underlying data provider contains the specified
entry.
|
void |
deregisterEventListener(DataProviderEventListener listener)
Deregisters an event listener from the underlying data provider.
|
Set<org.forgerock.opendj.ldap.DN> |
getBaseDNs()
Returns an unmodifiable set containing the base DNs of the sub-trees
which the underlying data provider contains.
|
org.forgerock.opendj.ldap.Entry |
getEntry(org.forgerock.opendj.ldap.DN dn)
Retrieves the specified entry from the underlying data provider.
|
DataProviderStatus |
getStatus(org.forgerock.opendj.ldap.DN baseDN)
Returns the current status of the provided base DN in the underlying data
provider.
|
Set<String> |
getSupportedControls(org.forgerock.opendj.ldap.DN baseDN)
Returns an unmodifiable set containing the OIDs of the controls that may
be supported by the provided base DN in the underlying data provider.
|
Set<String> |
getSupportedFeatures(org.forgerock.opendj.ldap.DN baseDN)
Returns an unmodifiable set containing the OIDs of the features that may
be supported by the provided base DN in the underlying data provider.
|
void |
registerEventListener(DataProviderEventListener listener)
Registers an event listener with the underlying data provider.
|
boolean |
supportsChangeNotification(org.forgerock.opendj.ldap.DN baseDN)
Indicates whether or not the provided base DN in the underlying data
provider supports change notification.
|
void close()
boolean containsEntry(org.forgerock.opendj.ldap.DN dn) throws org.forgerock.opendj.ldap.LdapException
dn
- The DN of the entry.true
if the underlying data provider contains the
specified entry, or false
if it does not.org.forgerock.opendj.ldap.LdapException
- If a problem occurs while trying to make the determination,
or if dn
is not a DN equal to or subordinate to one
of the base DNs managed by the underlying data provider.void deregisterEventListener(DataProviderEventListener listener)
listener
- The event listener.Set<org.forgerock.opendj.ldap.DN> getBaseDNs()
org.forgerock.opendj.ldap.Entry getEntry(org.forgerock.opendj.ldap.DN dn) throws org.forgerock.opendj.ldap.LdapException
dn
- The DN of the entry.null
if the underlying data
provider does not contain the specified entry.org.forgerock.opendj.ldap.LdapException
- If a problem occurs while trying to retrieve the entry, or if
dn
is not a DN equal to or subordinate to one of the
base DNs managed by the underlying data provider.DataProviderStatus getStatus(org.forgerock.opendj.ldap.DN baseDN) throws org.forgerock.opendj.ldap.LdapException
baseDN
- The base DN in the underlying data provider.org.forgerock.opendj.ldap.LdapException
- If baseDN
is not one of the base DNs managed by the
underlying data provider.Set<String> getSupportedControls(org.forgerock.opendj.ldap.DN baseDN) throws org.forgerock.opendj.ldap.LdapException
baseDN
- The base DN in the underlying data provider.org.forgerock.opendj.ldap.LdapException
- If baseDN
is not one of the base DNs managed by the
underlying data provider.Set<String> getSupportedFeatures(org.forgerock.opendj.ldap.DN baseDN) throws org.forgerock.opendj.ldap.LdapException
baseDN
- The base DN in the underlying data provider.org.forgerock.opendj.ldap.LdapException
- If baseDN
is not one of the base DNs managed by the
underlying data provider.void registerEventListener(DataProviderEventListener listener)
listener
- The event listener.boolean supportsChangeNotification(org.forgerock.opendj.ldap.DN baseDN) throws org.forgerock.opendj.ldap.LdapException
baseDN
- The base DN in the underlying data provider.true
if the provided base DN in the underlying data
provider supports change notification.org.forgerock.opendj.ldap.LdapException
- If baseDN
is not one of the base DNs managed by the
underlying data provider.Copyright © 2011-2015 ForgeRock AS. All Rights Reserved.