Interface PreDeleteUserErrors

All Known Implementing Classes:
ReferencePreDeleteUserErrors

@PublicSpi public interface PreDeleteUserErrors
Interface defines the implementation point for plugins wishing to interact with the pre-delete-user-errors plugin point. Implementing this interface and returning a non-empty collection of WebErrorMessage indicates the provided user should not be deleted.
Since:
v6.0
  • Method Details

    • getPreDeleteUserErrors

      List<WebErrorMessage> getPreDeleteUserErrors(ApplicationUser user)
      This will be called when a user is about to be deleted. Returning a non-empty list of WebErrorMessage will prevent the user from being deleted.
      Parameters:
      user - that is being considered for deletion
      Returns:
      a list of WebErrorMessage about to the provided user