com.atlassian.jira.web.bean
Class FilterUtils

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

public class FilterUtils
extends java.lang.Object


Constructor Summary
FilterUtils()
           
 
Method Summary
static java.util.Collection getGroups(com.opensymphony.user.User user)
          Get the groups that this filter can be shared with.
static java.lang.Long verifyLong(java.lang.Long id)
           
static java.lang.String verifyString(java.lang.String s)
          Returned string is non-null IFF there is a true value (ie some text)
static java.lang.String[] verifyStringArray(java.lang.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 java.lang.String verifyString(java.lang.String s)
Returned string is non-null IFF there is a true value (ie some text)


verifyStringArray

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


verifyLong

public static java.lang.Long verifyLong(java.lang.Long id)

getGroups

public static java.util.Collection getGroups(com.opensymphony.user.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-2005 Atlassian. All Rights Reserved.