com.atlassian.jira.web.action.admin.customfields
Class CustomFieldValidatorImpl

java.lang.Object
  extended by com.atlassian.jira.web.action.admin.customfields.CustomFieldValidatorImpl
All Implemented Interfaces:
CustomFieldValidator

public class CustomFieldValidatorImpl
extends Object
implements CustomFieldValidator


Constructor Summary
CustomFieldValidatorImpl(CustomFieldManager customFieldManager, ManagedConfigurationItemService managedConfigurationItemService)
           
 
Method Summary
protected  I18nHelper getI18nBean()
           
protected  com.atlassian.crowd.embedded.api.User 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CustomFieldValidatorImpl

public CustomFieldValidatorImpl(CustomFieldManager customFieldManager,
                                ManagedConfigurationItemService managedConfigurationItemService)
Method Detail

validateType

public ErrorCollection validateType(String fieldType)
Description copied from interface: CustomFieldValidator
Check that the given CustomFieldType is valid.

Specified by:
validateType in interface CustomFieldValidator
Parameters:
fieldType - the FieldType
Returns:
An ErrorCollection containing any validation errors.

isValidType

public boolean isValidType(String fieldType)
Description copied from interface: CustomFieldValidator
Check that the given CustomFieldType is valid. This does the same logical checks as CustomFieldValidator.validateType(String), but returns a boolean instead of ErrorCollection.

Specified by:
isValidType in interface CustomFieldValidator
Parameters:
fieldType - the FieldType
Returns:
true if the field type is not-null and valid.

validateDetails

public ErrorCollection validateDetails(String fieldName,
                                       String fieldType,
                                       String searcher)
Specified by:
validateDetails in interface CustomFieldValidator

isValidSearcher

protected boolean isValidSearcher(CustomFieldSearcher searcher,
                                  CustomFieldType customFieldType)

getI18nBean

protected I18nHelper getI18nBean()

getLoggedInUser

protected com.atlassian.crowd.embedded.api.User getLoggedInUser()


Copyright © 2002-2014 Atlassian. All Rights Reserved.