public class QueryHelper
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
convertGroupIfNeeded(java.lang.String group,
int direction,
java.util.Locale locale)
Converts the specified group name to lower or upper case or leaves it unchanged
depending on the direction and locale values.
|
static java.util.List |
convertGroupsIfNeeded(java.util.List groups,
int direction,
java.util.Locale locale)
Converts the specified group names to lower or upper case or leaves them unchanged
depending on the direction and locale values.
|
static java.lang.String |
convertUserIfNeeded(java.lang.String user,
int direction,
java.util.Locale locale)
Converts the specified user ID to lower or upper case or leaves it unchanged
depending on the direction and locale values.
|
static java.util.List |
convertUsersIfNeeded(java.util.List users,
int direction,
java.util.Locale locale)
Converts the specified user IDs to lower or upper case or leaves them unchanged
depending on the direction and locale values.
|
static OID |
toOID(byte[] id)
Creates an OID object from its byte array representation.
|
static OID |
toOID(java.lang.String id)
Creates an OID object from its string representation.
|
public static final java.lang.String COPYRIGHT
public static final OID toOID(java.lang.String id) throws IdWrongFormatException
id
- The string representation of an object ID.IdWrongFormatException
- Thrown when the passed byte array is null or not a valid string representation of an object ID.public static final OID toOID(byte[] id) throws IdWrongFormatException
id
- The byte array representation of an object ID.IdWrongFormatException
- Thrown when the passed byte array is null or not a valid byte array representation of an object ID.public static final java.lang.String convertUserIfNeeded(java.lang.String user, int direction, java.util.Locale locale)
user
- The user ID that is to be converted.direction
- An indication to state how the user ID is to be converted -
see HtmConfiguration.CASE_CONVERSION_LOWER etc
for valid values.locale
- The locale to be used for the conversion.public static final java.util.List convertUsersIfNeeded(java.util.List users, int direction, java.util.Locale locale)
users
- The user IDs that are to be converted, that is, a list of strings.direction
- An indication to state how the user IDs are to be converted -
see HtmConfiguration.CASE_CONVERSION_LOWER etc
for valid values.locale
- The locale to be used for the conversion.public static final java.lang.String convertGroupIfNeeded(java.lang.String group, int direction, java.util.Locale locale)
group
- The group name that is to be converted.direction
- An indication to state how the group name is to be converted -
see HtmConfiguration.CASE_CONVERSION_LOWER etc
for valid values.locale
- The locale to be used for the conversion.public static final java.util.List convertGroupsIfNeeded(java.util.List groups, int direction, java.util.Locale locale)
groups
- The group names that are to be converted, that is, a list of strings.direction
- An indication to state how the group names are to be converted -
see HtmConfiguration.CASE_CONVERSION_LOWER etc
for valid values.locale
- The locale to be used for the conversion.