@Override public String getEventDescription() { User user = _responseGenerator.findUserById(getId()); return (user != null ? ("deleting User " + user.getUsername() + " (id: " + user.getId() + ") and accountId = " + user.getAccountId()) : "user delete, but this user does not exist in the system"); }
s_logger.debug("disabled or locked user accessing the api, userid = " + user.getId() + "; name = " + user.getUsername() + "; state: " + user.getState() + "; accountState: " + account.getState()); return false; s_logger.debug("User does not have a secret key associated with the account -- ignoring request, username: " + user.getUsername()); return false;
s_logger.info("disabled or locked user accessing the api, userid = " + user.getId() + "; name = " + user.getUsername() + "; state: " + user.getState() + "; accountState: " + account.getState()); return false; s_logger.info("User does not have a secret key associated with the account -- ignoring request, username: " + user.getUsername()); return false;
callingUser.getUuid(), callingUser.getUsername(), callingAccount.getUuid(), callingAccount.getAccountName())); return;
eventDescription.put("username", userJobOwner.getUsername()); eventDescription.put("accountname", jobOwner.getAccountName()); eventDescription.put("domainname", domain.getName());
User creditorUser = _userDao.getUser(updatedBy); if (creditorUser != null) { creditor = creditorUser.getUsername();
throw new InvalidParameterValueException("apiKey for user: " + user.getUsername() + " is empty. Please generate it"); throw new InvalidParameterValueException("secretKey for user: " + user.getUsername() + " is empty. Please generate it");
if (BaremetalUtils.BAREMETAL_SYSTEM_ACCOUNT_NAME.equals(user.getUsername())) { throw new PermissionDeniedException("user id : " + user.getId() + " is system account, update is not allowed");
throw new InvalidParameterValueException("apiKey for user: " + user.getUsername() + " is empty. Please generate it"); throw new InvalidParameterValueException("secretKey for user: " + user.getUsername() + " is empty. Please generate it");
SamlUserAccountResponse accountResponse = new SamlUserAccountResponse(); accountResponse.setUserId(user.getUuid()); accountResponse.setUserName(user.getUsername()); accountResponse.setDomainId(domain.getUuid()); accountResponse.setDomainName(domain.getName());
if (user != null) { userVmResponse.setUserId(user.getUuid()); userVmResponse.setUserName(user.getUsername());