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 | |
parent | 02a57faa0e2e6601900c20b4623a3e9b67c866aa (diff) | |
download | archiva-0e9352150a8f326d51c8317c5e8eefe8408bd408.tar.gz archiva-0e9352150a8f326d51c8317c5e8eefe8408bd408.zip |
Adding cache configuration
Diffstat (limited to 'archiva-modules/archiva-web/archiva-rest')
2 files changed, 3 insertions, 3 deletions
diff --git a/archiva-modules/archiva-web/archiva-rest/archiva-rest-api/src/main/java/org/apache/archiva/rest/api/services/v2/SecurityConfigurationService.java b/archiva-modules/archiva-web/archiva-rest/archiva-rest-api/src/main/java/org/apache/archiva/rest/api/services/v2/SecurityConfigurationService.java index 341b6b758..36dd46269 100644 --- a/archiva-modules/archiva-web/archiva-rest/archiva-rest-api/src/main/java/org/apache/archiva/rest/api/services/v2/SecurityConfigurationService.java +++ b/archiva-modules/archiva-web/archiva-rest/archiva-rest-api/src/main/java/org/apache/archiva/rest/api/services/v2/SecurityConfigurationService.java @@ -304,7 +304,7 @@ public interface SecurityConfigurationService content = @Content(mediaType = APPLICATION_JSON, schema = @Schema(implementation = ArchivaRestError.class )) ) } ) - Response updateCacheConfiguration( CacheConfiguration cacheConfiguration ) throws ArchivaRestServiceException; + CacheConfiguration updateCacheConfiguration( CacheConfiguration cacheConfiguration ) throws ArchivaRestServiceException; @Path("user_managers") 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 ) { |