public class

CustomFieldValidatorImpl

extends Object
implements CustomFieldValidator
java.lang.Object
   ↳ com.atlassian.jira.web.action.admin.customfields.CustomFieldValidatorImpl

Summary

Public Constructors
CustomFieldValidatorImpl(CustomFieldManager customFieldManager, ManagedConfigurationItemService managedConfigurationItemService)
Public Methods
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.
Protected Methods
I18nHelper getI18nBean()
ApplicationUser getLoggedInUser()
boolean isValidSearcher(CustomFieldSearcher searcher, CustomFieldType customFieldType)
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.jira.web.action.admin.customfields.CustomFieldValidator

Public Constructors

public CustomFieldValidatorImpl (CustomFieldManager customFieldManager, ManagedConfigurationItemService managedConfigurationItemService)

Public Methods

public boolean isValidType (String fieldType)

Check that the given CustomFieldType is valid. This does the same logical checks as validateType(String), but returns a boolean instead of ErrorCollection.

Parameters
fieldType the FieldType
Returns
  • true if the field type is not-null and valid.

public ErrorCollection validateDetails (String fieldName, String fieldType, String searcher)

public ErrorCollection validateType (String fieldType)

Check that the given CustomFieldType is valid.

Parameters
fieldType the FieldType
Returns
  • An ErrorCollection containing any validation errors.

Protected Methods

protected I18nHelper getI18nBean ()

protected ApplicationUser getLoggedInUser ()

protected boolean isValidSearcher (CustomFieldSearcher searcher, CustomFieldType customFieldType)