Exemplo n.º 1
0
  private void clearAllUser(String ipAddr, Enumeration<String> sessions) {
    if (DCIString.isNullOrEmpty(ipAddr) || sessions == null) {
      // System.out.println("session destroyed");
    } else {
      String uid = null;
      String sessionName = null;
      Singleton s = Singleton.getInstance();

      while (sessions.hasMoreElements()) {
        sessionName = sessions.nextElement();
        // System.out.println(sessionName);
        if (sessionName.indexOf(DCIWebConstants.getUserInfoTag()) != -1) {
          uid = sessionName.replace(DCIWebConstants.getUserInfoTag(), "");
          s.removeLicenseUser(uid, ipAddr);
          s.removeOnlineUser(uid, ipAddr);
        }
      }
    }
  }