Examples of createUser()


Examples of org.jbpm.pvm.internal.identity.spi.IdentitySession.createUser()

    this.businessEmail = businessEmail;
  }

  public Void execute(Environment environment) throws Exception {
    IdentitySession identitySession = environment.get(IdentitySession.class);
    identitySession.createUser(userId, givenName, familyName, businessEmail);
    return null;
  }

}
View Full Code Here

Examples of org.jivesoftware.openfire.user.UserManager.createUser()

      if ((userName != null) && (password != null)) {
        try {
          userName = Stringprep.nodeprep(userName);

          if (!isUserProviderReadOnly()) {
            userManager.createUser(userName, password, name, email);
          }

          // Check to see user exists before adding their roster, this
          // is for read-only user providers.
          userManager.getUser(userName);
View Full Code Here

Examples of org.lab41.dendrite.metagraph.MetaGraphTx.createUser()

        GraphMetadata srcGraphMetadata;
        GraphMetadata dstGraphMetadata;
        JobMetadata jobMetadata;

        try {
            userMetadata = metaGraphTx.createUser("test");
            projectMetadata = metaGraphTx.createProject("test", userMetadata);
            branchMetadata = projectMetadata.getCurrentBranch();
            srcGraphMetadata = branchMetadata.getGraph();
            dstGraphMetadata = metaGraphTx.createGraph(srcGraphMetadata);
            jobMetadata = metaGraphTx.createJob(projectMetadata);
View Full Code Here

Examples of org.nemesis.forum.ProfileManager.createUser()

      ForumFactory forumFactory = ForumFactory.getInstance(getAuthToken(request));
      ProfileManager manager = forumFactory.getProfileManager();
      User user = manager.getUser(getAuthToken(request).getUserID());
      try {
        UserBean ub = (UserBean) PropertyUtils.getProperty(form, "userBean");
        User u = manager.createUser(ub.getUserName(), ub.getPassword(), ub.getEmail());
        u.setEmailVisible(ub.isEmailVisible());
        u.setName(ub.getName());
        u.setNameVisible(ub.isNameVisible());

        //properties
View Full Code Here

Examples of org.olat.user.UserManager.createUser()

      }
    }
    // Create new user and identity and put user to users group
    // Create transient user without firstName,lastName, email
    UserManager um = UserManager.getInstance();
    User newUser = um.createUser(null, null, null);
    // Now add data from user fields (firstName,lastName and email are mandatory)
    for (UserPropertyHandler userPropertyHandler : userPropertyHandlers) {
      FormItem propertyItem = this.flc.getFormComponent(userPropertyHandler.getName());
      userPropertyHandler.updateUserFromFormItem(newUser, propertyItem);
    }
View Full Code Here

Examples of org.olat.user.UserManager.createUser()

      }
    }

    // Create transient user without firstName,lastName, email
    UserManager um = UserManager.getInstance();
    User newUser = um.createUser(null, null, null);

    List<UserPropertyHandler> userProperties = userPropertyHandlers;
    int col = 4;
    String thisValue = "", stringValue;
    for (UserPropertyHandler userPropertyHandler : userProperties) {
View Full Code Here

Examples of org.olat.user.UserManager.createUser()

        rf2.setDisplayOnly(true);
        regarea.setContent(rf2);
        // create user with mandatory fields from registrationform
        //FIXME
        UserManager um = UserManager.getInstance();
        User volatileUser = um.createUser(rf2.getTextElement(UserConstants.FIRSTNAME).getValue(),
            rf2.getTextElement(UserConstants.LASTNAME).getValue(), tempKey.getEmailAddress());
        // set user configured language
        Preferences preferences = volatileUser.getPreferences();
        preferences.setLanguage(rf2.getSingleSelectionElement("lang").getSelectedKey());
        volatileUser.setPreferences(preferences);
View Full Code Here

Examples of org.openengsb.core.api.security.service.UserDataManager.createUser()

    @Before
    public void setUp() throws Exception {
        ContextHolder.get().setCurrentContextId("foo");

        UserDataManager userManager = new UserManagerStub();
        userManager.createUser("testuser");
        userManager.setUserCredentials("testuser", "password", "password");

        userManager.setUserCredentials("testuser", "onetime-basecode", "90489");
        userManager.setUserCredentials("testuser", "onetime-counter", "2");
View Full Code Here

Examples of org.openengsb.core.test.UserManagerStub.createUser()

    @Before
    public void setUp() throws Exception {
        ContextHolder.get().setCurrentContextId("foo");

        UserDataManager userManager = new UserManagerStub();
        userManager.createUser("testuser");
        userManager.setUserCredentials("testuser", "password", "password");

        userManager.setUserCredentials("testuser", "onetime-basecode", "90489");
        userManager.setUserCredentials("testuser", "onetime-counter", "2");
View Full Code Here

Examples of org.palo.viewapi.services.AdministrationService.createUser()

      }
      if (viewApiUser == null) {
        if (user.equals("admin")) {
          viewApiUser = admin;
        } else {
          viewApiUser = admService.createUser("", "", user, pass);
          admService.save(viewApiUser);
        }         
        Role viewerRole = admService.getRoleByName("VIEWER");
        Role editorRole = admService.getRoleByName("EDITOR");
        IUserRoleManagement urAssoc = MapperRegistry.getInstance().getUserRoleAssociation();       
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.