code: public boolean isUserLocked(CmsUser user) {
  
          Set<String> keysForUser = getKeysForUser(user);
          for (String key : keysForUser) {
              CmsUserData data = m_storage.get(key);
              if ((data != null) && data.isDisabled()) {
                  return true;
              }
          }
          return false;
      }
docs: Checks if a user is locked due to too many failed logins.<p>
  
  @param user the user to check
  
  @return true if the user is locked