Package org.sonatype.nexus.rest.model

Examples of org.sonatype.nexus.rest.model.NexusAuthenticationClientPermissions


    // TODO: this is a modello work around,
    // the SystemStatus could not include a field of type AuthenticationClientPermissions
    // because it is in a different model, but I can extend that class... and include it.

    NexusAuthenticationClientPermissions clientPermissions = new NexusAuthenticationClientPermissions();
    clientPermissions.setLoggedIn(originalClientPermissions.isLoggedIn());
    clientPermissions.setLoggedInUsername(originalClientPermissions.getLoggedInUsername());
    clientPermissions.setLoggedInUserSource(originalClientPermissions.getLoggedInUserSource());
    clientPermissions.setLoggedInUserSource(originalClientPermissions.getLoggedInUserSource());
    clientPermissions.setPermissions(originalClientPermissions.getPermissions());

    return clientPermissions;
  }
View Full Code Here


      throws ParseException
  {
    StatusResourceResponse resourceResponse = new StatusResourceResponse();

    StatusResource status = new StatusResource();
    NexusAuthenticationClientPermissions perms = new NexusAuthenticationClientPermissions();
    ClientPermission permission = new ClientPermission();
    permission.setId("id");
    permission.setValue(5);
    perms.addPermission(permission);
    perms.setLoggedIn(true);
    perms.setLoggedInUsername("fred");
    perms.setLoggedInUserSource("source");

    status.setClientPermissions(perms);
    status.setConfigurationUpgraded(true);
    status.setErrorCause("errorCause");
    status.setFirstStart(true);
View Full Code Here

TOP

Related Classes of org.sonatype.nexus.rest.model.NexusAuthenticationClientPermissions

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.