Package org.olat.user

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


      }
    }

    // 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

        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

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.