edu.internet2.middleware.grouperClient.util
Class GrouperClientUtils

java.lang.Object
  extended by edu.internet2.middleware.grouperClient.util.GrouperClientCommonUtils
      extended by edu.internet2.middleware.grouperClient.util.GrouperClientUtils

public class GrouperClientUtils
extends GrouperClientCommonUtils

utility methods specific to grouper client


Field Summary
 
Fields inherited from class edu.internet2.middleware.grouperClient.util.GrouperClientCommonUtils
DATE_FORMAT, DATE_MINUTES_SECONDS_FORMAT, DATE_MINUTES_SECONDS_NO_SLASH_FORMAT, DEFAULT_BUFFER_SIZE, EMPTY, EMPTY_OBJECT_ARRAY, EMPTY_STRING_ARRAY, INDEX_NOT_FOUND, LOG_ERROR, NOT_FOUND, ONE_GB, ONE_KB, ONE_MB, TIMESTAMP_FORMAT, TIMESTAMP_NO_SLASH_FORMAT
 
Constructor Summary
GrouperClientUtils()
           
 
Method Summary
static Map<String,String> grouperClientOverrideMap()
          override map for properties for testing
static Properties grouperClientProperties()
          grouper client properties
static String propertiesValue(String key, boolean required)
          get a property and validate required from grouper.client.properties
static boolean propertiesValueBoolean(String key, boolean defaultValue, boolean required)
          get a boolean and validate from grouper.client.properties
static int propertiesValueInt(String key, int defaultValue, boolean required)
          get a boolean and validate from grouper.client.properties
static Log retrieveLog(Class<?> theClass)
           
static String substituteExpressionLanguage(String stringToParse, Map<String,Object> variableMap)
          substitute an EL for objects
 
Methods inherited from class edu.internet2.middleware.grouperClient.util.GrouperClientCommonUtils
abbreviate, abbreviate, addIfNotThere, append, argAfter, argKey, argMap, argMapBoolean, argMapBoolean, argMapFileList, argMapInteger, argMapList, argMapSet, argMapString, argMapTimestamp, argValue, assertion, assignField, assignField, assignField, assignField, assignField, assignSetter, batchList, batchNumberOfBatches, batchNumberOfBatches, bigDecimalObjectValue, booleanObjectValue, booleanValue, booleanValue, byteCountToDisplaySize, byteObjectValue, byteValue, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, capitalize, charObjectValue, charValue, classesString, classLoader, className, classNameCollection, clone, cloneFields, cloneValue, closeQuietly, closeQuietly, closeQuietly, closeQuietly, closeQuietly, closeQuietly, closeQuietly, compareObjectFields, computeUrl, construct, contains, contains, contains, convertLongToChar, convertLongToCharSmall, convertLongToString, convertLongToStringSmall, convertToRuntimeException, copy, copy, copy, createParentDirectories, dateToString, dateValue, defaultIfBlank, defaultIfEmpty, defaultIfNull, defaultString, defaultString, doubleObjectValue, doubleValue, doubleValueNoError, enumValueOfIgnoreCase, equals, equals, equalsIgnoreCase, escapeUrlDecode, escapeUrlEncode, extensionFromName, field, fieldNames, fieldNames, fieldNames, fieldNames, fields, fields, fieldValue, fieldValue, fieldValue, fieldValue, fileCanonicalPath, fileFromResourceName, floatObjectValue, floatValue, floatValueNoError, forName, get, getCause, getCause, getFullStackTrace, getter, getterHelper, getterNameFromPropertyName, getters, getThrowables, hasOption, hostname, incrementChar, incrementStringInt, indent, indexOf, indexOf, injectInException, intObjectValue, intValue, intValue, intValueNoError, invokeMethod, invokeMethod, isAscii, isBlank, isBlank, isEmpty, isGetter, isNestedThrowable, isNotBlank, isScalar, isSetter, isThrowableNested, iterator, jarFile, join, join, join, join, join, leftPad, leftPad, leftPad, length, lengthAscii, longObjectValue, longValue, longValue, longValueNoError, mapDifferences, mapEquals, MapToString, method, methodNames, methodsHelper, mkdirs, monthInt, newFileUniqueName, newInstance, next, nonNull, nonNull, nonNull, nonNull, nullOrBlank, oracleStandardNameFromJava, packInts, parentStemNameFromName, prefixOrSuffix, propertiesCacheClear, propertiesFromResourceName, propertiesFromResourceName, propertiesValue, propertiesValue, propertiesValue, propertiesValueBoolean, propertiesValueBoolean, propertiesValueBoolean, propertiesValueInt, propertiesValueInt, propertyName, propertyType, propertyValidateValueBoolean, propertyValidateValueClass, propertyValidateValueInt, propertyValidateValueRequired, propertyValue, readFileIntoString, readFileToString, readFromFileIfFile, readResourceIntoString, readResourceIntoString, remove, remove, repeat, replace, replace, replace, replace, replace, replace, replace, replace, replace, replaceWhitespaceWithSpace, responseBodyAsString, retrievePasswordFromStdin, retrievePasswordFromStdin, rightPad, rightPad, rightPad, rollbackQuietly, saveStringIntoFile, saveStringIntoFile, setter, setterHelper, setterNameFromPropertyName, setters, setToString, shortObjectValue, shortValue, sleep, split, split, split, split, splitByWholeSeparator, splitByWholeSeparator, splitPreserveAllTokens, splitPreserveAllTokens, splitPreserveAllTokens, splitPreserveAllTokens, splitTrim, splitTrim, splitTrimToList, stringToDate, stringToDate2, stringToTimestamp, stringValue, stringValue, stripEnd, stripLastSlashIfExists, stripStart, substituteCommonVars, substringAfter, substringAfterLast, substringBefore, substringBeforeLast, suffixAfterChar, timestampToString, toArray, toArray, toList, toListClasses, toSet, toSqlDate, toString, toStringForLog, toStringForLog, toStringSafe, toTimestamp, trim, trimToEmpty, truncateAscii, typeCast, typeCast, uniqueId, unpackInt, writeStringToFile
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GrouperClientUtils

public GrouperClientUtils()
Method Detail

retrieveLog

public static Log retrieveLog(Class<?> theClass)
Parameters:
theClass -
Returns:
the log

grouperClientOverrideMap

public static Map<String,String> grouperClientOverrideMap()
override map for properties for testing

Returns:
the override map

grouperClientProperties

public static Properties grouperClientProperties()
grouper client properties

Returns:
the properties

propertiesValue

public static String propertiesValue(String key,
                                     boolean required)
get a property and validate required from grouper.client.properties

Parameters:
key -
required -
Returns:
the value

propertiesValueBoolean

public static boolean propertiesValueBoolean(String key,
                                             boolean defaultValue,
                                             boolean required)
get a boolean and validate from grouper.client.properties

Parameters:
key -
defaultValue -
required -
Returns:
the string

propertiesValueInt

public static int propertiesValueInt(String key,
                                     int defaultValue,
                                     boolean required)
get a boolean and validate from grouper.client.properties

Parameters:
key -
defaultValue -
required -
Returns:
the string

substituteExpressionLanguage

public static String substituteExpressionLanguage(String stringToParse,
                                                  Map<String,Object> variableMap)
substitute an EL for objects

Parameters:
stringToParse -
variableMap -
Returns:
the string


Copyright © 2010 Internet2. All Rights Reserved.