Package org.sonatype.plexus.rest.resource

Examples of org.sonatype.plexus.rest.resource.PathProtectionDescriptor


    return RESOURCE_URI;
  }

  @Override
  public PathProtectionDescriptor getResourceProtection() {
    return new PathProtectionDescriptor("/repositories/*", "authcBasic,perms[nexus:repositories]");
  }
View Full Code Here


    return RESOURCE_URI;
  }

  @Override
  public PathProtectionDescriptor getResourceProtection() {
    return new PathProtectionDescriptor(getResourceUri(), "anon");
  }
View Full Code Here

    return RESOURCE_URI;
  }

  @Override
  public PathProtectionDescriptor getResourceProtection() {
    return new PathProtectionDescriptor(getResourceUri(), "authcBasic,perms[nexus:repositories]");
  }
View Full Code Here

    return RESOURCE_URI;
  }

  @Override
  public PathProtectionDescriptor getResourceProtection() {
    return new PathProtectionDescriptor(getResourceUri(), "anon");
  }
View Full Code Here

    return new MirrorResourceListRequest();
  }

  @Override
  public PathProtectionDescriptor getResourceProtection() {
    return new PathProtectionDescriptor("/repository_mirrors/*", "authcBasic,perms[nexus:repositorymirrors]");
  }
View Full Code Here

    return "/artifact/maven/redirect";
  }

  @Override
  public PathProtectionDescriptor getResourceProtection() {
    return new PathProtectionDescriptor(getResourceUri(), "authcBasic,perms[nexus:artifact]");
  }
View Full Code Here

    return "/repositories/{" + AbstractRepositoryPlexusResource.REPOSITORY_ID_KEY + "}/content";
  }

  @Override
  public PathProtectionDescriptor getResourceProtection() {
    return new PathProtectionDescriptor("/repositories/*/content/**", "authcBasic,trperms");
  }
View Full Code Here

    return RESOURCE_URI;
  }

  @Override
  public PathProtectionDescriptor getResourceProtection() {
    return new PathProtectionDescriptor("/data_cache/*/*/content/**", "authcBasic,perms[nexus:cache]");
  }
View Full Code Here

    extends TestSupport
{

  @Test
  public void pathAndFilters() {
    PathProtectionDescriptor descriptor = new PathProtectionDescriptorBuilder()
        .path("/foo")
        .authcBasic()
        .filter("perms", "foo")
        .build();

    log(descriptor.getPathPattern());
    assertEquals("/foo", descriptor.getPathPattern());

    log(descriptor.getFilterExpression());
    assertEquals("authcBasic,perms[foo]", descriptor.getFilterExpression());
  }
View Full Code Here

    return RESOURCE_URI;
  }

  @Override
  public PathProtectionDescriptor getResourceProtection() {
    return new PathProtectionDescriptor(getResourceUri(), "authcBasic,perms[security:userschangepw]");
  }
View Full Code Here

TOP

Related Classes of org.sonatype.plexus.rest.resource.PathProtectionDescriptor

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.