Package org.forgerock.opendj.server.core
Interface DataProviderConnection
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclose()Closes this data provider connection.booleancontainsEntry(org.forgerock.opendj.ldap.DN dn)Indicates whether the underlying data provider contains the specified entry.voidderegisterEventListener(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.EntrygetEntry(org.forgerock.opendj.ldap.DN dn)Retrieves the specified entry from the underlying data provider.DataProviderStatusgetStatus(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.voidregisterEventListener(DataProviderEventListener listener)Registers an event listener with the underlying data provider.booleansupportsChangeNotification(org.forgerock.opendj.ldap.DN baseDN)Indicates whether the provided base DN in the underlying data provider supports change notification.
-
-
-
Method Detail
-
close
void close()
Closes this data provider connection. When this method returns the connection can no longer be used.
-
containsEntry
boolean containsEntry(org.forgerock.opendj.ldap.DN dn) throws org.forgerock.opendj.ldap.LdapExceptionIndicates whether the underlying data provider contains the specified entry.- Parameters:
dn- The DN of the entry.- Returns:
trueif the underlying data provider contains the specified entry, orfalseif it does not.- Throws:
org.forgerock.opendj.ldap.LdapException- If a problem occurs while trying to make the determination, or ifdnis not a DN equal to or subordinate to one of the base DNs managed by the underlying data provider.
-
deregisterEventListener
void deregisterEventListener(DataProviderEventListener listener)
Deregisters an event listener from the underlying data provider.- Parameters:
listener- The event listener.
-
getBaseDNs
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.- Returns:
- An unmodifiable set containing the base DNs of the sub-trees which the underlying data provider contains.
-
getEntry
org.forgerock.opendj.ldap.Entry getEntry(org.forgerock.opendj.ldap.DN dn) throws org.forgerock.opendj.ldap.LdapExceptionRetrieves the specified entry from the underlying data provider.- Parameters:
dn- The DN of the entry.- Returns:
- The requested entry, or
nullif the underlying data provider does not contain the specified entry. - Throws:
org.forgerock.opendj.ldap.LdapException- If a problem occurs while trying to retrieve the entry, or ifdnis not a DN equal to or subordinate to one of the base DNs managed by the underlying data provider.
-
getStatus
DataProviderStatus getStatus(org.forgerock.opendj.ldap.DN baseDN) throws org.forgerock.opendj.ldap.LdapException
Returns the current status of the provided base DN in the underlying data provider.- Parameters:
baseDN- The base DN in the underlying data provider.- Returns:
- The current status of the provided base DN in the underlying data provider.
- Throws:
org.forgerock.opendj.ldap.LdapException- IfbaseDNis not one of the base DNs managed by the underlying data provider.
-
getSupportedControls
Set<String> getSupportedControls(org.forgerock.opendj.ldap.DN baseDN) throws org.forgerock.opendj.ldap.LdapException
Returns an unmodifiable set containing the OIDs of the controls that may be supported by the provided base DN in the underlying data provider.- Parameters:
baseDN- The base DN in the underlying data provider.- Returns:
- An unmodifiable set containing the OIDs of the controls that may be supported by the provided base DN in the underlying data provider.
- Throws:
org.forgerock.opendj.ldap.LdapException- IfbaseDNis not one of the base DNs managed by the underlying data provider.
-
getSupportedFeatures
Set<String> getSupportedFeatures(org.forgerock.opendj.ldap.DN baseDN) throws org.forgerock.opendj.ldap.LdapException
Returns an unmodifiable set containing the OIDs of the features that may be supported by the provided base DN in the underlying data provider.- Parameters:
baseDN- The base DN in the underlying data provider.- Returns:
- An unmodifiable set containing the OIDs of the features that may be supported by the provided base DN in the underlying data provider.
- Throws:
org.forgerock.opendj.ldap.LdapException- IfbaseDNis not one of the base DNs managed by the underlying data provider.
-
registerEventListener
void registerEventListener(DataProviderEventListener listener)
Registers an event listener with the underlying data provider.- Parameters:
listener- The event listener.
-
supportsChangeNotification
boolean supportsChangeNotification(org.forgerock.opendj.ldap.DN baseDN) throws org.forgerock.opendj.ldap.LdapExceptionIndicates whether the provided base DN in the underlying data provider supports change notification.- Parameters:
baseDN- The base DN in the underlying data provider.- Returns:
trueif the provided base DN in the underlying data provider supports change notification.- Throws:
org.forgerock.opendj.ldap.LdapException- IfbaseDNis not one of the base DNs managed by the underlying data provider.
-
-