public class

FilterUtils

extends Object
java.lang.Object
   ↳ com.atlassian.jira.web.bean.FilterUtils

Summary

Public Constructors
FilterUtils()
Public Methods
static Collection getGroups(User user)
Get the groups that this filter can be shared with.
static Long verifyLong(Long id)
static String verifyString(String s)
Returned string is non-null IFF there is a true value (ie some text)
static String[] verifyStringArray(String[] sa)
Retirned string array is non-null IFF there is a true value (ie some text)
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public FilterUtils ()

Public Methods

public static Collection getGroups (User user)

Get the groups that this filter can be shared with. If this is a regular user, this will be the user's groups. If the user is an admin, it will return all groups.

Returns
  • A collection of strings representing the groups.

public static Long verifyLong (Long id)

public static String verifyString (String s)

Returned string is non-null IFF there is a true value (ie some text)

public static String[] verifyStringArray (String[] sa)

Retirned string array is non-null IFF there is a true value (ie some text)