16171819202122232425
@Override public Object runCommand() throws RepositoryException { UserDatabase userRepository = getContext().getUserRepository(); List<String> users = userRepository.listAllUserNames(prefix); return users; } }
1718192021222324252627
return null; } KeystoneCliContext keystoneContext = (KeystoneCliContext) context; UserDatabase userRepository = keystoneContext.getUserRepository(); List<String> userIds = userRepository.listAllUserNames(prefix); addSuffix(userIds, " "); return userIds; }