Package org.sonatype.security.usermanagement

Examples of org.sonatype.security.usermanagement.UserManager.supportsWrite()


    // first save the user
    // this is the UserManager that owns the user
    UserManager userManager = userManagerFacade.getUserManager(user.getSource());

    if (!userManager.supportsWrite()) {
      throw new InvalidConfigurationException("UserManager: " + userManager.getSource()
          + " does not support writing.");
    }

    userManager.addUser(user, password);
View Full Code Here


  {
    // first update the user
    // this is the UserManager that owns the user
    UserManager userManager = userManagerFacade.getUserManager(user.getSource());

    if (!userManager.supportsWrite()) {
      throw new InvalidConfigurationException("UserManager: " + userManager.getSource()
          + " does not support writing.");
    }

    final User oldUser = userManager.getUser(user.getUserId());
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.