summaryrefslogtreecommitdiffstats
path: root/base/common
diff options
context:
space:
mode:
authorEndi S. Dewata <edewata@redhat.com>2016-05-04 10:36:50 +0200
committerEndi S. Dewata <edewata@redhat.com>2016-05-04 11:19:19 +0200
commit0ffd7b46e1c09ec01f0d016deb895e49e5e11781 (patch)
treeb9772895165b649b86444f129b441ccb45358816 /base/common
parent79508bee86ab18d92fe83a83845429be50417ea6 (diff)
downloadpki-0ffd7b46e1c09ec01f0d016deb895e49e5e11781.tar.gz
pki-0ffd7b46e1c09ec01f0d016deb895e49e5e11781.tar.xz
pki-0ffd7b46e1c09ec01f0d016deb895e49e5e11781.zip
Refactored SystemConfigService.finalizeConfiguration().
Diffstat (limited to 'base/common')
-rw-r--r--base/common/python/pki/system.py13
-rw-r--r--base/common/src/com/netscape/certsrv/system/SystemConfigResource.java4
2 files changed, 17 insertions, 0 deletions
diff --git a/base/common/python/pki/system.py b/base/common/python/pki/system.py
index 45aa0d637..46b1d4051 100644
--- a/base/common/python/pki/system.py
+++ b/base/common/python/pki/system.py
@@ -275,6 +275,19 @@ class SystemConfigClient(object):
headers)
return response.json()
+ def finalize(self):
+ """
+ Contacts the server and invokes the Java configuration REST API to
+ finalize subsystem configuration.
+
+ :return: ConfigurationResponse -- response from configuration servlet.
+ """
+ headers = {'Content-type': 'application/json',
+ 'Accept': 'application/json'}
+ response = self.connection.post('/rest/installer/finalize', None,
+ headers)
+ return response.json()
+
class SystemStatusClient(object):
"""
diff --git a/base/common/src/com/netscape/certsrv/system/SystemConfigResource.java b/base/common/src/com/netscape/certsrv/system/SystemConfigResource.java
index 9c570eb2b..104a0af08 100644
--- a/base/common/src/com/netscape/certsrv/system/SystemConfigResource.java
+++ b/base/common/src/com/netscape/certsrv/system/SystemConfigResource.java
@@ -30,4 +30,8 @@ public interface SystemConfigResource {
@POST
@Path("configure")
public ConfigurationResponse configure(ConfigurationRequest data) throws Exception;
+
+ @POST
+ @Path("finalize")
+ public ConfigurationResponse finalizeConfiguration() throws Exception;
}