com.atlassian.jira.web.bean
Class FilterUtils

java.lang.Object
  extended bycom.atlassian.jira.web.bean.FilterUtils

public class FilterUtils
extends Object


Constructor Summary
FilterUtils()
           
 
Method Summary
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)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FilterUtils

public FilterUtils()
Method Detail

verifyString

public static String verifyString(String s)
Returned string is non-null IFF there is a true value (ie some text)


verifyStringArray

public static String[] verifyStringArray(String[] sa)
Retirned string array is non-null IFF there is a true value (ie some text)


verifyLong

public static Long verifyLong(Long id)

getGroups

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.


Copyright © 2002-2006 Atlassian. All Rights Reserved.