From 6471055c3ffd094d0d46a5fe46bfb3878e1a4f27 Mon Sep 17 00:00:00 2001 From: hasuniea Date: Thu, 9 Jun 2016 10:00:35 +0530 Subject: [PATCH] add refactored stuff --- .../certificate/mgt/jaxrs/api/CertificateMgtService.java | 3 ++- .../mgt/jaxrs/api/impl/CertificateMgtServiceImpl.java | 6 ++++++ .../mgt/core/service/CertificateManagementServiceImpl.java | 2 -- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/components/certificate-mgt/org.wso2.carbon.certificate.mgt.api/src/main/java/org/wso2/carbon/certificate/mgt/jaxrs/api/CertificateMgtService.java b/components/certificate-mgt/org.wso2.carbon.certificate.mgt.api/src/main/java/org/wso2/carbon/certificate/mgt/jaxrs/api/CertificateMgtService.java index a2f298ba91..f4ce63b746 100644 --- a/components/certificate-mgt/org.wso2.carbon.certificate.mgt.api/src/main/java/org/wso2/carbon/certificate/mgt/jaxrs/api/CertificateMgtService.java +++ b/components/certificate-mgt/org.wso2.carbon.certificate.mgt.api/src/main/java/org/wso2/carbon/certificate/mgt/jaxrs/api/CertificateMgtService.java @@ -6,7 +6,6 @@ import io.swagger.annotations.ApiResponse; import io.swagger.annotations.ApiResponses; import org.wso2.carbon.apimgt.annotations.api.Permission; import org.wso2.carbon.certificate.mgt.jaxrs.beans.ErrorResponse; -import org.wso2.carbon.device.mgt.common.device.details.DeviceLocation; import javax.ws.rs.*; import javax.ws.rs.core.MediaType; @@ -56,4 +55,6 @@ public interface CertificateMgtService { @HeaderParam("If-Modified-Since") String ifModifiedSince, String binarySecurityToken); + Response getCA(); + } diff --git a/components/certificate-mgt/org.wso2.carbon.certificate.mgt.api/src/main/java/org/wso2/carbon/certificate/mgt/jaxrs/api/impl/CertificateMgtServiceImpl.java b/components/certificate-mgt/org.wso2.carbon.certificate.mgt.api/src/main/java/org/wso2/carbon/certificate/mgt/jaxrs/api/impl/CertificateMgtServiceImpl.java index 71c03b6e1c..59ae1d5a54 100644 --- a/components/certificate-mgt/org.wso2.carbon.certificate.mgt.api/src/main/java/org/wso2/carbon/certificate/mgt/jaxrs/api/impl/CertificateMgtServiceImpl.java +++ b/components/certificate-mgt/org.wso2.carbon.certificate.mgt.api/src/main/java/org/wso2/carbon/certificate/mgt/jaxrs/api/impl/CertificateMgtServiceImpl.java @@ -53,4 +53,10 @@ public class CertificateMgtServiceImpl implements CertificateMgtService { 500l).setMessage(msg).build()); } } + + @POST + @Path("/ca") + public Response getCA() { + + } } diff --git a/components/certificate-mgt/org.wso2.carbon.certificate.mgt.core/src/main/java/org/wso2/carbon/certificate/mgt/core/service/CertificateManagementServiceImpl.java b/components/certificate-mgt/org.wso2.carbon.certificate.mgt.core/src/main/java/org/wso2/carbon/certificate/mgt/core/service/CertificateManagementServiceImpl.java index 83505cf04a..875704784d 100644 --- a/components/certificate-mgt/org.wso2.carbon.certificate.mgt.core/src/main/java/org/wso2/carbon/certificate/mgt/core/service/CertificateManagementServiceImpl.java +++ b/components/certificate-mgt/org.wso2.carbon.certificate.mgt.core/src/main/java/org/wso2/carbon/certificate/mgt/core/service/CertificateManagementServiceImpl.java @@ -17,7 +17,6 @@ */ package org.wso2.carbon.certificate.mgt.core.service; -import com.sun.org.apache.xpath.internal.operations.Bool; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.bouncycastle.pkcs.PKCS10CertificationRequest; @@ -33,7 +32,6 @@ import org.wso2.carbon.certificate.mgt.core.util.ConfigurationUtil; import org.wso2.carbon.device.mgt.common.PaginationRequest; import org.wso2.carbon.device.mgt.common.PaginationResult; import org.wso2.carbon.device.mgt.common.TransactionManagementException; -import org.wso2.carbon.device.mgt.core.operation.mgt.dao.OperationManagementDAOFactory; import java.io.InputStream; import java.security.PrivateKey;