Package com.tll.service.entity.user

Examples of com.tll.service.entity.user.IUserService


      // stub the authorities
      stubAuthorities();

      // the service test (should be transactional)
      final IUserService userService = getEntityServiceFactory().instance(IUserService.class);
      final User user = userService.create(account, "name@domain.com", "password");
      Assert.assertNotNull(user);

      getDbTrans().startTrans();
      final User dbUser = AbstractDbAwareTest.getEntityFromDb(getDao(), User.class, user.getId());
      getDbTrans().endTrans();
View Full Code Here


        }
        final PersistContext pc = (PersistContext) sc.getAttribute(PersistContext.KEY);
        if(pc == null) {
          throw new ServletException("Unable to obtain the persist context");
        }
        final IUserService userService = pc.getEntityServiceFactory().instance(IUserService.class);
        final User user = (User) userService.loadUserByUsername(appContext.getDfltUserEmail());
        log.debug("Creating mock admin context from default user email specified in config..");
        final AdminContext ac = new AdminContext();
        ac.setUser(user);
        session.setAttribute(AdminContext.KEY, ac);
        log.info("Server-side admin context created and stored in the servlet context");
View Full Code Here

        }
        final PersistContext pc = (PersistContext) sc.getAttribute(PersistContext.KEY);
        if(pc == null) {
          throw new ServletException("Unable to obtain the persist context");
        }
        final IUserService userService = pc.getEntityServiceFactory().instance(IUserService.class);
        final User user = (User) userService.loadUserByUsername(appContext.getDfltUserEmail());
        log.debug("Creating mock admin context from default user email specified in config..");
        final AdminContext ac = new AdminContext();
        ac.setUser(user);
        session.setAttribute(AdminContext.KEY, ac);
        log.info("Server-side admin context created and stored in the servlet context");
View Full Code Here

      // stub the authorities
      stubAuthorities();

      // the service test (should be transactional)
      final IUserService userService = getEntityServiceFactory().instance(IUserService.class);
      final User user = userService.create(account, "name@domain.com", "password");
      Assert.assertNotNull(user);

      getDbTrans().startTrans();
      final User dbUser = AbstractDbAwareTest.getEntityFromDb(getDao(), new PrimaryKey<User>(user));
      getDbTrans().endTrans();
View Full Code Here

TOP

Related Classes of com.tll.service.entity.user.IUserService

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.