예제 #1
0
  /**
   * @param rundata
   * @param context
   * @return
   */
  @Override
  protected ResultList<EipTNoteMap> selectList(RunData rundata, Context context) {

    try {
      userId = Integer.toString(ALEipUtils.getUserId(rundata));
      newNoteAllSum = NoteUtils.getNewReceivedNoteAllSum(rundata, userId);
      unreadReceivedNotesAllSum = NoteUtils.getUnreadReceivedNotesAllSum(rundata, userId);

      SelectQuery<EipTNoteMap> query = getSelectQuery(rundata, context);
      buildSelectQueryForListView(query);
      buildSelectQueryForListViewSort(query, rundata, context);

      return query.getResultList();
    } catch (Exception ex) {
      logger.error("note", ex);
      return null;
    }
  }
예제 #2
0
 /**
  * @param userId
  * @return
  */
 public String getUserName(String userId) {
   return NoteUtils.getUserName(userId);
 }
예제 #3
0
 /**
  * @param userName
  * @return
  */
 public String getUserId(String userName) {
   return NoteUtils.getUserId(userName);
 }
예제 #4
0
 /**
  * 検索条件を設定した Criteria を返す.
  *
  * @param rundata
  * @return
  */
 private SelectQuery<EipTNoteMap> getSelectQuery(RunData rundata, Context context) {
   return NoteUtils.getSelectQueryNoteList(rundata, context);
 }