com.atlassian.jira.issue.customfields
Class CustomFieldUtils

java.lang.Object
  extended bycom.atlassian.jira.issue.customfields.CustomFieldUtils

public class CustomFieldUtils
extends java.lang.Object


Field Summary
static java.lang.String CUSTOM_FIELD_PREFIX
           
 
Constructor Summary
CustomFieldUtils()
           
 
Method Summary
static java.util.List createCustomFieldValues(org.ofbiz.core.entity.GenericValue issue, java.util.Map customFieldValues)
           
static CustomFieldEditHelper getCustomFieldEditHelper(FieldLayoutItem fieldLayoutItem, CustomFieldValuesAware action, ProjectIssueType projectIssueType)
           
static java.lang.Long getCustomFieldId(java.lang.String key)
           
static java.lang.String getCustomFieldKey(java.lang.String searchParamKey)
           
static java.lang.String getCustomFieldSearchParamType(java.lang.String searchParamKey)
           
static boolean isCollectionNotEmpty(java.util.Collection stringCollection)
           
static boolean isValueSelected(java.lang.Object selectValue)
           
static java.util.Map parseCustomFieldValuesFromActionParams(java.util.Map actionParameters, java.util.List customFields)
          Parses action paramaters (Map of Collections of Strings with [:]> as key)
static java.util.List updateCustomFieldValues(org.ofbiz.core.entity.GenericValue issue, java.util.Map customFieldValues)
           
static void validateParams(ErrorCollection action, java.util.Map actionParameters, java.util.Map customFieldValuesHolder, java.util.Collection customFields)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CUSTOM_FIELD_PREFIX

public static final java.lang.String CUSTOM_FIELD_PREFIX
See Also:
Constant Field Values
Constructor Detail

CustomFieldUtils

public CustomFieldUtils()
Method Detail

updateCustomFieldValues

public static java.util.List updateCustomFieldValues(org.ofbiz.core.entity.GenericValue issue,
                                                     java.util.Map customFieldValues)

createCustomFieldValues

public static java.util.List createCustomFieldValues(org.ofbiz.core.entity.GenericValue issue,
                                                     java.util.Map customFieldValues)
Parameters:
issue - Issue to create field values for
customFieldValues - a non-null Map keyed by CustomField objects.
Returns:
An (always empty currently?) List of change items

validateParams

public static void validateParams(ErrorCollection action,
                                  java.util.Map actionParameters,
                                  java.util.Map customFieldValuesHolder,
                                  java.util.Collection customFields)

getCustomFieldSearchParamType

public static java.lang.String getCustomFieldSearchParamType(java.lang.String searchParamKey)

getCustomFieldKey

public static java.lang.String getCustomFieldKey(java.lang.String searchParamKey)

getCustomFieldId

public static java.lang.Long getCustomFieldId(java.lang.String key)

getCustomFieldEditHelper

public static CustomFieldEditHelper getCustomFieldEditHelper(FieldLayoutItem fieldLayoutItem,
                                                             CustomFieldValuesAware action,
                                                             ProjectIssueType projectIssueType)

isCollectionNotEmpty

public static boolean isCollectionNotEmpty(java.util.Collection stringCollection)

isValueSelected

public static boolean isValueSelected(java.lang.Object selectValue)

parseCustomFieldValuesFromActionParams

public static java.util.Map parseCustomFieldValuesFromActionParams(java.util.Map actionParameters,
                                                                   java.util.List customFields)
                                                            throws org.ofbiz.core.entity.GenericEntityException,
                                                                   CustomFieldValidationException
Parses action paramaters (Map of Collections of Strings with [:]> as key)

Parameters:
actionParameters -
customFields -
Returns:
Throws:
org.ofbiz.core.entity.GenericEntityException
CustomFieldValidationException
Since:
3.1-DEV


Copyright © 2002-2005 Atlassian. All Rights Reserved.