Package org.sonatype.security.events

Examples of org.sonatype.security.events.UserPrincipalsExpired


    final User oldUser = userManager.getUser(user.getUserId());
    userManager.updateUser(user);
    if (oldUser.getStatus() == UserStatus.active && user.getStatus() != oldUser.getStatus()) {
      // clear the realm authc caches as user got disabled
      eventBus.post(new UserPrincipalsExpired(user.getUserId(), user.getSource()));
    }

    // then save the users Roles
    for (UserManager tmpUserManager : userManagerFacade.getUserManagers().values()) {
      // skip the user manager that owns the user, we already did that
View Full Code Here


    UserManager userManager = userManagerFacade.getUserManager(source);
    userManager.deleteUser(userId);

    // flush authc
    eventBus.post(new UserPrincipalsExpired(userId, source));
  }
View Full Code Here

      this.logger.warn("User '" + userId + "' with source: '" + user.getSource()
          + "' but could not find the UserManager for that source.");
    }

    // flush authc
    eventBus.post(new UserPrincipalsExpired(userId, user.getSource()));
  }
View Full Code Here

    User user = this.getUser(userId);

    this.changePassword(userId, newClearTextPassword);

    // flush authc
    eventBus.post(new UserPrincipalsExpired(userId, user.getSource()));

    // send email
    this.getSecurityEmailer().sendResetPassword(user.getEmailAddress(), newClearTextPassword);

  }
View Full Code Here

    }
    this.securityConfiguration.setAnonymousUsername(anonymousUsername);
    this.securityConfiguration.save();
    // flush authc, if anon existed before change
    if (user != null) {
      eventBus.post(new UserPrincipalsExpired(user.getUserId(), user.getSource()));
    }
  }
View Full Code Here

    }
    this.securityConfiguration.setAnonymousPassword(anonymousPassword);
    this.securityConfiguration.save();
    if (user != null) {
      // flush authc, if anon exists
      eventBus.post(new UserPrincipalsExpired(user.getUserId(), user.getSource()));
    }
  }
View Full Code Here

TOP

Related Classes of org.sonatype.security.events.UserPrincipalsExpired

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.