@Test public void testGet() { assertThat(underTest.read(), is(new AnonymousAccessSettingsXO(initialAnonymousConfiguration))); }
@GET @RequiresPermissions("nexus:settings:read") @Override public AnonymousAccessSettingsXO read() { return new AnonymousAccessSettingsXO(anonymousManager.getConfiguration()); }
AnonymousAccessApiResource extends ComponentSupport implements Resource, AnonymousAccessApiResourceDoc { @GET @RequiresPermissions("nexus:settings:read") @Override public AnonymousAccessSettingsXO read() { return new AnonymousAccessSettingsXO(anonymousManager.getConfiguration()); } }
AnonymousAccessApiResource extends ComponentSupport implements Resource, AnonymousAccessApiResourceDoc { @GET @RequiresPermissions("nexus:settings:read") @Override public AnonymousAccessSettingsXO read() { return new AnonymousAccessSettingsXO(anonymousManager.getConfiguration()); } @Inject  AnonymousAccessApiResource(final AnonymousManager anonymousManager, final RealmSecurityManager realmSecurityManager); }
AnonymousAccessApiResource extends ComponentSupport implements Resource, AnonymousAccessApiResourceDoc { @GET @RequiresPermissions("nexus:settings:read") @Override public AnonymousAccessSettingsXO read() { return new AnonymousAccessSettingsXO(anonymousManager.getConfiguration()); } @Inject  AnonymousAccessApiResource(final AnonymousManager anonymousManager, final RealmSecurityManager realmSecurityManager); @GET @RequiresPermissions("nexus:settings:read") @Override AnonymousAccessSettingsXO read(); @PUT @RequiresAuthentication @RequiresPermissions("nexus:settings:update") @Override AnonymousAccessSettingsXO update(@Valid final AnonymousAccessSettingsXO anonymousXO); }
AnonymousAccessApiResource extends ComponentSupport implements Resource, AnonymousAccessApiResourceDoc { @GET @RequiresPermissions("nexus:settings:read") @Override public AnonymousAccessSettingsXO read() { return new AnonymousAccessSettingsXO(anonymousManager.getConfiguration()); } @Inject  AnonymousAccessApiResource(final AnonymousManager anonymousManager, final RealmSecurityManager realmSecurityManager); @GET @RequiresPermissions("nexus:settings:read") @Override AnonymousAccessSettingsXO read(); @PUT @RequiresAuthentication @RequiresPermissions("nexus:settings:update") @Override AnonymousAccessSettingsXO update(@Valid final AnonymousAccessSettingsXO anonymousXO);  }