Interface ServerManagedObjectAddListener<T extends Configuration>

Type Parameters:
T - The type of server managed object that this listener should be notified about.

public interface ServerManagedObjectAddListener<T extends Configuration>
This interface defines the methods that a Directory Server configurable component should implement if it wishes to be able to receive notifications when a new server managed object is added.
  • Method Details

    • isConfigurationAddAcceptable

      boolean isConfigurationAddAcceptable(ServerManagedObject<? extends T> mo, List<LocalizableMessage> unacceptableReasons)
      Indicates whether the proposed addition of a new server managed object is acceptable to this add listener.
      Parameters:
      mo - The server managed object that will be added.
      unacceptableReasons - A list that can be used to hold messages about why the provided server managed object is not acceptable.
      Returns:
      Returns true if the proposed addition is acceptable, or false if it is not.
    • applyConfigurationAdd

      ConfigChangeResult applyConfigurationAdd(ServerManagedObject<? extends T> mo)
      Adds a new server managed object to this add listener.
      Parameters:
      mo - The server managed object that will be added.
      Returns:
      Returns information about the result of adding the server managed object.