@Override public AccountInfo getAccountInfo(GetAccountRequest request) throws UserNotFoundException { logger.debug(request); User user = getHandler().doGetUser(request.getEmail()); AccountInfo accountInfo = new AccountInfo(); accountInfo.setUserId(user.getId()); accountInfo.setName(user.getName()); accountInfo.setEmail(user.getEmail()); accountInfo.setQuotaLimit(user.getQuotaLimit()); // TODO: Add real quota used to account info? accountInfo.setQuotaUsed(user.getQuotaUsedLogical()); accountInfo.setSwiftUser(user.getSwiftUser()); accountInfo.setSwiftTenant(Config.getSwiftTenant()); accountInfo.setSwiftAuthUrl(Config.getSwiftAuthUrl()); return accountInfo; }