Package com.eforce.baby.reports.vo

Examples of com.eforce.baby.reports.vo.ReportResultsVO


   * @return
   */
    public ReportResultsVO getRoleByName(String dsName, String dbType, String linkCol, PageInfoVO page, SortInfoVO sort, String userId, String profileRepId ) throws DAOException
    {
      log.debug("dsName: [" + dsName + "] " + "dbType: [" + dbType + "] " + "linkCol: [" + linkCol + "]" + "startPos: [" + page.getStartPosition() + "] " + "rowCount: [" + page.getCount() + "]");
       ReportResultsVO roleData = new ReportResultsVO();
       try
       {
         //fetch report results
        RoleDAO dao = (RoleDAO) DAOFactory.getInstance().getDAO("com.eteam.ems.auth.dao.RoleDAO");
        roleData = dao.findRoleByName(dsName, dbType, page, sort,userId,profileRepId);
        roleData = super.getDataForDisplay(roleData, linkCol);
       
        //    set report specific header keys and their default value keys
        roleData.addColumnInfo(1, IConstants.HEADER_KEY_ROLE, IConstants.DEFAULT_DATA_KEY_NR);
        roleData.addColumnInfo(2, IConstants.HEADER_KEY_GROUP, IConstants.DEFAULT_DATA_KEY_NR);
     
       }
       catch(DAOException e)
       {
         log.error("ERROE", e);
View Full Code Here


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


    log.debug("dsName: [" + dsName + "] " + "dbType: [" + dbType + "] " + "SearchVO: [" + searchVO + "]");
    ReportResultsVO roleData = new ReportResultsVO();
    try
    {
          RoleDAO dao = (RoleDAO) DAOFactory.getInstance().getDAO("com.eteam.ems.auth.dao.RoleDAO");
          roleData = dao.searchReportResult(dsName, dbType, searchVO, userId, null);
          int i=1;
       
          if(searchVO.getSearchBy().equals(IConstants.SEARCH_ROLE))
          {
               
            roleData.addColumnInfo(i++, IConstants.HEADER_KEY_BLANK_SPACE, IConstants.DEFAULT_DATA_KEY_BLANKSPACE);
               roleData.addColumnInfo(i++, IConstants.HEADER_KEY_ROLE, IConstants.DEFAULT_DATA_KEY_NR);
            roleData.addColumnInfo(i++, IConstants.HEADER_KEY_GROUP, IConstants.DEFAULT_DATA_KEY_NR);
          
            
         
          
          else
View Full Code Here

   * @return
   */                 
  public ReportResultsVO getUserByName(String dsName, String dbType, String linkCol, PageInfoVO page, SortInfoVO sort, String userId, String profileRepId ) throws DAOException
     {
    log.debug("dsName: [" + dsName + "] " + "dbType: [" + dbType + "] " + "linkCol: [" + linkCol + "]" + "startPos: [" + page.getStartPosition() + "] " + "rowCount: [" + page.getCount() + "]");
     ReportResultsVO userData = new ReportResultsVO();
     try
     {
       //fetch report results
       UserDAO dao = (UserDAO) DAOFactory.getInstance().getDAO("com.eteam.ems.auth.dao.UserDAO");
       userData = dao.findUserByName(dsName, dbType, page, sort, userId,profileRepId);
       userData = super.getDataForDisplay(userData, linkCol);
      
      //set report specific header keys and their default value keys
      userData.addColumnInfo(1, IConstants.HEADER_KEY_USERID, IConstants.DEFAULT_DATA_KEY_NR);
      userData.addColumnInfo(2, IConstants.HEADER_KEY_GROUP, IConstants.DEFAULT_DATA_KEY_NR);
      userData.addColumnInfo(3, IConstants.HEADER_KEY_FIRSTNAME, IConstants.DEFAULT_DATA_KEY_NR);
      userData.addColumnInfo(4, IConstants.HEADER_KEY_LASTNAME, IConstants.DEFAULT_DATA_KEY_NR);
      userData.addColumnInfo(5, IConstants.HEADER_KEY_EMAIL, IConstants.DEFAULT_DATA_KEY_NR);
          
     }
     catch(DAOException e)
     {
       log.error("ERROE", e);
View Full Code Here

   * @return
   */
  public ReportResultsVO getUserByGroup(String dsName, String dbType, String linkCol, PageInfoVO page, SortInfoVO sort, String userId, String profileRepId ) throws DAOException
  {
    log.debug("dsName: [" + dsName + "] " + "dbType: [" + dbType + "] " + "linkCol: [" + linkCol + "]" + "startPos: [" + page.getStartPosition() + "] " + "rowCount: [" + page.getCount() + "]");
     ReportResultsVO userData = new ReportResultsVO();
     try
     {
       //fetch report results
       UserDAO dao = (UserDAO) DAOFactory.getInstance().getDAO("com.eteam.ems.auth.dao.UserDAO");
       userData = dao.findUserByGroup(dsName, dbType, page, sort,userId,profileRepId);
       userData = super.getDataForDisplay(userData, linkCol);
      
      //    set report specific header keys and their default value keys
      userData.addColumnInfo(1, IConstants.HEADER_KEY_GROUP, IConstants.DEFAULT_DATA_KEY_NR);
      userData.addColumnInfo(2, IConstants.HEADER_KEY_USERID, IConstants.DEFAULT_DATA_KEY_NR);
      userData.addColumnInfo(3, IConstants.HEADER_KEY_FIRSTNAME, IConstants.DEFAULT_DATA_KEY_NR);
      userData.addColumnInfo(4, IConstants.HEADER_KEY_LASTNAME, IConstants.DEFAULT_DATA_KEY_NR);
      userData.addColumnInfo(5, IConstants.HEADER_KEY_EMAIL, IConstants.DEFAULT_DATA_KEY_NR);
     }
     catch(DAOException e)
     {
       log.error("ERROE", e);
     }
View Full Code Here

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


    log.debug("dsName: [" + dsName + "] " + "dbType: [" + dbType + "] " + "SearchVO: [" + searchVO + "]");
    ReportResultsVO userData = new ReportResultsVO();
    try
    {
          UserDAO dao = (UserDAO) DAOFactory.getInstance().getDAO("com.eteam.ems.auth.dao.UserDAO");
          userData = dao.searchReportResult(dsName, dbType, searchVO, userId, null);
          int i=1;
       
          if(searchVO.getSearchBy().equals(IConstants.SEARCH_USER_BY_NAME))
          {
               
             userData.addColumnInfo(i++, IConstants.HEADER_KEY_BLANK_SPACE, IConstants.DEFAULT_DATA_KEY_BLANKSPACE);
             userData.addColumnInfo(i++, IConstants.HEADER_KEY_USERID, IConstants.DEFAULT_DATA_KEY_NR);
             userData.addColumnInfo(i++, IConstants.HEADER_KEY_GROUP, IConstants.DEFAULT_DATA_KEY_NR);
             userData.addColumnInfo(i++, IConstants.HEADER_KEY_FIRSTNAME, IConstants.DEFAULT_DATA_KEY_NR);
             userData.addColumnInfo(i++, IConstants.HEADER_KEY_LASTNAME, IConstants.DEFAULT_DATA_KEY_NR);
             userData.addColumnInfo(i++, IConstants.HEADER_KEY_EMAIL, IConstants.DEFAULT_DATA_KEY_NR);
          
            
         
          else if(searchVO.getSearchBy().equals(IConstants.SEARCH_USER_BY_GROUP))
          {
            userData.addColumnInfo(i++, IConstants.HEADER_KEY_BLANK_SPACE, IConstants.DEFAULT_DATA_KEY_BLANKSPACE);
            userData.addColumnInfo(i++, IConstants.HEADER_KEY_GROUP, IConstants.DEFAULT_DATA_KEY_NR);
            userData.addColumnInfo(i++, IConstants.HEADER_KEY_USERID, IConstants.DEFAULT_DATA_KEY_NR);
            userData.addColumnInfo(i++, IConstants.HEADER_KEY_FIRSTNAME, IConstants.DEFAULT_DATA_KEY_NR);
            userData.addColumnInfo(i++, IConstants.HEADER_KEY_LASTNAME, IConstants.DEFAULT_DATA_KEY_NR);
            userData.addColumnInfo(i++, IConstants.HEADER_KEY_EMAIL, IConstants.DEFAULT_DATA_KEY_NR);
          }   
          else
          {
            log.debug("No Search By found");
          }
View Full Code Here

   */
  public ReportResultsVO getNotificationByStatus(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
    NotificationAdminDAO dao =(NotificationAdminDAO) DAOFactory.getInstance().getDAO("com.eteam.ems.auth.dao.NotificationAdminDAO");
    reportData =dao.findNotificationByStatus(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_STATUS,IConstants.DEFAULT_DATA_KEY_NR);
    reportData.addColumnInfo(2,IConstants.HEADER_KEY_POSTED_DATE,IConstants.DEFAULT_DATA_KEY_NR);
    reportData.addColumnInfo(3,IConstants.HEADER_KEY_FORM,IConstants.DEFAULT_DATA_KEY_NR);

    return reportData;
  }
View Full Code Here

   */
  public ReportResultsVO getNotificationByNotProcessed(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
    NotificationAdminDAO dao =(NotificationAdminDAO) DAOFactory.getInstance().getDAO("com.eteam.ems.auth.dao.NotificationAdminDAO");
    reportData =dao.findNotificationByNotProcessed(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_STATUS,IConstants.DEFAULT_DATA_KEY_NR);
    reportData.addColumnInfo(2,IConstants.HEADER_KEY_POSTED_DATE,IConstants.DEFAULT_DATA_KEY_NR);
    reportData.addColumnInfo(3,IConstants.HEADER_KEY_FORM,IConstants.DEFAULT_DATA_KEY_NR);

    return reportData;
  }
View Full Code Here

   * @throws BusinessException
   */
  public ReportResultsVO getDistributionGroupByName(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 distGroupData = new ReportResultsVO();
    //fetch report results
    DistributionGroupDAO dao = (DistributionGroupDAO) DAOFactory.getInstance().getDAO("com.eteam.ems.auth.dao.DistributionGroupDAO");
    distGroupData = dao.findDistributionGroupByName(dsName, dbType, page, sort,userId,profileRepId);
    distGroupData = super.getDataForDisplay(distGroupData, linkCol);
     
    //      set report specific header keys and their default value keys
    distGroupData.addColumnInfo(1, IConstants.HEADER_KEY_DISTGROUP, IConstants.DEFAULT_DATA_KEY_NR);
    distGroupData.addColumnInfo(2, IConstants.HEADER_KEY_USERID, IConstants.DEFAULT_DATA_KEY_NR);
    distGroupData.addColumnInfo(3, IConstants.HEADER_KEY_FIRSTNAME, IConstants.DEFAULT_DATA_KEY_NR);
    distGroupData.addColumnInfo(4, IConstants.HEADER_KEY_LASTNAME, IConstants.DEFAULT_DATA_KEY_NR);
    distGroupData.addColumnInfo(5, IConstants.HEADER_KEY_EMAIL, IConstants.DEFAULT_DATA_KEY_NR);
   
    return distGroupData;
  }
View Full Code Here

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


    log.debug("dsName: [" + dsName + "] " + "dbType: [" + dbType + "] " + "SearchVO: [" + searchVO + "]");
    ReportResultsVO distGroupData = new ReportResultsVO();
    DistributionGroupDAO dao = (DistributionGroupDAO) DAOFactory.getInstance().getDAO("com.eteam.ems.auth.dao.DistributionGroupDAO");
    distGroupData = dao.searchReportResult(dsName, dbType, searchVO, userId, null);
    int i=1;
       
    if(searchVO.getSearchBy().equals(IConstants.SEARCH_DIST_GROUP_BY_NAME))
    {
      distGroupData.addColumnInfo(i++, IConstants.HEADER_KEY_BLANK_SPACE, IConstants.DEFAULT_DATA_KEY_BLANKSPACE);
         distGroupData.addColumnInfo(i++, IConstants.HEADER_KEY_DISTGROUP, IConstants.DEFAULT_DATA_KEY_NR);
      distGroupData.addColumnInfo(i++, IConstants.HEADER_KEY_USERID, IConstants.DEFAULT_DATA_KEY_NR);
      distGroupData.addColumnInfo(i++, IConstants.HEADER_KEY_FIRSTNAME, IConstants.DEFAULT_DATA_KEY_NR);
      distGroupData.addColumnInfo(i++, IConstants.HEADER_KEY_LASTNAME, IConstants.DEFAULT_DATA_KEY_NR);
      distGroupData.addColumnInfo(i++, IConstants.HEADER_KEY_EMAIL, IConstants.DEFAULT_DATA_KEY_NR);
    }   
    else
    {
      log.debug("No Search By found");
    }
View Full Code Here

TOP

Related Classes of com.eforce.baby.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.