public class

WebComponentUtils

extends Object
java.lang.Object
   ↳ com.atlassian.jira.web.component.WebComponentUtils

Class Overview

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

Summary

Public Constructors
WebComponentUtils()
Public Methods
static Collection<String> convertStringToCollection(String s)
Converts a string of comma-separated values to a collection of those values
static Collection<String> getRemovalValues(Map<String, ?> params, String paramPrefix)
Picks up all keys that start with paramPrefix.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public WebComponentUtils ()

Public Methods

public static Collection<String> convertStringToCollection (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

public static Collection<String> getRemovalValues (Map<String, ?> params, 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