diff options
author | Martin Stockhammer <martin_s@apache.org> | 2021-01-12 23:36:37 +0100 |
---|---|---|
committer | Martin Stockhammer <martin_s@apache.org> | 2021-01-12 23:36:37 +0100 |
commit | 0e9352150a8f326d51c8317c5e8eefe8408bd408 (patch) | |
tree | 20b06b3d40f9a15434829c3a0c1e3f927eaeffaf /archiva-modules/archiva-web/archiva-rest/archiva-rest-services | |
parent | 02a57faa0e2e6601900c20b4623a3e9b67c866aa (diff) | |
download | archiva-0e9352150a8f326d51c8317c5e8eefe8408bd408.tar.gz archiva-0e9352150a8f326d51c8317c5e8eefe8408bd408.zip |
Adding cache configuration
Diffstat (limited to 'archiva-modules/archiva-web/archiva-rest/archiva-rest-services')
-rw-r--r-- | archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/v2/DefaultSecurityConfigurationService.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/v2/DefaultSecurityConfigurationService.java b/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/v2/DefaultSecurityConfigurationService.java index f059613c0..d5a435bf9 100644 --- a/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/v2/DefaultSecurityConfigurationService.java +++ b/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/v2/DefaultSecurityConfigurationService.java @@ -596,7 +596,7 @@ public class DefaultSecurityConfigurationService implements SecurityConfiguratio } @Override - public Response updateCacheConfiguration( CacheConfiguration cacheConfiguration ) throws ArchivaRestServiceException + public CacheConfiguration updateCacheConfiguration( CacheConfiguration cacheConfiguration ) throws ArchivaRestServiceException { if ( cacheConfiguration == null ) { @@ -610,7 +610,7 @@ public class DefaultSecurityConfigurationService implements SecurityConfiguratio log.debug( "getRedbackRuntimeConfiguration -> {}", redbackRuntimeConfiguration ); updateConfig( cacheConfiguration, redbackRuntimeConfiguration ); redbackRuntimeConfigurationAdmin.updateRedbackRuntimeConfiguration( redbackRuntimeConfiguration ); - return Response.ok( ).build( ); + return getCacheConfiguration( ); } catch ( RepositoryAdminException e ) { |