public interface ConfigurationRepository
Modifier and Type | Method and Description |
---|---|
void |
deregisterAddListener(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.
|
boolean |
deregisterChangeListener(DN dn,
ConfigChangeListener listener)
Attempts to deregister the provided change listener with the provided DN.
|
void |
deregisterDeleteListener(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(DN dn)
Retrieves the add listeners that have been registered with the provided
DN.
|
List<ConfigChangeListener> |
getChangeListeners(DN dn)
Retrieves the change listeners that have been registered with the
provided DN.
|
Set<DN> |
getChildren(DN dn)
Returns the set of DNs of children of the entry corresponding to the
provided DN.
|
List<ConfigDeleteListener> |
getDeleteListeners(DN dn)
Retrieves the delete listeners that have been registered with the
provided DN.
|
Entry |
getEntry(DN dn)
Returns the configuration entry for the provided DN.
|
boolean |
hasEntry(DN dn)
Checks if the provided DN corresponds to a configuration entry.
|
void |
registerAddListener(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.
|
void |
registerChangeListener(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.
|
void |
registerDeleteListener(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.
|
Set<DN> getChildren(DN dn) throws ConfigException
dn
- DN of a configuration entry.ConfigException
- If a problem occurs during retrieval.Entry getEntry(DN dn) throws ConfigException
dn
- DN of the configuration entryConfigException
- If a problem occurs while trying to retrieve the requested
entry.boolean hasEntry(DN dn) throws ConfigException
dn
- DN of the configuration entrytrue
if and only if there is a configuration entry with
this DNConfigException
- If a problem occurs.void registerAddListener(DN dn, ConfigAddListener listener)
dn
- The DN of the configuration entry.listener
- The add listener that should be registered.void registerDeleteListener(DN dn, ConfigDeleteListener listener)
dn
- The DN of the configuration entry.listener
- The delete listener that should be registered.void registerChangeListener(DN dn, ConfigChangeListener listener)
dn
- The DN of the configuration entry.listener
- The change listener that should be registered.void deregisterAddListener(DN dn, ConfigAddListener listener)
dn
- The DN of the configuration entry.listener
- The add listener that should be deregistered.void deregisterDeleteListener(DN dn, ConfigDeleteListener listener)
dn
- The DN of the configuration entry.listener
- The delete listener that should be deregistered.boolean deregisterChangeListener(DN dn, ConfigChangeListener listener)
dn
- The DN of the configuration entry.listener
- The change listener to deregister with this DN.true
if the specified listener was deregistered, or
false
if it was not.List<ConfigAddListener> getAddListeners(DN dn)
dn
- The DN of the configuration entry.List<ConfigDeleteListener> getDeleteListeners(DN dn)
dn
- The DN of the configuration entry.List<ConfigChangeListener> getChangeListeners(DN dn)
dn
- The DN of the configuration entry.Copyright 2010-2017 ForgeRock AS.