Esempio n. 1
0
  @Override
  public String usersInRoom(String room) throws OKMException {
    updateSessionManager();

    try {
      return String.valueOf(manager.getNumberOfUsersInRoom(room));
    } catch (PrincipalAdapterException e) {
      log.error(e.getMessage(), e);
      throw new OKMException(
          ErrorCode.get(ErrorCode.ORIGIN_OKMChatService, ErrorCode.CAUSE_PrincipalAdapter),
          e.getMessage());
    }
  }