@GET
@Produces({ MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML })
@RedbackAuthorization(permissions = ArchivaRoleConstants.OPERATION_MANAGE_CONFIGURATION)
- RedbackRuntimeConfiguration getRedbackRuntimeConfigurationAdmin()
+ RedbackRuntimeConfiguration getRedbackRuntimeConfiguration()
throws ArchivaRestServiceException;
@Path("redbackRuntimeConfiguration")
throws Exception
{
RedbackRuntimeConfiguration redbackRuntimeConfiguration =
- getArchivaRuntimeConfigurationService().getRedbackRuntimeConfigurationAdmin();
+ getArchivaRuntimeConfigurationService().getRedbackRuntimeConfiguration();
assertEquals( "jdo", redbackRuntimeConfiguration.getUserManagerImpls().get( 0 ) );
}
throws Exception
{
RedbackRuntimeConfiguration redbackRuntimeConfiguration =
- getArchivaRuntimeConfigurationService().getRedbackRuntimeConfigurationAdmin();
+ getArchivaRuntimeConfigurationService().getRedbackRuntimeConfiguration();
assertEquals( "jdo", redbackRuntimeConfiguration.getUserManagerImpls().get( 0 ) );
redbackRuntimeConfiguration.setUserManagerImpls( Arrays.asList( "foo" ) );
getArchivaRuntimeConfigurationService().updateRedbackRuntimeConfiguration( redbackRuntimeConfiguration );
- redbackRuntimeConfiguration = getArchivaRuntimeConfigurationService().getRedbackRuntimeConfigurationAdmin();
+ redbackRuntimeConfiguration = getArchivaRuntimeConfigurationService().getRedbackRuntimeConfiguration();
assertEquals( "foo", redbackRuntimeConfiguration.getUserManagerImpls().get( 0 ) );
}
applicationRuntimeInfo.setTimestampStr( sfd.format( new Date( archivaRuntimeInfo.getTimestamp() ) ) );
applicationRuntimeInfo.setRedbackRuntimeConfiguration(
- archivaRuntimeConfigurationService.getRedbackRuntimeConfigurationAdmin() );
+ archivaRuntimeConfigurationService.getRedbackRuntimeConfiguration() );
return applicationRuntimeInfo;
}