TDAT: public String getRealName(String name, boolean ignoreCase) throws UsersRepositoryException { | |
if (ignoreCase) { | |
Iterator<String> it = list(); | |
while (it.hasNext()) { | |
String temp = it.next(); | |
if (name.equalsIgnoreCase(temp)) { | |
return temp; | |
} | |
} | |
return null; | |
} else { | |
return objectRepository.containsKey(name) ? name : null; | |
} | |
} | |
COM: <s> return the real name given the ignore case boolean parameter </s> | |