Exemple #1
0
  /**
   * ストックの選択肢を一覧取得(JSON)
   *
   * @return
   * @throws InvalidParamException
   */
  @Get
  public Boundary chooselist() throws InvalidParamException {
    Integer offset = super.getPathInteger(0);
    StocksDao stocksDao = StocksDao.get();

    Long knowledgeId = getParam("knowledge_id", Long.class);
    List<Stock> stocks =
        stocksDao.selectMyStocksWithStocked(
            super.getLoginedUser(), knowledgeId, offset * LIST_LIMIT, LIST_LIMIT);
    return send(stocks);
  }