if (findQualifiers == null)
return;
List<String> fqList = findQualifiers.getFindQualifier();
if (fqList == null || fqList.size() == 0)
throw new ValueNotAllowedException(new ErrorMessage("errors.findqualifiers.NoInput"));
Hashtable<String, String> fqTable = new Hashtable<String, String>();
for (String fq : fqList) {
String result = fqTable.put(fq.toUpperCase(), fq.toUpperCase());
if (result != null)
throw new ValueNotAllowedException(new ErrorMessage("errors.findqualifiers.DuplicateValue", result));
// Invalid combo: andAllKeys, orAllKeys, and orLikeKeys
if (fq.equalsIgnoreCase(FindQualifiers.AND_ALL_KEYS) || fq.equalsIgnoreCase(FindQualifiers.AND_ALL_KEYS_TMODEL)) {
if (fqTable.get(FindQualifiers.OR_ALL_KEYS.toUpperCase()) != null || fqTable.get(FindQualifiers.OR_ALL_KEYS_TMODEL.toUpperCase()) != null)
throw new InvalidCombinationException(new ErrorMessage("errors.findqualifiers.InvalidCombo", fq + " & " + FindQualifiers.OR_ALL_KEYS));