Package com.atlassian.crowd.util
Class DirectoryValidationHelper
java.lang.Object
com.atlassian.crowd.util.DirectoryValidationHelper
-
Constructor Summary
ConstructorsConstructorDescriptionDirectoryValidationHelper(CrowdDirectoryService crowdDirectoryService, I18nHelper i18nHelper) -
Method Summary
Modifier and TypeMethodDescriptioncheckNameValid(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 aValidationErrorvalidateSpringLdapPoolConfig(LdapPoolConfig poolConfig) Validates the configuration for Dynamic LDAP pool.
-
Constructor Details
-
DirectoryValidationHelper
public DirectoryValidationHelper(CrowdDirectoryService crowdDirectoryService, I18nHelper i18nHelper)
-
-
Method Details
-
checkNameValid
Checks whether the given name is either null, or blank, or is not unique, if any of the before then returns aValidationError- Parameters:
directory- Directory entity to be used for validation of the new namenewDirectoryName- New directory name to be validated- Returns:
- error if name is not valid, otherwise null
-
validateSpringLdapPoolConfig
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
-