public class GrouperActivemqUtils extends Object
Constructor and Description |
---|
GrouperActivemqUtils() |
Modifier and Type | Method and Description |
---|---|
static int |
compareTo(Comparable a,
Comparable b)
null safe compare
|
static String |
encryptSha(String plaintext)
encrypt a message to SHA
|
static <T> T |
newInstance(Class<T> theClass,
boolean allowPrivateConstructor)
Construct a class.
|
static String |
subjectAttributeValue(WsSubject wsSubject,
String[] attributeNames,
String attributeName)
get the attribute value of an attribute name of a subject
|
static String |
substituteExpressionLanguage(String stringToParse,
Map<String,Object> variableMap,
boolean allowStaticClasses,
boolean silent,
boolean lenient,
boolean logOnNull)
substitute an EL for objects
|
static void |
waitForInput()
wait for input
|
public static int compareTo(Comparable a, Comparable b)
a
- b
- public static String substituteExpressionLanguage(String stringToParse, Map<String,Object> variableMap, boolean allowStaticClasses, boolean silent, boolean lenient, boolean logOnNull)
stringToParse
- variableMap
- allowStaticClasses
- if true allow static classes not registered with contextsilent
- if silent mode, swallow exceptions (warn), and dont warn when variable not foundlenient
- false if undefined variables should throw an exception. if lenient is true (default)
then undefined variables are nulllogOnNull
- if null output of substitution should be loggedpublic static <T> T newInstance(Class<T> theClass, boolean allowPrivateConstructor)
T
- template typetheClass
- allowPrivateConstructor
- true if should allow private constructorspublic static void waitForInput()
public static String encryptSha(String plaintext)
plaintext
- public static String subjectAttributeValue(WsSubject wsSubject, String[] attributeNames, String attributeName)
wsSubject
- subjectattributeNames
- list of attribute names in the subjectattributeName
- to queryCopyright © 2016 Internet2. All rights reserved.