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
|
@GET
|
||||||
@Produces({ MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML })
|
@Produces({ MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML })
|
||||||
@RedbackAuthorization(permissions = ArchivaRoleConstants.OPERATION_MANAGE_CONFIGURATION)
|
@RedbackAuthorization(permissions = ArchivaRoleConstants.OPERATION_MANAGE_CONFIGURATION)
|
||||||
RedbackRuntimeConfiguration getRedbackRuntimeConfigurationAdmin()
|
RedbackRuntimeConfiguration getRedbackRuntimeConfiguration()
|
||||||
throws ArchivaRestServiceException;
|
throws ArchivaRestServiceException;
|
||||||
|
|
||||||
@Path("redbackRuntimeConfiguration")
|
@Path("redbackRuntimeConfiguration")
|
||||||
|
|
|
@ -71,7 +71,7 @@ public class DefaultArchivaRuntimeConfigurationService
|
||||||
@Named(value = "ldapConnectionFactory#configurable")
|
@Named(value = "ldapConnectionFactory#configurable")
|
||||||
private LdapConnectionFactory ldapConnectionFactory;
|
private LdapConnectionFactory ldapConnectionFactory;
|
||||||
|
|
||||||
public RedbackRuntimeConfiguration getRedbackRuntimeConfigurationAdmin()
|
public RedbackRuntimeConfiguration getRedbackRuntimeConfiguration()
|
||||||
throws ArchivaRestServiceException
|
throws ArchivaRestServiceException
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
|
|
|
@ -38,7 +38,7 @@ public class ArchivaRuntimeConfigurationServiceTest
|
||||||
throws Exception
|
throws Exception
|
||||||
{
|
{
|
||||||
RedbackRuntimeConfiguration redbackRuntimeConfiguration =
|
RedbackRuntimeConfiguration redbackRuntimeConfiguration =
|
||||||
getArchivaRuntimeConfigurationService().getRedbackRuntimeConfigurationAdmin();
|
getArchivaRuntimeConfigurationService().getRedbackRuntimeConfiguration();
|
||||||
assertEquals( "jdo", redbackRuntimeConfiguration.getUserManagerImpls().get( 0 ) );
|
assertEquals( "jdo", redbackRuntimeConfiguration.getUserManagerImpls().get( 0 ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -47,14 +47,14 @@ public class ArchivaRuntimeConfigurationServiceTest
|
||||||
throws Exception
|
throws Exception
|
||||||
{
|
{
|
||||||
RedbackRuntimeConfiguration redbackRuntimeConfiguration =
|
RedbackRuntimeConfiguration redbackRuntimeConfiguration =
|
||||||
getArchivaRuntimeConfigurationService().getRedbackRuntimeConfigurationAdmin();
|
getArchivaRuntimeConfigurationService().getRedbackRuntimeConfiguration();
|
||||||
assertEquals( "jdo", redbackRuntimeConfiguration.getUserManagerImpls().get( 0 ) );
|
assertEquals( "jdo", redbackRuntimeConfiguration.getUserManagerImpls().get( 0 ) );
|
||||||
|
|
||||||
redbackRuntimeConfiguration.setUserManagerImpls( Arrays.asList( "foo" ) );
|
redbackRuntimeConfiguration.setUserManagerImpls( Arrays.asList( "foo" ) );
|
||||||
|
|
||||||
getArchivaRuntimeConfigurationService().updateRedbackRuntimeConfiguration( redbackRuntimeConfiguration );
|
getArchivaRuntimeConfigurationService().updateRedbackRuntimeConfiguration( redbackRuntimeConfiguration );
|
||||||
|
|
||||||
redbackRuntimeConfiguration = getArchivaRuntimeConfigurationService().getRedbackRuntimeConfigurationAdmin();
|
redbackRuntimeConfiguration = getArchivaRuntimeConfigurationService().getRedbackRuntimeConfiguration();
|
||||||
assertEquals( "foo", redbackRuntimeConfiguration.getUserManagerImpls().get( 0 ) );
|
assertEquals( "foo", redbackRuntimeConfiguration.getUserManagerImpls().get( 0 ) );
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -72,7 +72,7 @@ public class DefaultRuntimeInfoService
|
||||||
applicationRuntimeInfo.setTimestampStr( sfd.format( new Date( archivaRuntimeInfo.getTimestamp() ) ) );
|
applicationRuntimeInfo.setTimestampStr( sfd.format( new Date( archivaRuntimeInfo.getTimestamp() ) ) );
|
||||||
|
|
||||||
applicationRuntimeInfo.setRedbackRuntimeConfiguration(
|
applicationRuntimeInfo.setRedbackRuntimeConfiguration(
|
||||||
archivaRuntimeConfigurationService.getRedbackRuntimeConfigurationAdmin() );
|
archivaRuntimeConfigurationService.getRedbackRuntimeConfiguration() );
|
||||||
|
|
||||||
return applicationRuntimeInfo;
|
return applicationRuntimeInfo;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue