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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ConfigChangeResultapplyConfigurationAdd(ServerManagedObject<? extends T> mo)Adds a new server managed object to this add listener.booleanisConfigurationAddAcceptable(ServerManagedObject<? extends T> mo, List<org.forgerock.i18n.LocalizableMessage> unacceptableReasons)Indicates whether the proposed addition of a new server managed object is acceptable to this add listener.
-
-
-
Method Detail
-
isConfigurationAddAcceptable
boolean isConfigurationAddAcceptable(ServerManagedObject<? extends T> mo, List<org.forgerock.i18n.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
trueif the proposed addition is acceptable, orfalseif 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.
-
-