Package org.onebusaway.users.model

Examples of org.onebusaway.users.model.UserIndex


    if (!_password.equals(_password2))
      return INPUT;

    String credentials = _passwordEncoder.encodePassword(_password, _userName);
    UserIndexKey key = new UserIndexKey(UserIndexTypes.USERNAME, _userName);
    UserIndex userIndex = _userService.getOrCreateUserForIndexKey(key,
        credentials, false);

    if (userIndex == null)
      return ERROR;

    User user = userIndex.getUser();

    _userService.enableAdminRoleForUser(user, false);

    // This will flush any internal cache on the initial setup check
    _initialSetupService.isInitialSetupRequired(true);
View Full Code Here

TOP

Related Classes of org.onebusaway.users.model.UserIndex

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.