Package com.eforce.baby.auth.dao

Examples of com.eforce.baby.auth.dao.UserDAO


   * @throws EEMSException
   */
  public void createUser( String dsName, String dbType, UserVO userVO) throws EEMSException
  {

    UserDAO dao = (UserDAO) DAOFactory.getInstance().getDAO("com.eteam.ems.auth.dao.UserDAO");
    try
    {
      dao.createUser(dsName,dbType,userVO);
    }
    catch (DAOException e)
    {
      log.error("ERROR in createUser ",e);
      BusinessException be=new BusinessException(e.getMessage());
View Full Code Here


    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);
View Full Code Here

    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);
View Full Code Here

   */
    public UserVO findUser(String dsName, String dbType, String reportID) throws DAOException
    {
        UserVO userVO = null;
       
        UserDAO dao = (UserDAO) DAOFactory.getInstance().
                  getDAO("com.eteam.ems.auth.dao.UserDAO");
        try
        {
          log.debug("calling  dao.findUser");
          userVO = dao.findUser(dsName, dbType, reportID);
          log.debug("returning  dao.findUser");
        }
        catch (DAOException e)
        {
          throw e;
View Full Code Here

    public SessionUserVO findUserSessionInfo(String dsName, String dbType, String userLogin) throws DAOException
    {
        SessionUserVO userSess = null;
        try
        {
            UserDAO dao = (UserDAO) DAOFactory.getInstance().getDAO("com.eteam.ems.auth.dao.UserDAO");
            userSess = dao.findUserSessionInfo(dsName, dbType, userLogin);
        }
        catch(DAOException se)
        {
            throw se;
        }
View Full Code Here

        return userSess;
    }
   
    public UserPrivilegeList findUserPrivileges(String dsName, String dbType, String userLogin) throws DAOException
    {
        UserDAO dao = (UserDAO) DAOFactory.getInstance().getDAO("com.eteam.ems.auth.dao.UserDAO");
       
        return dao.findUserPrivileges(dsName, dbType, userLogin);
    }
View Full Code Here

   * @param userVO
   */
  public void updateUser(String dsName, String dbType, UserVO userVO) throws EEMSException
  {
   
    UserDAO dao = (UserDAO) DAOFactory.getInstance().getDAO("com.eteam.ems.auth.dao.UserDAO");
    try
    {
      dao.updateUser(dsName,dbType,userVO);
    }
    catch (DAOException e)
    {
      log.error("ERROR in createUser ",e);
      BusinessException be=new BusinessException(e.getMessage());
View Full Code Here

    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))
          {
               
View Full Code Here

   * @throws BusinessException
   */
  public void delete(String dsName, String dbType, String id) throws BusinessException
  {

    UserDAO dao = (UserDAO) DAOFactory.getInstance().getDAO("com.eteam.ems.auth.dao.UserDAO");
    try
    {
      dao.delete(dsName,dbType,id);
    }
    catch (DAOException e)
    {
      log.error("ERROR in deleteUser ",e);
      BusinessException be=new BusinessException(e.getMessage());
View Full Code Here

   * @return
   * @throws DAOException
   */
  public String findUserID(String dsName,String dbType,String userLoginID) throws DAOException
  {
    UserDAO dao = (UserDAO) DAOFactory.getInstance().getDAO("com.eteam.ems.auth.dao.UserDAO");
    return dao.findUserID(dsName,dbType,userLoginID);
  }
View Full Code Here

TOP

Related Classes of com.eforce.baby.auth.dao.UserDAO

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.