public class VirtualAttributeConfigManager extends Object implements ConfigurationChangeListener<VirtualAttributeCfg>, ConfigurationAddListener<VirtualAttributeCfg>, ConfigurationDeleteListener<VirtualAttributeCfg>
Constructor and Description |
---|
VirtualAttributeConfigManager(ServerContext serverContext)
Creates a new instance of this virtual attribute config manager.
|
Modifier and Type | Method and Description |
---|---|
ConfigChangeResult |
applyConfigurationAdd(VirtualAttributeCfg configuration)
Adds a new configuration to this add listener.
|
ConfigChangeResult |
applyConfigurationChange(VirtualAttributeCfg configuration)
Applies the configuration changes to this change listener.
|
ConfigChangeResult |
applyConfigurationDelete(VirtualAttributeCfg configuration)
Deletes an existing configuration from this delete listener.
|
void |
deregister(VirtualAttributeRule rule)
Deregisters the provided virtual attribute rule.
|
Collection<VirtualAttributeRule> |
getVirtualAttributes()
Retrieves the collection of registered virtual attribute rules.
|
void |
initializeVirtualAttributes()
Initializes all virtual attribute providers currently defined in the Directory Server configuration.
|
boolean |
isConfigurationAddAcceptable(VirtualAttributeCfg configuration,
List<LocalizableMessage> unacceptableReasons)
Indicates whether the proposed addition of a new configuration is
acceptable to this add listener.
|
boolean |
isConfigurationChangeAcceptable(VirtualAttributeCfg configuration,
List<LocalizableMessage> unacceptableReasons)
Indicates whether the proposed change to the configuration is acceptable
to this change listener.
|
boolean |
isConfigurationDeleteAcceptable(VirtualAttributeCfg configuration,
List<LocalizableMessage> unacceptableReasons)
Indicates whether the proposed deletion of an existing configuration is
acceptable to this delete listener.
|
void |
register(VirtualAttributeRule rule)
Registers the provided virtual attribute rule.
|
public VirtualAttributeConfigManager(ServerContext serverContext)
serverContext
- The server context.public void initializeVirtualAttributes() throws ConfigException
ConfigException
- If a configuration problem causes the virtual attribute provider initialization process to fail.public boolean isConfigurationAddAcceptable(VirtualAttributeCfg configuration, List<LocalizableMessage> unacceptableReasons)
ConfigurationAddListener
isConfigurationAddAcceptable
in interface ConfigurationAddListener<VirtualAttributeCfg>
configuration
- The configuration that will be added.unacceptableReasons
- A list that can be used to hold messages about why the
provided configuration is not acceptable.true
if the proposed addition is acceptable,
or false
if it is not.public ConfigChangeResult applyConfigurationAdd(VirtualAttributeCfg configuration)
ConfigurationAddListener
applyConfigurationAdd
in interface ConfigurationAddListener<VirtualAttributeCfg>
configuration
- The configuration that will be added.public boolean isConfigurationDeleteAcceptable(VirtualAttributeCfg configuration, List<LocalizableMessage> unacceptableReasons)
ConfigurationDeleteListener
isConfigurationDeleteAcceptable
in interface ConfigurationDeleteListener<VirtualAttributeCfg>
configuration
- The configuration that will be deleted.unacceptableReasons
- A list that can be used to hold messages about why the
provided configuration is not acceptable.true
if the proposed deletion is acceptable,
or false
if it is not.public ConfigChangeResult applyConfigurationDelete(VirtualAttributeCfg configuration)
ConfigurationDeleteListener
applyConfigurationDelete
in interface ConfigurationDeleteListener<VirtualAttributeCfg>
configuration
- The existing configuration that will be deleted.public boolean isConfigurationChangeAcceptable(VirtualAttributeCfg configuration, List<LocalizableMessage> unacceptableReasons)
ConfigurationChangeListener
isConfigurationChangeAcceptable
in interface ConfigurationChangeListener<VirtualAttributeCfg>
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 ConfigChangeResult applyConfigurationChange(VirtualAttributeCfg configuration)
ConfigurationChangeListener
applyConfigurationChange
in interface ConfigurationChangeListener<VirtualAttributeCfg>
configuration
- The new configuration containing the changes.public Collection<VirtualAttributeRule> getVirtualAttributes()
public void register(VirtualAttributeRule rule)
rule
- The virtual attribute rule to be registered.public void deregister(VirtualAttributeRule rule)
rule
- The virtual attribute rule to be deregistered.Copyright 2010-2022 ForgeRock AS.