com.atlassian.jira.web.component
Class WebComponentUtils

java.lang.Object
  extended by com.atlassian.jira.web.component.WebComponentUtils

public class WebComponentUtils
extends java.lang.Object

This class contains a collection of utility methods used by web components

Since:
v3.12.4

Constructor Summary
WebComponentUtils()
           
 
Method Summary
static java.util.Collection<java.lang.String> convertStringToCollection(java.lang.String s)
          Converts a string of comma-separated values to a collection of those values
static java.util.Collection<java.lang.String> getRemovalValues(java.util.Map<java.lang.String,?> params, java.lang.String paramPrefix)
          Picks up all keys that start with paramPrefix.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WebComponentUtils

public WebComponentUtils()
Method Detail

convertStringToCollection

public static java.util.Collection<java.lang.String> convertStringToCollection(java.lang.String s)
Converts a string of comma-separated values to a collection of those values

Parameters:
s - string to convert
Returns:
a collection of String values, never null

getRemovalValues

public static java.util.Collection<java.lang.String> getRemovalValues(java.util.Map<java.lang.String,?> params,
                                                                      java.lang.String paramPrefix)
Picks up all keys that start with paramPrefix.

For example, when params map contains a 'removegroups_jira-users' key, the returned collection will contain 'jira-users' string.

Parameters:
params - map of parameters - name-value pairs
paramPrefix - parameter name prefix
Returns:
a collection of


Copyright © 2002-2011 Atlassian. All Rights Reserved.