Examples of UserImpl


Examples of org.internna.iwebmvc.model.security.UserImpl

    private void createNewUser(User user, String password) throws NoSuchAlgorithmException, UnsupportedEncodingException {
        Collection <Role> roles = new HashSet<Role>();
        for (Role role : user.getRoles()) roles.add(role);
        user.clearRoles();
        if (user instanceof UserImpl) {
            UserImpl impl = (UserImpl) user;
            impl.setPassword(password);
        }
        dao.createUser(user);
        updateAuthorities(user, roles);
    }
View Full Code Here

Examples of org.jayasoft.woj.portal.model.UserImpl

            throw e;
        }
    }
   
   protected UserImpl refreshUser(HttpServletRequest request) {
       UserImpl u = (UserImpl)request.getSession().getAttribute(Params.LOGIN.SESSION.USER);
       if (u != null) {
           u = (UserImpl)Portal.getInstance().getUserService().getUser(u.getLogin());
           if (u!=null) {
               request.getSession().setAttribute(Params.LOGIN.SESSION.USER, u);
           }
       }
       return u;
View Full Code Here

Examples of org.jboss.errai.security.shared.api.identity.UserImpl

   * @param picketLinkUser the user returned by picketLink
   * @param roles The roles the given user has.
   * @return our user
   */
  private User createUser(org.picketlink.idm.model.basic.User picketLinkUser, Set<? extends Role> roles) {
    User user = new UserImpl(picketLinkUser.getLoginName(), roles, translatePicketLinkAttributes(picketLinkUser));
    return user;
  }
View Full Code Here

Examples of org.jboss.seam.security.UserImpl

         identity.addGroup("USERS", "GROUP");
      }
     
      // Let any user log in
      setStatus(AuthenticationStatus.SUCCESS);
      setUser(new UserImpl(credentials.getUsername()));
   }
View Full Code Here

Examples of org.jbpm.services.task.impl.model.UserImpl

        Map<String, List<?>> fieldVals = new HashMap<String, List<?>>();
        fieldVals.put(PROCESS_INSTANCE_ID_LIST, statuses);
        List<org.kie.api.task.model.TaskSummary> taskSumList = ((InternalTaskService)taskService).getTasksByVariousFields(busAdmin, fieldVals, true);
        assertEquals( "Task summary list size", 1, taskSumList.size());
        TaskSummaryImpl taskSumImpl = (TaskSummaryImpl) taskSumList.get(0);
        taskSumImpl.setActualOwner(new UserImpl("Minnie"));
        taskSumImpl.setCreatedBy(new UserImpl("Mickey"));
      
        List<JaxbTaskSummary> jaxbTaskSumList = new ArrayList<JaxbTaskSummary>();
        Iterator<TaskSummary> iter = taskSumList.iterator();
        while( iter.hasNext() ) {
            jaxbTaskSumList.add(new JaxbTaskSummary(iter.next()));
View Full Code Here

Examples of org.scotlandyard.impl.engine.UserImpl

  @Override
   public Object getOutput(
         final HttpServletRequest request,
        final GameEngine engine) throws GameException {

    user = new UserImpl(name, email);
    engine.getUsers().put(getSessionId(), user);

    return (new JsonContainerAdapter("done").toJson());

  }
View Full Code Here

Examples of uk.ac.bbsrc.tgac.miso.core.data.impl.UserImpl

  }

  @Override
  public void generateResponse(Event event) {
    log.info("Responding to event: " + event.getEventMessage() + ". Raising alert...");
    User u = new UserImpl();
    u.setFullName("Bar baz");
    Alert a = new MockAlert(u);
    a.setAlertText(a.getAlertText() + " ("+event.getEventMessage()+")");

    for (AlerterService as : alerterServices) {
      try {
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.