Class DirectoryValidationHelper

java.lang.Object
com.atlassian.crowd.util.DirectoryValidationHelper

public class DirectoryValidationHelper extends Object
  • Constructor Details

  • Method Details

    • checkNameValid

      public ValidationError checkNameValid(Directory directory, String newDirectoryName)
      Checks whether the given name is either null, or blank, or is not unique, if any of the before then returns a ValidationError
      Parameters:
      directory - Directory entity to be used for validation of the new name
      newDirectoryName - New directory name to be validated
      Returns:
      error if name is not valid, otherwise null
    • validateSpringLdapPoolConfig

      public List<ValidationError> validateSpringLdapPoolConfig(LdapPoolConfig poolConfig)
      Validates the configuration for Dynamic LDAP pool.
      Parameters:
      poolConfig - the configuration to validate
      Returns:
      a list of errors if validation was failed, an empty list otherwise