Package org.kuali.rice.kew.util
Class Utilities
java.lang.Object
org.kuali.rice.kew.util.Utilities
Various static utility methods.
- Author:
- Kuali Rice Team (rice.collab@kuali.org)
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classConsider moving out of this class if this bugsstatic classConsider moving out of this class if this bugs -
Method Summary
Modifier and TypeMethodDescriptionstatic booleancheckDateRanges(String fromDate, String toDate) getKeyValueCollectionAsLookupTable(List<T> collection) Helper method that takes a List ofKeyValueand presents it as a Map containing KeyValue valuesgetKeyValueCollectionAsMap(List<T> collection) Helper method that takes a List ofKeyValueand presents it as a Mapstatic StringparseGroupName(String namespaceAndNameCombo) static StringparseGroupNamespaceCode(String namespaceAndNameCombo) static StringsubstituteConfigParameters(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 objectstatic StringsubstituteConfigParameters(String applicationId, 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.
-
Method Details
-
substituteConfigParameters
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. This version of the method also takes an application id to qualify the parameter.- Parameters:
applicationId- the application id to use for qualifying the parameterstring- the string on which to perform variable substitution- Returns:
- a string with any variables substituted with configuration parameter values
-
substituteConfigParameters
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- Parameters:
string- the string on which to perform variable substitution- Returns:
- a string with any variables substituted with configuration parameter values
-
parseGroupNamespaceCode
-
parseGroupName
-
checkDateRanges
-
getKeyValueCollectionAsMap
public static <T extends org.kuali.rice.core.api.util.KeyValue> Map<String,String> getKeyValueCollectionAsMap(List<T> collection) Helper method that takes a List ofKeyValueand presents it as a Map- Parameters:
collection- collection ofKeyValue- Returns:
- a Mapinvalid input: '<'String, String> representing the keys and values in the KeyValue collection
-
getKeyValueCollectionAsLookupTable
public static <T extends org.kuali.rice.core.api.util.KeyValue> Map<String,T> getKeyValueCollectionAsLookupTable(List<T> collection) Helper method that takes a List ofKeyValueand presents it as a Map containing KeyValue values- Type Parameters:
T- the key type- Parameters:
collection- collection ofKeyValue- Returns:
- a Mapinvalid input: '<'T,Z> where keys of the KeyValues in the collection are mapped to their respective KeyValue object
-