Package org.sonatype.security.rest.model

Examples of org.sonatype.security.rest.model.RoleResourceRequest


    }
  }

  @Override
  protected RoleResource doUpdate() {
    final RoleResourceRequest request = new RoleResourceRequest();
    request.setData(settings());
    try {
      return getNexusClient()
          .serviceResource(path(id()))
          .put(RoleResourceResponse.class, request)
          .getData();
View Full Code Here


    this.validateXmlHasNoPackageNames(resourceResponse);
  }

  @Test
  public void testRoleResourceRequest() {
    RoleResourceRequest resourceRequest = new RoleResourceRequest();

    RoleResource item1 = new RoleResource();
    item1.setId("Id1");
    item1.setResourceURI("ResourceURI1");
    item1.addPrivilege("privilege1");
    item1.addPrivilege("privilege2");
    item1.addRole("role1");
    item1.addRole("role2");
    item1.setSessionTimeout(42);
    item1.setName("Name1");
    item1.setDescription("Description1");
    resourceRequest.setData(item1);

    this.marshalUnmarchalThenCompare(resourceRequest);
    this.validateXmlHasNoPackageNames(resourceRequest);
  }
View Full Code Here

TOP

Related Classes of org.sonatype.security.rest.model.RoleResourceRequest

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.