public class ErrorLogAccountStatusNotificationHandler extends AccountStatusNotificationHandler<ErrorLogAccountStatusNotificationHandlerCfg> implements ConfigurationChangeListener<ErrorLogAccountStatusNotificationHandlerCfg>
Constructor and Description |
---|
ErrorLogAccountStatusNotificationHandler() |
Modifier and Type | Method and Description |
---|---|
org.forgerock.opendj.config.server.ConfigChangeResult |
applyConfigurationChange(ErrorLogAccountStatusNotificationHandlerCfg configuration)
Applies the configuration changes to this change listener.
|
org.forgerock.opendj.config.server.ConfigChangeResult |
applyConfigurationChange(ErrorLogAccountStatusNotificationHandlerCfg configuration,
boolean detailedResults)
Makes a best-effort attempt to apply the configuration contained in the
provided entry.
|
void |
handleStatusNotification(AccountStatusNotification notification)
Performs any processing that may be necessary in conjunction with
the provided account status notification.
|
void |
initializeStatusNotificationHandler(ErrorLogAccountStatusNotificationHandlerCfg configuration)
Initializes this account status notification handler based on the
information in the provided configuration entry.
|
boolean |
isConfigurationAcceptable(AccountStatusNotificationHandlerCfg configuration,
List<LocalizableMessage> unacceptableReasons)
Indicates whether the provided configuration is acceptable for
this account status notification handler.
|
boolean |
isConfigurationChangeAcceptable(ErrorLogAccountStatusNotificationHandlerCfg configuration,
List<LocalizableMessage> unacceptableReasons)
Indicates whether the proposed change to the configuration is
acceptable to this change listener.
|
boolean |
processNotificationHandlerConfig(ErrorLogAccountStatusNotificationHandlerCfg configuration,
boolean applyChanges)
Parses the provided configuration and configure the notification handler.
|
finalizeStatusNotificationHandler
public ErrorLogAccountStatusNotificationHandler()
public void initializeStatusNotificationHandler(ErrorLogAccountStatusNotificationHandlerCfg configuration) throws org.forgerock.opendj.config.server.ConfigException, InitializationException
initializeStatusNotificationHandler
in class AccountStatusNotificationHandler<ErrorLogAccountStatusNotificationHandlerCfg>
configuration
- The configuration entry that contains the
information to use to initialize this
account status notification handler.org.forgerock.opendj.config.server.ConfigException
- If the provided entry does not contain
a valid configuration for this account
status notification handler.InitializationException
- If a problem occurs during
initialization that is not
related to the server
configuration.public void handleStatusNotification(AccountStatusNotification notification)
handleStatusNotification
in class AccountStatusNotificationHandler<ErrorLogAccountStatusNotificationHandlerCfg>
notification
- The account status notification to be
processed.public boolean isConfigurationAcceptable(AccountStatusNotificationHandlerCfg configuration, List<LocalizableMessage> unacceptableReasons)
isConfigurationAcceptable
in class AccountStatusNotificationHandler<ErrorLogAccountStatusNotificationHandlerCfg>
configuration
- The account status notification
handler configuration for which to
make the determination.unacceptableReasons
- A list that may be used to hold the
reasons that the provided
configuration is not acceptable.true
if the provided configuration is acceptable
for this account status notification handler, or
false
if not.public boolean isConfigurationChangeAcceptable(ErrorLogAccountStatusNotificationHandlerCfg configuration, List<LocalizableMessage> unacceptableReasons)
isConfigurationChangeAcceptable
in interface ConfigurationChangeListener<ErrorLogAccountStatusNotificationHandlerCfg>
configuration
- 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 org.forgerock.opendj.config.server.ConfigChangeResult applyConfigurationChange(ErrorLogAccountStatusNotificationHandlerCfg configuration, boolean detailedResults)
configuration
- The entry containing the new configuration to
apply for this component.detailedResults
- Indicates whether detailed information about the
processing should be added to the list.public org.forgerock.opendj.config.server.ConfigChangeResult applyConfigurationChange(ErrorLogAccountStatusNotificationHandlerCfg configuration)
applyConfigurationChange
in interface ConfigurationChangeListener<ErrorLogAccountStatusNotificationHandlerCfg>
configuration
- The new configuration containing the changes.public boolean processNotificationHandlerConfig(ErrorLogAccountStatusNotificationHandlerCfg configuration, boolean applyChanges)
configuration
- The new configuration containing the changes.applyChanges
- If true then take into account the new configuration.Copyright © 2010-2016 ForgeRock AS. All Rights Reserved.