public class VirtualAttributeConfigManager extends Object implements org.forgerock.opendj.config.server.ConfigurationChangeListener<org.forgerock.opendj.server.config.server.VirtualAttributeCfg>, org.forgerock.opendj.config.server.ConfigurationAddListener<org.forgerock.opendj.server.config.server.VirtualAttributeCfg>, org.forgerock.opendj.config.server.ConfigurationDeleteListener<org.forgerock.opendj.server.config.server.VirtualAttributeCfg>
Constructor and Description |
---|
VirtualAttributeConfigManager(ServerContext serverContext)
Creates a new instance of this virtual attribute config manager.
|
Modifier and Type | Method and Description |
---|---|
org.forgerock.opendj.config.server.ConfigChangeResult |
applyConfigurationAdd(org.forgerock.opendj.server.config.server.VirtualAttributeCfg configuration) |
org.forgerock.opendj.config.server.ConfigChangeResult |
applyConfigurationChange(org.forgerock.opendj.server.config.server.VirtualAttributeCfg configuration) |
org.forgerock.opendj.config.server.ConfigChangeResult |
applyConfigurationDelete(org.forgerock.opendj.server.config.server.VirtualAttributeCfg configuration) |
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(org.forgerock.opendj.server.config.server.VirtualAttributeCfg configuration,
List<LocalizableMessage> unacceptableReasons) |
boolean |
isConfigurationChangeAcceptable(org.forgerock.opendj.server.config.server.VirtualAttributeCfg configuration,
List<LocalizableMessage> unacceptableReasons) |
boolean |
isConfigurationDeleteAcceptable(org.forgerock.opendj.server.config.server.VirtualAttributeCfg configuration,
List<LocalizableMessage> unacceptableReasons) |
void |
register(VirtualAttributeRule rule)
Registers the provided virtual attribute rule.
|
public VirtualAttributeConfigManager(ServerContext serverContext)
serverContext
- The server context.public void initializeVirtualAttributes() throws org.forgerock.opendj.config.server.ConfigException, InitializationException
org.forgerock.opendj.config.server.ConfigException
- If a configuration problem causes the virtual attribute provider
initialization process to fail.InitializationException
- If a problem occurs while initializing the virtual attribute
providers that is not related to the server configuration.public boolean isConfigurationAddAcceptable(org.forgerock.opendj.server.config.server.VirtualAttributeCfg configuration, List<LocalizableMessage> unacceptableReasons)
isConfigurationAddAcceptable
in interface org.forgerock.opendj.config.server.ConfigurationAddListener<org.forgerock.opendj.server.config.server.VirtualAttributeCfg>
public org.forgerock.opendj.config.server.ConfigChangeResult applyConfigurationAdd(org.forgerock.opendj.server.config.server.VirtualAttributeCfg configuration)
applyConfigurationAdd
in interface org.forgerock.opendj.config.server.ConfigurationAddListener<org.forgerock.opendj.server.config.server.VirtualAttributeCfg>
public boolean isConfigurationDeleteAcceptable(org.forgerock.opendj.server.config.server.VirtualAttributeCfg configuration, List<LocalizableMessage> unacceptableReasons)
isConfigurationDeleteAcceptable
in interface org.forgerock.opendj.config.server.ConfigurationDeleteListener<org.forgerock.opendj.server.config.server.VirtualAttributeCfg>
public org.forgerock.opendj.config.server.ConfigChangeResult applyConfigurationDelete(org.forgerock.opendj.server.config.server.VirtualAttributeCfg configuration)
applyConfigurationDelete
in interface org.forgerock.opendj.config.server.ConfigurationDeleteListener<org.forgerock.opendj.server.config.server.VirtualAttributeCfg>
public boolean isConfigurationChangeAcceptable(org.forgerock.opendj.server.config.server.VirtualAttributeCfg configuration, List<LocalizableMessage> unacceptableReasons)
isConfigurationChangeAcceptable
in interface org.forgerock.opendj.config.server.ConfigurationChangeListener<org.forgerock.opendj.server.config.server.VirtualAttributeCfg>
public org.forgerock.opendj.config.server.ConfigChangeResult applyConfigurationChange(org.forgerock.opendj.server.config.server.VirtualAttributeCfg configuration)
applyConfigurationChange
in interface org.forgerock.opendj.config.server.ConfigurationChangeListener<org.forgerock.opendj.server.config.server.VirtualAttributeCfg>
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-2017 ForgeRock AS. All Rights Reserved.