Package org.sonatype.nexus.client.core.subsystem.security

Examples of org.sonatype.nexus.client.core.subsystem.security.Roles.create()


    final Roles roles = client().getSubsystem(Roles.class);
    try {
      roles.get("kenai-base-role");
    }
    catch (NexusClientNotFoundException e) {
      roles.create("kenai-base-role")
          .withName("Kenai Base Role")
          .withDescription("Kenai Base Role")
          .withRole("nx-admin")
          .save();
    }
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.