public class EntryContainer extends Object implements SuffixContainer, ConfigurationChangeListener<PluggableBackendCfg>
ATTR_DEBUG_SEARCH_INDEX, DN2ID_INDEX_NAME, ID2CHILDREN_COUNT_NAME, ID2CHILDREN_INDEX_NAME, ID2ENTRY_INDEX_NAME, ID2SUBTREE_INDEX_NAME, REFERRAL_INDEX_NAME, STATE_INDEX_NAME
Modifier and Type | Method and Description |
---|---|
ConfigChangeResult |
applyConfigurationChange(PluggableBackendCfg cfg)
Applies the configuration changes to this change listener.
|
void |
clear()
Clear the contents of this entry container.
|
void |
close()
Closes the entry container.
|
DN |
getBaseDN()
Returns the baseDN that this suffix container is responsible for.
|
boolean |
isConfigurationChangeAcceptable(PluggableBackendCfg cfg,
List<LocalizableMessage> unacceptableReasons)
Indicates whether the proposed change to the configuration is acceptable
to this change listener.
|
String |
toString() |
public void close() throws StorageRuntimeException
close
in interface Closeable
close
in interface AutoCloseable
StorageRuntimeException
- If an error occurs in the storage.public DN getBaseDN()
SuffixContainer
getBaseDN
in interface SuffixContainer
public boolean isConfigurationChangeAcceptable(PluggableBackendCfg cfg, List<LocalizableMessage> unacceptableReasons)
ConfigurationChangeListener
isConfigurationChangeAcceptable
in interface ConfigurationChangeListener<PluggableBackendCfg>
cfg
- The new configuration containing the changes.unacceptableReasons
- A list that can be used to hold messages about why the
provided configuration is not acceptable.true
if the proposed change is acceptable,
or false
if it is not.public ConfigChangeResult applyConfigurationChange(PluggableBackendCfg cfg)
ConfigurationChangeListener
applyConfigurationChange
in interface ConfigurationChangeListener<PluggableBackendCfg>
cfg
- The new configuration containing the changes.public void clear() throws StorageRuntimeException
StorageRuntimeException
- If an error occurs while removing the entry
container.Copyright 2010-2017 ForgeRock AS.