Examples of findUser()


Examples of by.bsuir.hypermarket.dao.concrete.UserDao.findUser()

    String page = null;
    String login = request.getParameter(Commands.LOGIN_LOGIN);
    String password = request.getParameter(Commands.LOGIN_PASSWORD);
    try
      UserDao userDao = new UserDao();
      User user = userDao.findUser(login, password);
      if (user.getLogin() != null) {
        if (!user.isBan()) {
          request.setSessionAttribute(Commands.LOGIN_USER, user);
          request.setSessionAttribute(Commands.CHANGE_LANG_LOCALE, Commands.CHANGE_LANG_ENGLISH);
          page = ConfigurationManager.INSTANCE.getProperty(ConfigurationManager.MAIN_PAGE_PATH);
View Full Code Here

Examples of com.eforce.baby.auth.dao.UserDAO.findUser()

        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

Examples of com.eforce.baby.auth.delegates.UserBD.findUser()

      String dsName = sessUser.getDsName();
      String dbType = sessUser.getDbType();
            UserVO userVO = new UserVO();
      try
            {
        userVO = bd.findUser(dsName, dbType, request.getParameter("id"));
      }
            catch (DAOException e) {
        // TODO Auto-generated catch block
        e.printStackTrace();
      }
View Full Code Here

Examples of com.eforce.baby.auth.delegates.UserBD.findUser()

      String dsName = sessUser.getDsName();
      String dbType = sessUser.getDbType();
      UserVO userVO = new UserVO();
      try
      {
        userVO = bd.findUser(dsName, dbType, request.getParameter("id"));
      }
      catch (DAOException e) {
        // TODO Auto-generated catch block
        e.printStackTrace();
      }
View Full Code Here

Examples of com.lgx8.right.service.IUserCardService.findUser()

    ApplicationContext ac = new ClassPathXmlApplicationContext("ApplicationContext.xml");
   
    IUserCardService userCardService = (IUserCardService) ac.getBean("userCardService");
//    userCardService.createUser(user);
//   
    user = userCardService.findUser("username", "czt");
   
    System.out.println(user.getCard().getScore());
   
//    IConfigDao dao = (IConfigDao) ac.getBean("configDao");
//    System.out.println(dao.findGatewayConfig());
View Full Code Here

Examples of com.openbravo.pos.pda.bo.RestaurantManager.findUser()

        DynaActionForm inputForm = (DynaActionForm) form;
        RestaurantManager manager = new RestaurantManager();
        String login = inputForm.getString("login");
        String password = inputForm.getString("password");
        UserInfo user = manager.findUser(login, password);
        if (user != null) {
            HttpSession session = request.getSession();
            session.setAttribute("user", user);
            return mapping.findForward(SUCCESS);
        }
View Full Code Here

Examples of com.uphea.service.UserAuthManager.findUser()

    try {
      id = Long.valueOf(cookieData[0]);
    } catch (NumberFormatException ignore) {
      return null;
    }
    User user = userAuthManager.findUser(id, cookieData[1]);
    if (user == null) {
      return null;
    }
    userAuthManager.login(user);
    return new UserSession(user);
View Full Code Here

Examples of jpa.controllers.UserJpaController.findUser()

        if (value == null || value.length() == 0) {
            return null;
        }
        Integer id = new Integer(value);
        UserJpaController controller = (UserJpaController) context.getApplication().getELResolver().getValue(context.getELContext(), null, "userJpa");
        return controller.findUser(id);
    }

    @Override
    public String getAsString(FacesContext context, UIComponent component, Object value) {
        if (value == null) {
View Full Code Here

Examples of org.apache.archiva.redback.users.UserManager.findUser()

        createUser( USER_ALPACA, "Al 'Archiva' Paca" );

        assignRepositoryManagerRole( USER_ALPACA, "corporate" );

        UserManager userManager = securitySystem.getUserManager();
        User user = userManager.findUser( USER_ALPACA );

        AuthenticationResult result = new AuthenticationResult( true, USER_ALPACA, null );

        SecuritySession session = new DefaultSecuritySession( result, user );
        boolean isAuthorized =
View Full Code Here

Examples of org.apache.archiva.redback.users.UserManager.findUser()

        //httpServletRequestControl.expectAndReturn( request.getRemoteAddr(), "192.168.111.111" );
        EasyMock.expect( request.getRemoteAddr() ).andReturn( "192.168.111.111" );

        UserManager userManager = securitySystem.getUserManager();
        User user = userManager.findUser( USER_ALPACA );

        AuthenticationResult result = new AuthenticationResult( true, USER_ALPACA, null );

        SecuritySession session = new DefaultSecuritySession( result, user );
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.