Package org.onebusaway.users.model

Examples of org.onebusaway.users.model.User


        _model.getApiKey());
    UserIndex userIndex = _userService.getUserIndexForId(key);
    if (userIndex == null)
      return INPUT;

    User user = userIndex.getUser();

    _userService.removeUserIndexForUser(user, key);

    if (user.getUserIndices().isEmpty())
      _userService.deleteUser(user);

    // Clear the cached value here
    _userService.getMinApiRequestIntervalForKey(_model.getApiKey(), true);
View Full Code Here


  }

  @Override
  public String execute() {

    User user = _userService.getUserForId(_userId);

    if (user == null)
      return INPUT;

    UserIndex currentUserIndex = _currentUserService.getCurrentUserAsUserIndex();
    if( currentUserIndex != null) {
      User currentUser = currentUserIndex.getUser();
      if( currentUser.equals(user))
        return ERROR;
    }
    _userService.deleteUser(user);

    return SUCCESS;
View Full Code Here

    return _userId;
  }

  @Override
  public String execute() {
    User user = _userService.getUserForId(_userId);
    if (user == null)
      return INPUT;
    _userService.enableAdminRoleForUser(user, false);
    return SUCCESS;
  }
View Full Code Here

  }

  @Override
  public String execute() {

    User user = _userService.getUserForId(_id);
   
    if (user == null)
      return INPUT;

    _user = _userService.getUserAsBean(user);
View Full Code Here

        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.User

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.