|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.kuali.rice.kew.util.Utilities
public class Utilities
Various static utility methods.
Nested Class Summary | |
---|---|
static class |
Utilities.PrioritySorter
Consider moving out of this class if this bugs |
static class |
Utilities.RouteLogActionRequestSorter
Consider moving out of this class if this bugs |
Field Summary | |
---|---|
private static org.apache.commons.lang.text.StrSubstitutor |
substitutor
Commons-Lang StrSubstitor which substitutes variables specified like ${name} in strings, using a lookup implementation that pulls variables from the core config |
Constructor Summary | |
---|---|
Utilities()
|
Method Summary | ||
---|---|---|
static List |
asList(Object object)
|
|
static Set |
asSet(Object object)
|
|
static Set |
asSet(Object[] objects)
|
|
static boolean |
checkDateRanges(String fromDate,
String toDate)
|
|
static boolean |
collectionsEquivalent(Collection a,
Collection b)
Performs a "brute force" comparison of collections by testing whether the collections contain each other. |
|
static String |
collectStackTrace(Throwable t)
|
|
static Timestamp |
convertCalendar(Calendar calendar)
|
|
static Calendar |
convertTimestamp(Timestamp timestamp)
|
|
static boolean |
equals(Object a,
Object b)
|
|
static String |
getHostName()
|
|
static String |
getIpNumber()
|
|
static
|
getKeyValueCollectionAsLookupTable(List<Z> collection)
Helper method that takes a List of KeyValue and presents it as a Map containing
KeyValue values |
|
static
|
getKeyValueCollectionAsMap(List<? extends org.apache.commons.collections.KeyValue> collection)
Helper method that takes a List of KeyValue and presents it as a Map |
|
static boolean |
getKNSParameterBooleanValue(String nameSpace,
String detailType,
String name)
|
|
static boolean |
getKNSParameterBooleanValue(String nameSpace,
String detailType,
String name,
boolean defaultValue)
|
|
static String |
getKNSParameterValue(String nameSpace,
String detailType,
String name)
|
|
static boolean |
isEmpty(Collection collection)
|
|
static boolean |
isEmpty(Object[] array)
|
|
static boolean |
isEmpty(String value)
|
|
static String |
parseGroupName(String namespaceAndNameCombo)
|
|
static String |
parseGroupNamespaceCode(String namespaceAndNameCombo)
|
|
static String |
substituteConfigParameters(String string)
Performs variable substitution on the specified string, replacing variables specified like ${name} with the value of the corresponding config parameter obtained from the current context Config object |
|
static String |
substituteConfigParameters(String namespace,
String string)
Performs variable substitution on the specified string, replacing variables specified like ${name} with the value of the corresponding config parameter obtained from the current context Config object. |
|
static boolean |
validateDate(String date,
boolean dateOptional)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static org.apache.commons.lang.text.StrSubstitutor substitutor
Constructor Detail |
---|
public Utilities()
Method Detail |
---|
public static String substituteConfigParameters(String namespace, String string)
namespace
- the namespace to use for qualifying the parameterstring
- the string on which to perform variable substitution
public static String substituteConfigParameters(String string)
string
- the string on which to perform variable substitution
public static String getKNSParameterValue(String nameSpace, String detailType, String name)
public static boolean getKNSParameterBooleanValue(String nameSpace, String detailType, String name)
public static boolean getKNSParameterBooleanValue(String nameSpace, String detailType, String name, boolean defaultValue)
public static String parseGroupNamespaceCode(String namespaceAndNameCombo)
public static String parseGroupName(String namespaceAndNameCombo)
public static boolean isEmpty(String value)
public static boolean isEmpty(Collection collection)
public static boolean isEmpty(Object[] array)
public static boolean equals(Object a, Object b)
public static String collectStackTrace(Throwable t)
public static Calendar convertTimestamp(Timestamp timestamp)
public static Timestamp convertCalendar(Calendar calendar)
public static Set asSet(Object[] objects)
public static Set asSet(Object object)
public static List asList(Object object)
public static boolean validateDate(String date, boolean dateOptional)
public static boolean checkDateRanges(String fromDate, String toDate)
public static boolean collectionsEquivalent(Collection a, Collection b)
public static String getIpNumber()
public static String getHostName()
public static <T,Z> Map<T,Z> getKeyValueCollectionAsMap(List<? extends org.apache.commons.collections.KeyValue> collection)
KeyValue
and presents it as a Map
T
- the key typeZ
- the value typecollection
- collection of KeyValue
public static <T,Z extends org.apache.commons.collections.KeyValue> Map<T,Z> getKeyValueCollectionAsLookupTable(List<Z> collection)
KeyValue
and presents it as a Map containing
KeyValue values
T
- the key typeZ
- the collection/map value type, which must be a KeyValuecollection
- collection of KeyValue
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |