mirror of https://github.com/apache/archiva.git
fix ugly method name
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1424188 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
2b3a5c264a
commit
7b19de0775
|
@ -44,7 +44,7 @@ public interface ArchivaRuntimeConfigurationService
|
|||
@GET
|
||||
@Produces({ MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML })
|
||||
@RedbackAuthorization(permissions = ArchivaRoleConstants.OPERATION_MANAGE_CONFIGURATION)
|
||||
RedbackRuntimeConfiguration getRedbackRuntimeConfigurationAdmin()
|
||||
RedbackRuntimeConfiguration getRedbackRuntimeConfiguration()
|
||||
throws ArchivaRestServiceException;
|
||||
|
||||
@Path("redbackRuntimeConfiguration")
|
||||
|
|
|
@ -71,7 +71,7 @@ public class DefaultArchivaRuntimeConfigurationService
|
|||
@Named(value = "ldapConnectionFactory#configurable")
|
||||
private LdapConnectionFactory ldapConnectionFactory;
|
||||
|
||||
public RedbackRuntimeConfiguration getRedbackRuntimeConfigurationAdmin()
|
||||
public RedbackRuntimeConfiguration getRedbackRuntimeConfiguration()
|
||||
throws ArchivaRestServiceException
|
||||
{
|
||||
try
|
||||
|
|
|
@ -38,7 +38,7 @@ public class ArchivaRuntimeConfigurationServiceTest
|
|||
throws Exception
|
||||
{
|
||||
RedbackRuntimeConfiguration redbackRuntimeConfiguration =
|
||||
getArchivaRuntimeConfigurationService().getRedbackRuntimeConfigurationAdmin();
|
||||
getArchivaRuntimeConfigurationService().getRedbackRuntimeConfiguration();
|
||||
assertEquals( "jdo", redbackRuntimeConfiguration.getUserManagerImpls().get( 0 ) );
|
||||
}
|
||||
|
||||
|
@ -47,14 +47,14 @@ public class ArchivaRuntimeConfigurationServiceTest
|
|||
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 ) );
|
||||
|
||||
}
|
||||
|
|
|
@ -72,7 +72,7 @@ public class DefaultRuntimeInfoService
|
|||
applicationRuntimeInfo.setTimestampStr( sfd.format( new Date( archivaRuntimeInfo.getTimestamp() ) ) );
|
||||
|
||||
applicationRuntimeInfo.setRedbackRuntimeConfiguration(
|
||||
archivaRuntimeConfigurationService.getRedbackRuntimeConfigurationAdmin() );
|
||||
archivaRuntimeConfigurationService.getRedbackRuntimeConfiguration() );
|
||||
|
||||
return applicationRuntimeInfo;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue