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/*/routing/config", "authcBasic,perms[nexus:repositories]");
  }
View Full Code Here


    nexusApplication.handlePlexusResourceSecurity(mockResource);
  }

  @Test
  public void handlePlexusResourceSecurityWithoutMismatchWithRestletPatterns() {
    final PathProtectionDescriptor descriptor = new PathProtectionDescriptor("/repositories/*", "");
    Mockito.when(mockResource.getResourceProtection()).thenReturn(descriptor);
    Mockito.when(mockResource.getResourceUri()).thenReturn("/repositories/{repoId}");
    nexusApplication.handlePlexusResourceSecurity(mockResource);
  }
View Full Code Here

    return null;
  }

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

    return RESOURCE_URI;
  }

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

    return new LdapServerRequest();
  }

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

    return new LdapServerOrderRequest();
  }

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

    return null;
  }

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

    return null;
  }

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

    return new LdapServerRequest();
  }

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

    return RESOURCE_URI;
  }

  @Override
  public PathProtectionDescriptor getResourceProtection() {
    return new PathProtectionDescriptor(getResourceUri(), "authcBasic,perms[nexus:index]");
  }
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.