Package com.eteam.ems.reports.vo

Examples of com.eteam.ems.reports.vo.ReportResultsVO


   * @throws BusinessException
   */
  public ReportResultsVO getGroupByName(String dsName, String dbType, String linkCol, PageInfoVO page, SortInfoVO sort, String userId, String profileRepId ) throws DAOException, BusinessException
  {
    log.debug("dsName: [" + dsName + "] " + "dbType: [" + dbType + "] " + "linkCol: [" + linkCol + "]" + "startPos: [" + page.getStartPosition() + "] " + "rowCount: [" + page.getCount() + "]");
    ReportResultsVO reportData = new ReportResultsVO();
    //fetch report results
    GroupDAO dao = (GroupDAO) DAOFactory.getInstance().getDAO("com.eteam.ems.auth.dao.GroupDAO");
    reportData = dao.findGroupByName(dsName, dbType, page, sort,userId,profileRepId);
    reportData = super.getDataForDisplay(reportData, linkCol);
     
    //    set report specific header keys and their default value keys
    reportData.addColumnInfo(1, IConstants.HEADER_KEY_GROUP, IConstants.DEFAULT_DATA_KEY_NR);
    reportData.addColumnInfo(2, IConstants.HEADER_KEY_ROLE, IConstants.DEFAULT_DATA_KEY_NR);

    return reportData;
  }
View Full Code Here


   * @throws BusinessException
   */
  public ReportResultsVO getGroupByRole(String dsName, String dbType, String linkCol, PageInfoVO page, SortInfoVO sort, String userId, String profileRepId ) throws DAOException, BusinessException
  {
    log.debug("dsName: [" + dsName + "] " + "dbType: [" + dbType + "] " + "linkCol: [" + linkCol + "]" + "startPos: [" + page.getStartPosition() + "] " + "rowCount: [" + page.getCount() + "]");
    ReportResultsVO reportData = new ReportResultsVO();
    //fetch report results
    GroupDAO dao = (GroupDAO) DAOFactory.getInstance().getDAO("com.eteam.ems.auth.dao.GroupDAO");
    reportData = dao.findGroupByRole(dsName, dbType, page, sort,userId,profileRepId);
    reportData = super.getDataForDisplay(reportData, linkCol);

    //    set report specific header keys and their default value keys
    reportData.addColumnInfo(1, IConstants.HEADER_KEY_ROLE, IConstants.DEFAULT_DATA_KEY_NR);
    reportData.addColumnInfo(2, IConstants.HEADER_KEY_GROUP, IConstants.DEFAULT_DATA_KEY_NR);
    reportData.addColumnInfo(3, IConstants.HEADER_KEY_BLANK_SPACE, IConstants.HEADER_KEY_BLANK_SPACE);
   
    return reportData;
  }
View Full Code Here

  {
    log.debug("Calling GroupBD.search()");


    log.debug("dsName: [" + dsName + "] " + "dbType: [" + dbType + "] " + "SearchVO: [" + searchVO + "]");
    ReportResultsVO groupData = new ReportResultsVO();

    GroupDAO dao = (GroupDAO) DAOFactory.getInstance().getDAO("com.eteam.ems.auth.dao.GroupDAO");
    groupData = dao.searchReportResult(dsName, dbType, searchVO, userId, null);
    int i=1;

    if(searchVO.getSearchBy().equals(IConstants.SEARCH_GROUP_BY_NAME))
    {
      groupData.addColumnInfo(i++, IConstants.HEADER_KEY_BLANK_SPACE, IConstants.DEFAULT_DATA_KEY_BLANKSPACE);
      groupData.addColumnInfo(i++, IConstants.HEADER_KEY_GROUP, IConstants.DEFAULT_DATA_KEY_NR);
      groupData.addColumnInfo(i++, IConstants.HEADER_KEY_ROLE, IConstants.DEFAULT_DATA_KEY_NR);
    }
    else if(searchVO.getSearchBy().equals(IConstants.SEARCH_GROUP_BY_ROLE))
    {
      groupData.addColumnInfo(i++, IConstants.HEADER_KEY_BLANK_SPACE, IConstants.DEFAULT_DATA_KEY_BLANKSPACE);
      groupData.addColumnInfo(i++, IConstants.HEADER_KEY_ROLE, IConstants.DEFAULT_DATA_KEY_NR);
      groupData.addColumnInfo(i++, IConstants.HEADER_KEY_GROUP, IConstants.DEFAULT_DATA_KEY_NR);
      groupData.addColumnInfo(i++, IConstants.HEADER_KEY_BLANK_SPACE, IConstants.HEADER_KEY_BLANK_SPACE);
    }   
    else
    {
      log.debug("No Search By found");
    }
View Full Code Here

TOP

Related Classes of com.eteam.ems.reports.vo.ReportResultsVO

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.