org.opends.server.core
Class RootPrivilegeChangeListener

java.lang.Object
  extended by org.opends.server.core.RootPrivilegeChangeListener
All Implemented Interfaces:
ConfigurationChangeListener<RootDNCfg>

public class RootPrivilegeChangeListener
extends java.lang.Object
implements ConfigurationChangeListener<RootDNCfg>

This class defines a data structure that is used to handle changes to the set of default root privileges.


Constructor Summary
RootPrivilegeChangeListener()
          Creates a new instance of this root privilege change listener.
 
Method Summary
 ConfigChangeResult applyConfigurationChange(RootDNCfg configuration)
          Applies the configuration changes to this change listener.
 java.util.Set<Privilege> getDefaultRootPrivileges()
          Retrieves the set of privileges that will be automatically granted to root users.
 boolean isConfigurationChangeAcceptable(RootDNCfg configuration, java.util.List<Message> unacceptableReasons)
          Indicates whether the proposed change to the configuration is acceptable to this change listener.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RootPrivilegeChangeListener

public RootPrivilegeChangeListener()
Creates a new instance of this root privilege change listener.

Method Detail

isConfigurationChangeAcceptable

public boolean isConfigurationChangeAcceptable(RootDNCfg configuration,
                                               java.util.List<Message> unacceptableReasons)
Indicates whether the proposed change to the configuration is acceptable to this change listener.

Specified by:
isConfigurationChangeAcceptable in interface ConfigurationChangeListener<RootDNCfg>
Parameters:
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.
Returns:
Returns true if the proposed change is acceptable, or false if it is not.

applyConfigurationChange

public ConfigChangeResult applyConfigurationChange(RootDNCfg configuration)
Applies the configuration changes to this change listener.

Specified by:
applyConfigurationChange in interface ConfigurationChangeListener<RootDNCfg>
Parameters:
configuration - The new configuration containing the changes.
Returns:
Returns information about the result of changing the configuration.

getDefaultRootPrivileges

public java.util.Set<Privilege> getDefaultRootPrivileges()
Retrieves the set of privileges that will be automatically granted to root users.

Returns:
The set of privileges that will be automatically granted to root users.