Interface ConfigurationRepository
- All Known Implementing Classes:
ConfigurationHandler
public interface ConfigurationRepository
Provides configuration entries and listener registration on the entries.
-
Method Summary
Modifier and TypeMethodDescriptionvoidderegisterAddListener(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.voidderegisterChangeListener(Dn dn, ConfigChangeListener listener) Attempts to deregister the provided change listener with the provided DN.voidderegisterDeleteListener(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.getAddListeners(Dn dn) Retrieves the add listeners that have been registered with the provided DN.getChangeListeners(Dn dn) Retrieves the change listeners that have been registered with the provided DN.getChildren(Dn dn) Returns the set of DNs of children of the entry corresponding to the provided DN.getDeleteListeners(Dn dn) Retrieves the delete listeners that have been registered with the provided DN.Returns the configuration entry for the provided DN.booleanChecks if the provided DN corresponds to a configuration entry.voidregisterAddListener(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(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(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 Details
-
getChildren
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
Returns the configuration entry for the provided DN.- Parameters:
dn- DN of the configuration entry- Returns:
- the config entry
-
hasEntry
Checks 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
-
registerAddListener
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
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
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
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
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
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.
-
getAddListeners
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
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
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.
-