edu.internet2.middleware.grouper.webservices
Class GrouperServiceUtils

java.lang.Object
  extended by edu.internet2.middleware.grouper.webservices.GrouperServiceUtils

public class GrouperServiceUtils
extends Object

Author:
mchyzer

Constructor Summary
GrouperServiceUtils()
           
 
Method Summary
static void assertTrue(boolean isTrue, String reason)
          assert like java 1.4 assert
static String dateToString(Date date)
          convert a date to a string using the standard web service pattern Note that HH is 0-23
static String[][] params(String paramName0, String paramValue0, String paramName1, String paramValue1)
          validate and organize params
static String[] splitTrim(String string, String separator)
          split a string and trim each
static Date stringToDate(String dateString)
          convert a string to a date using the standard web service pattern Note that HH is 0-23
static String toStringForLog(Object object)
          print out various types of objects
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GrouperServiceUtils

public GrouperServiceUtils()
Method Detail

dateToString

public static String dateToString(Date date)
convert a date to a string using the standard web service pattern Note that HH is 0-23

Parameters:
date -
Returns:
the string, or null if the date is null

stringToDate

public static Date stringToDate(String dateString)
convert a string to a date using the standard web service pattern Note that HH is 0-23

Parameters:
dateString -
Returns:
the string, or null if the date was null

assertTrue

public static void assertTrue(boolean isTrue,
                              String reason)
assert like java 1.4 assert

Parameters:
isTrue -
reason -

toStringForLog

public static String toStringForLog(Object object)
print out various types of objects

Parameters:
object -
Returns:
the string value

splitTrim

public static String[] splitTrim(String string,
                                 String separator)
split a string and trim each

Parameters:
string -
separator -
Returns:
the array

params

public static String[][] params(String paramName0,
                                String paramValue0,
                                String paramName1,
                                String paramValue1)
validate and organize params

Parameters:
paramName0 -
paramValue0 -
paramName1 -
paramValue1 -
Returns:
the array of two arrays (one of names, second of values)