Interface ConfigurationRepository
-
public interface ConfigurationRepositoryProvides configuration entries and listener registration on the entries.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidderegisterAddListener(org.forgerock.opendj.ldap.DN dn, ConfigAddListener listener)Deregisters the provided add listener so that it will no longer be notified if any new entries are added immediately below the entry corresponding to the provided DN.booleanderegisterChangeListener(org.forgerock.opendj.ldap.DN dn, ConfigChangeListener listener)Attempts to deregister the provided change listener with the provided DN.voidderegisterDeleteListener(org.forgerock.opendj.ldap.DN dn, ConfigDeleteListener listener)Deregisters the provided delete listener so that it will no longer be notified if any entries are deleted immediately below the entry corresponding to the provided DN.List<ConfigAddListener>getAddListeners(org.forgerock.opendj.ldap.DN dn)Retrieves the add listeners that have been registered with the provided DN.List<ConfigChangeListener>getChangeListeners(org.forgerock.opendj.ldap.DN dn)Retrieves the change listeners that have been registered with the provided DN.Set<org.forgerock.opendj.ldap.DN>getChildren(org.forgerock.opendj.ldap.DN dn)Returns the set of DNs of children of the entry corresponding to the provided DN.List<ConfigDeleteListener>getDeleteListeners(org.forgerock.opendj.ldap.DN dn)Retrieves the delete listeners that have been registered with the provided DN.org.forgerock.opendj.ldap.EntrygetEntry(org.forgerock.opendj.ldap.DN dn)Returns the configuration entry for the provided DN.booleanhasEntry(org.forgerock.opendj.ldap.DN dn)Checks if the provided DN corresponds to a configuration entry.voidregisterAddListener(org.forgerock.opendj.ldap.DN dn, ConfigAddListener listener)Registers the provided add listener so that it will be notified if any new entries are added immediately below the entry corresponding to the provided DN.voidregisterChangeListener(org.forgerock.opendj.ldap.DN dn, ConfigChangeListener listener)Registers the provided change listener so that it will be notified of any changes to the entry corrresponding to provided DN.voidregisterDeleteListener(org.forgerock.opendj.ldap.DN dn, ConfigDeleteListener listener)Registers the provided delete listener so that it will be notified if any entries are deleted immediately below the entry corresponding to the provided DN.
-
-
-
Method Detail
-
getChildren
Set<org.forgerock.opendj.ldap.DN> getChildren(org.forgerock.opendj.ldap.DN dn) throws ConfigException
Returns the set of DNs of children of the entry corresponding to the provided DN. .- Parameters:
dn- DN of a configuration entry.- Returns:
- the set of DN of children of the corresponding entry
- Throws:
ConfigException- If a problem occurs during retrieval.
-
getEntry
org.forgerock.opendj.ldap.Entry getEntry(org.forgerock.opendj.ldap.DN dn) throws ConfigExceptionReturns the configuration entry for the provided DN.- Parameters:
dn- DN of the configuration entry- Returns:
- the config entry
- Throws:
ConfigException- If a problem occurs while trying to retrieve the requested entry.
-
hasEntry
boolean hasEntry(org.forgerock.opendj.ldap.DN dn) throws ConfigExceptionChecks if the provided DN corresponds to a configuration entry.- Parameters:
dn- DN of the configuration entry- Returns:
trueif and only if there is a configuration entry with this DN- Throws:
ConfigException- If a problem occurs.
-
registerAddListener
void registerAddListener(org.forgerock.opendj.ldap.DN dn, ConfigAddListener listener)Registers the provided add listener so that it will be notified if any new entries are added immediately below the entry corresponding to the provided DN.- Parameters:
dn- The DN of the configuration entry.listener- The add listener that should be registered.
-
registerDeleteListener
void registerDeleteListener(org.forgerock.opendj.ldap.DN dn, ConfigDeleteListener listener)Registers the provided delete listener so that it will be notified if any entries are deleted immediately below the entry corresponding to the provided DN.- Parameters:
dn- The DN of the configuration entry.listener- The delete listener that should be registered.
-
registerChangeListener
void registerChangeListener(org.forgerock.opendj.ldap.DN dn, ConfigChangeListener listener)Registers the provided change listener so that it will be notified of any changes to the entry corrresponding to provided DN. No check will be made to determine whether the provided listener is already registered.- Parameters:
dn- The DN of the configuration entry.listener- The change listener that should be registered.
-
deregisterAddListener
void deregisterAddListener(org.forgerock.opendj.ldap.DN dn, ConfigAddListener listener)Deregisters the provided add listener so that it will no longer be notified if any new entries are added immediately below the entry corresponding to the provided DN.- Parameters:
dn- The DN of the configuration entry.listener- The add listener that should be deregistered.
-
deregisterDeleteListener
void deregisterDeleteListener(org.forgerock.opendj.ldap.DN dn, ConfigDeleteListener listener)Deregisters the provided delete listener so that it will no longer be notified if any entries are deleted immediately below the entry corresponding to the provided DN.- Parameters:
dn- The DN of the configuration entry.listener- The delete listener that should be deregistered.
-
deregisterChangeListener
boolean deregisterChangeListener(org.forgerock.opendj.ldap.DN dn, ConfigChangeListener listener)Attempts to deregister the provided change listener with the provided DN.- Parameters:
dn- The DN of the configuration entry.listener- The change listener to deregister with this DN.- Returns:
trueif the specified listener was deregistered, orfalseif it was not.
-
getAddListeners
List<ConfigAddListener> getAddListeners(org.forgerock.opendj.ldap.DN dn)
Retrieves the add listeners that have been registered with the provided DN.- Parameters:
dn- The DN of the configuration entry.- Returns:
- The list of add listeners.
-
getDeleteListeners
List<ConfigDeleteListener> getDeleteListeners(org.forgerock.opendj.ldap.DN dn)
Retrieves the delete listeners that have been registered with the provided DN.- Parameters:
dn- The DN of the configuration entry.- Returns:
- The list of delete listeners.
-
getChangeListeners
List<ConfigChangeListener> getChangeListeners(org.forgerock.opendj.ldap.DN dn)
Retrieves the change listeners that have been registered with the provided DN.- Parameters:
dn- The DN of the configuration entry.- Returns:
- The list of change listeners.
-
-