Examples of PlexusConfiguredRealm


Examples of org.sonatype.nexus.proxy.security.PlexusConfiguredRealm

        final Map<String, String> privileges = Maps.newHashMap();
        privileges.put("repo1user", "nexus:target:*:repo1:*,nexus:view:repository:repo1");
        privileges.put("repo1userNoView", "nexus:target:*:repo1:*");
        privileges.put("repoall", "nexus:target:*:*:*,nexus:view:repository:*");

        final PlexusConfiguredRealm realm = new PlexusConfiguredRealm(privileges);
        binder.bind(Key.get(Realm.class, Names.named("default"))).toInstance(realm);
      }
    });
  }
View Full Code Here

Examples of org.sonatype.nexus.proxy.security.PlexusConfiguredRealm

        privileges.put("admin", "nexus:target:*:*:*,nexus:view:repository:*");

        privileges.put("nxcm4999user", "nexus:view:repository:group1,nexus:target:maven2-all:group1:*");
        privileges.put("nxcm4999userNoSources", "nexus:view:repository:group1,nexus:target:nxcm4999:group1:*");

        final PlexusConfiguredRealm realm = new PlexusConfiguredRealm(privileges);
        binder.bind(Key.get(Realm.class, Names.named("default"))).toInstance(realm);
      }
    });
  }
View Full Code Here

Examples of org.sonatype.nexus.proxy.security.PlexusConfiguredRealm

        privileges.put("repo3-noview", "nexus:target:*:repo3:*");
        privileges.put("repo1-noview", "nexus:target:*:repo1:*");
        privileges.put("test-noview", "nexus:target:*:test:*");

        final PlexusConfiguredRealm realm = new PlexusConfiguredRealm(privileges);
        binder.bind(Key.get(Realm.class, Names.named("default"))).toInstance(realm);
      }
    });
  }
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.