com.atlassian.jira.util.ofbiz
Class GenericValueUtils

java.lang.Object
  extended by com.atlassian.jira.util.ofbiz.GenericValueUtils

public class GenericValueUtils
extends Object


Constructor Summary
GenericValueUtils()
           
 
Method Summary
static String getCommaSeparatedList(Collection genericValues, String key)
          Returns a String containing a comma and space (for display) separated list of the key property values in the given collection of GenericValues.
static Long[] transformToLongIds(Collection genericValues)
           
static List transformToLongIdsList(Collection genericValues)
           
static String[] transformToStringIds(Collection genericValues)
           
static List transformToStringIdsList(Collection genericValues)
           
static String[] transformToStrings(Collection genericValues, String fieldName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GenericValueUtils

public GenericValueUtils()
Method Detail

transformToLongIds

public static Long[] transformToLongIds(Collection genericValues)

transformToLongIdsList

public static List transformToLongIdsList(Collection genericValues)

transformToStrings

public static String[] transformToStrings(Collection genericValues,
                                          String fieldName)

transformToStringIds

public static String[] transformToStringIds(Collection genericValues)

transformToStringIdsList

public static List transformToStringIdsList(Collection genericValues)

getCommaSeparatedList

public static String getCommaSeparatedList(Collection genericValues,
                                           String key)
Returns a String containing a comma and space (for display) separated list of the key property values in the given collection of GenericValues.

Parameters:
genericValues - Collection of GenericValue objects.
key - We pull this property out of each GV for our return values.
Returns:
a String containing a comma separated list of the key property values in the given collection of GenericValues.
Since:
v3.13


Copyright © 2002-2008 Atlassian. All Rights Reserved.