Package org.jivesoftware.openfire.user

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


            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);
                    for (RosterItem ri : rosterItems) {
View Full Code Here

        System.out.println("Creating users accounts: " + total);
        int created = 0;
        for (int i = from; i < from + total; i++) {
            try {
                String username = userPrefix + i;
                userManager.createUser(username, username, username, username + "@" + username);
                created++;
            } catch (UserAlreadyExistsException e) {
                // Ignore
            }
        }
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.