public class PspJexlUtils extends GrouperUtilElSafe
DATE_FORMAT, DATE_FORMAT2, 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_FILE_FORMAT, TIMESTAMP_FORMAT, TIMESTAMP_NO_SLASH_FORMAT| Constructor and Description |
|---|
PspJexlUtils() |
| Modifier and Type | Method and Description |
|---|---|
static String |
bushyDn(String groupName,
String rdnAttributeName,
String ouAttributeName) |
static String |
bushyDn(String groupName,
String rdnAttributeName,
String ouAttributeName,
boolean performRdnEscaping,
boolean performFilterEscaping) |
static boolean |
containedWithin(Object item,
Object... arraysOrCollections)
This is a null-safe and flexible method for seeing if an item is a member
of one or more arrays or collections.
|
static String |
escapeLdapFilter(String filterString)
This takes a simple ldap filter 'attribute=value' or just 'value' and escapes the
filter-relevant characters: \, *, (, )
Ref: https://stackoverflow.com/questions/31309673/parse-ldap-filter-to-escape-special-characters
|
static String |
escapeLdapRdn(String rdnString)
This takes a string of attribute=value and makes sure that special, dn-relevant characters
are escaped, particularly commas, pluses, etc
|
abbreviate, abbreviate, addIfNotThere, append, appendIfNotBlank, appendIfNotBlank, appendIfNotBlank, appendIfNotBlank, appendIfNotBlankString, appendIfNotEmpty, appendIfNotEmpty, appendIfNotEmpty, appendIfNotEmpty, appendPrefixIfStringNotBlank, argAfter, arrayPopOne, assertion, batchList, batchNumberOfBatches, batchNumberOfBatches, bigDecimalObjectValue, booleanObjectValue, booleanValue, booleanValue, byteCountToDisplaySize, byteObjectValue, byteValue, capitalize, capitalize, capitalizeFully, capitalizeFully, characterMatchesRegex, charObjectValue, charValue, classesString, className, classNameCollection, collectionContains, collectionPopOne, collectionToString, compare, concat, concat, concat, concat, contains, contains, contains, convertLongToChar, convertLongToCharSmall, convertLongToString, convertLongToStringSmall, convertMillisToFriendlyString, convertMillisToFriendlyString, dateLongValue, dateStringValue, dateStringValue, dateToString, dateValue, defaultIfBlank, defaultIfEmpty, defaultIfNull, defaultString, defaultString, doubleObjectValue, doubleValue, doubleValueNoError, encryptSha, equals, equals, equalsIgnoreCase, escapeUrlDecode, escapeUrlEncode, extensionFromName, floatObjectValue, floatValue, floatValueNoError, formatNumberWithCommas, get, getCause, getCause, getFirstParentStemOfName, getFullStackTrace, getMaxLongValue, getMinLongValue, getThrowables, hostname, incrementChar, incrementStringInt, indent, indexOf, indexOf, intObjectValue, intValue, intValue, intValueNoError, ipInt, ipOnNetwork, ipOnNetworks, ipReadyForAnd, isAscii, isBlank, isBlank, isEmpty, isNestedThrowable, isNotBlank, isScalar, isThrowableNested, iterator, join, join, join, join, join, leftPad, leftPad, leftPad, length, lengthAscii, listPopOne, longObjectValue, longValue, longValue, longValueNoError, mapToString, MapToString, monthInt, next, nonNull, nonNull, nonNull, nonNull, nonNull, normalize, normalizeEmailAddresses, nullOrBlank, packInts, parentStemNameFromName, parentStemNameFromName, prefixOrSuffix, remove, remove, repeat, replace, replace, replace, replace, replace, replace, replace, replace, replace, replaceWhitespaceWithSpace, rightPad, rightPad, rightPad, setPopOne, setShorten, setToString, shortObjectValue, shortValue, sleep, sleepWithStdoutCountdown, split, split, split, split, splitByWholeSeparator, splitByWholeSeparator, splitPreserveAllTokens, splitPreserveAllTokens, splitPreserveAllTokens, splitPreserveAllTokens, splitTrim, splitTrim, splitTrimCommas, splitTrimCurlyColons, splitTrimToList, splitTrimToSet, stringLength, stringToDate, stringToDate2, stringToTimestamp, stringValue, stringValue, stripEnd, stripLastSlashIfExists, stripStart, stripSuffix, subjectHasAttribute, subjectToString, substringAfter, substringAfterLast, substringBefore, substringBeforeLast, suffixAfterChar, timestampToFileString, timestampToString, toArray, toArray, toList, toListObject, toLowerCase, toMap, toSet, toSetObject, toString, toStringForLog, toStringForLog, toStringObjectMap, toStringSafe, toTimestamp, toUpperCase, trim, trimToEmpty, truncateAscii, unenhanceClass, uniqueId, unpackInt, validEmail, xmlEscape, xmlEscapepublic static boolean containedWithin(Object item, Object... arraysOrCollections)
item - arraysOrCollections - varargs of Java arrays or collectionspublic static String bushyDn(String groupName, String rdnAttributeName, String ouAttributeName)
public static String bushyDn(String groupName, String rdnAttributeName, String ouAttributeName, boolean performRdnEscaping, boolean performFilterEscaping)
public static String escapeLdapRdn(String rdnString) throws PspException
rdnString - An RDN: attribute=valuePspExceptionpublic static String escapeLdapFilter(String filterString)
filterString - Copyright © 2022 Internet2. All rights reserved.