Interface ConfigDeleteListener


  • public interface ConfigDeleteListener
    This interface defines the methods that a Directory Server component should implement if it wishes to be able to receive notification if entries below a configuration entry are removed.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      ConfigChangeResult applyConfigurationDelete​(org.forgerock.opendj.ldap.Entry configEntry)
      Attempts to apply a new configuration based on the provided deleted entry.
      boolean configDeleteIsAcceptable​(org.forgerock.opendj.ldap.Entry configEntry, org.forgerock.i18n.LocalizableMessageBuilder unacceptableReason)
      Indicates whether it is acceptable to remove the provided configuration entry.
    • Method Detail

      • configDeleteIsAcceptable

        boolean configDeleteIsAcceptable​(org.forgerock.opendj.ldap.Entry configEntry,
                                         org.forgerock.i18n.LocalizableMessageBuilder unacceptableReason)
        Indicates whether it is acceptable to remove the provided configuration entry.
        Parameters:
        configEntry - The configuration entry that will be removed from the configuration.
        unacceptableReason - A buffer to which this method can append a human-readable message explaining why the proposed delete is not acceptable.
        Returns:
        true if the proposed entry may be removed from the configuration, or false if not.
      • applyConfigurationDelete

        ConfigChangeResult applyConfigurationDelete​(org.forgerock.opendj.ldap.Entry configEntry)
        Attempts to apply a new configuration based on the provided deleted entry.
        Parameters:
        configEntry - The new configuration entry that has been deleted.
        Returns:
        Information about the result of processing the configuration change.