Exemplo n.º 1
0
  public VXAuthSession getAuthSessionBySessionId(String authSessionId) {
    if (stringUtil.isEmpty(authSessionId)) {
      throw restErrorUtil.createRESTException(
          "Please provide the auth session id.", MessageEnums.INVALID_INPUT_DATA);
    }

    XXAuthSession xXAuthSession =
        daoManager.getXXAuthSession().getAuthSessionBySessionId(authSessionId);

    if (xXAuthSession == null) {
      throw restErrorUtil.createRESTException(
          "Please provide a valid " + "session id.", MessageEnums.INVALID_INPUT_DATA);
    }

    VXAuthSession vXAuthSession = authSessionService.populateViewBean(xXAuthSession);
    return vXAuthSession;
  }