コード例 #1
0
 /** @return Get the recent three days summary information. */
 public SummaryPRBean handleDefaultParams() {
   SummaryPRBean bean = new SummaryPRBean();
   bean.setStartTime(TimeHelper.GetBeforeTime(SummaryPRParamsHandler.BEFORE_TIME));
   bean.setEndTime(TimeHelper.getCurrentTime());
   bean.setPage(1);
   return bean;
 }
コード例 #2
0
  /**
   * @param request
   * @return Get the summary information by user request.
   */
  public SummaryPRBean handleRequestParams(HttpServletRequest request) {
    SummaryPRBean bean = new SummaryPRBean();
    String fileName = request.getParameter(SummaryPRParamsHandler.FILE_NAME);
    bean.setFileName(StringUtils.isNotEmpty(fileName) ? fileName : "");
    bean.setStartTime(request.getParameter(SummaryPRParamsHandler.START_TIME));
    bean.setEndTime(request.getParameter(SummaryPRParamsHandler.END_TIME));

    String page = request.getParameter(SummaryPRParamsHandler.PAGE);
    if (page != null && page != "") {
      bean.setPage(Integer.parseInt(page));
    }
    bean.setFileStatus(request.getParameter(SummaryPRParamsHandler.FILE_STATUS));
    return bean;
  }