public class DirectoryValidationHelper extends Object
Constructor and Description |
---|
DirectoryValidationHelper(CrowdDirectoryService crowdDirectoryService,
I18nHelper i18nHelper) |
Modifier and Type | Method and Description |
---|---|
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 |
public DirectoryValidationHelper(CrowdDirectoryService crowdDirectoryService, I18nHelper i18nHelper)
public ValidationError checkNameValid(Directory directory, String newDirectoryName)
ValidationError
directory
- Directory entity to be used for validation of the new namenewDirectoryName
- New directory name to be validatedCopyright © 2021 Atlassian. All rights reserved.