Class PasswordPolicyImportPlugin

    • Constructor Detail

      • PasswordPolicyImportPlugin

        public PasswordPolicyImportPlugin()
        Creates a new instance of this Directory Server plugin. Every plugin must implement a default constructor (it is the only one that will be used to create plugins defined in the configuration), and every plugin constructor must call super() as its first element.
    • Method Detail

      • processImportBegin

        public void processImportBegin​(LocalBackend<?> backend,
                                       LDIFImportConfig config)
        Description copied from interface: ImportTaskListener
        Performs any processing that might be necessary just before the server begins processing on an LDIF import task. This should include pausing interaction with the provided backend while the import is in progress.
        Specified by:
        processImportBegin in interface ImportTaskListener
        Parameters:
        backend - The backend to be imported.
        config - Configuration information about the LDIF import to be performed.
      • processImportEnd

        public void processImportEnd​(LocalBackend<?> backend,
                                     LDIFImportConfig config,
                                     boolean successful)
        Description copied from interface: ImportTaskListener
        Performs any processing that might be necessary after the server has completed processing on an LDIF import task. Note that this will always be called when import processing completes, regardless of whether it was successful.
        Specified by:
        processImportEnd in interface ImportTaskListener
        Parameters:
        backend - The backend that was imported.
        config - Configuration information about the LDIF import that was performed.
        successful - Indicates whether the import operation completed successfully.
      • isConfigurationAcceptable

        public boolean isConfigurationAcceptable​(PasswordPolicyImportPluginCfg config,
                                                 List<LocalizableMessage> unacceptableReasons)
        Description copied from class: DirectoryServerPlugin
        Indicates whether the provided configuration is acceptable for this plugin. It should be possible to call this method on an uninitialized plugin instance in order to determine whether the plugin would be able to use the provided configuration.
        Overrides:
        isConfigurationAcceptable in class DirectoryServerPlugin<PasswordPolicyImportPluginCfg>
        Parameters:
        config - The plugin configuration for which to make the determination.
        unacceptableReasons - A list that may be used to hold the reasons that the provided configuration is not acceptable.
        Returns:
        true if the provided configuration is acceptable for this plugin, or false if not.