public class PspUtils extends Object
Modifier and Type | Field and Description |
---|---|
static String |
THREAD_ID_MDC |
Constructor and Description |
---|
PspUtils() |
Modifier and Type | Method and Description |
---|---|
static Object |
formatDate_DateHoursMinutes(org.joda.time.DateTime asofDate,
String ifNull) |
static String |
formatWithSignificantDigits(double number,
int significantDigits)
Format the number with an adjustable number of decimal places, so decimal places are
only used if they're needed to show significant values.
|
static String |
getFirstRdnString(String dnAttributeValue)
This method returns the first RDN of an LDAP DN.
|
static Map<String,Object> |
getGroupAttributes(Group group) |
static Map<String,Object> |
getGroupAttributes(PITGroup pitGroup) |
static String |
getIdString(long n) |
static Map<String,Object> |
getStemAttributes(Group group) |
static Set<String> |
getStringSet(boolean caseSensitive)
Get a string set that is case-insensitive or case-sensitive
|
static Set<String> |
getStringSet(boolean caseSensitive,
Collection<String> values)
Get a string set that is case-insensitive or case-sensitive,
The returned set will contain the values provided
|
static String |
getThreadId()
Return a (unique) id for the current thread.
|
static Set<String> |
intersectStringCollections(boolean caseSensitiveValues,
Collection<String> c1,
Collection<String> c2)
Returns a new set that is c1 INTERSECT c2
|
static void |
setupNewThread()
A method that does PSPNG's standard thread setup.
|
static Set<String> |
subtractStringCollections(boolean caseSensitiveValues,
Collection<String> c1,
Collection<String> c2)
Returns a new set that is c1 - c2
|
public static final String THREAD_ID_MDC
public static String getThreadId()
public static String getIdString(long n)
public static void setupNewThread()
public static String getFirstRdnString(String dnAttributeValue)
dnAttributeValue
- public static String formatWithSignificantDigits(double number, int significantDigits)
number
- significantDigits
- public static Object formatDate_DateHoursMinutes(org.joda.time.DateTime asofDate, String ifNull)
public static Set<String> getStringSet(boolean caseSensitive)
public static Set<String> getStringSet(boolean caseSensitive, Collection<String> values)
public static Set<String> subtractStringCollections(boolean caseSensitiveValues, Collection<String> c1, Collection<String> c2)
caseSensitiveValues
- c1
- c2
- public static Set<String> intersectStringCollections(boolean caseSensitiveValues, Collection<String> c1, Collection<String> c2)
caseSensitiveValues
- c1
- c2
- Copyright © 2016 Internet2. All rights reserved.