public class CustomFieldValidatorImpl extends Object implements CustomFieldValidator
Constructor and Description |
---|
CustomFieldValidatorImpl(CustomFieldManager customFieldManager,
ManagedConfigurationItemService managedConfigurationItemService) |
Modifier and Type | Method and Description |
---|---|
protected I18nHelper |
getI18nBean() |
protected ApplicationUser |
getLoggedInUser() |
protected boolean |
isValidSearcher(CustomFieldSearcher searcher,
CustomFieldType customFieldType) |
boolean |
isValidType(String fieldType)
Check that the given CustomFieldType is valid.
|
ErrorCollection |
validateDetails(String fieldName,
String fieldType,
String searcher) |
ErrorCollection |
validateType(String fieldType)
Check that the given CustomFieldType is valid.
|
public CustomFieldValidatorImpl(CustomFieldManager customFieldManager, ManagedConfigurationItemService managedConfigurationItemService)
public ErrorCollection validateType(String fieldType)
CustomFieldValidator
validateType
in interface CustomFieldValidator
fieldType
- the FieldTypepublic boolean isValidType(String fieldType)
CustomFieldValidator
CustomFieldValidator.validateType(String)
, but returns a boolean instead of ErrorCollection.isValidType
in interface CustomFieldValidator
fieldType
- the FieldTypepublic ErrorCollection validateDetails(String fieldName, String fieldType, String searcher)
validateDetails
in interface CustomFieldValidator
protected boolean isValidSearcher(CustomFieldSearcher searcher, CustomFieldType customFieldType)
protected I18nHelper getI18nBean()
protected ApplicationUser getLoggedInUser()
Copyright © 2002-2018 Atlassian. All Rights Reserved.