tvaultapi/src/main/java/com/tmobile/cso/vault/api/service/SSLCertificateService.java
private CertResponse approvalRequest(CertManagerLogin certManagerLogin, int actionId) throws Exception {
        String approvalEndPoint = "/certmanager/approvalrequest";
        String endPoint = approvalUrl.replace(SSLCertificateConstants.ACTION_ID, String.valueOf(actionId));
        ApproveRequest approveRequest = new ApproveRequest();
        approveRequest.setFinalize(true);
        approveRequest.setNote(SSLCertificateConstants.REQUEST_FOR_APPROVAL);
        log.debug(JSONUtil.getJSON(ImmutableMap.<String, String>builder()
        		.put(LogMessage.USER, ThreadLocalContext.getCurrentMap().get(LogMessage.USER))
        		.put(LogMessage.ACTION, "approvalRequest")
				.put(LogMessage.MESSAGE, "Trying to send the approval request")
				.put(LogMessage.APIURL, ThreadLocalContext.getCurrentMap().get(LogMessage.APIURL))
        		.build()));
        return reqProcessor.processCert(approvalEndPoint, approveRequest, certManagerLogin.getAccess_token(), getCertmanagerEndPoint(endPoint));
    }
/**
     * This method will be responsible to send the approva request
     * @param certManagerLogin
     * @param entityId
     * @return
     * @throws Exception
     */
This method will be responsible to send the approva request
@param certManagerLogin
@param entityId
@return
@throws Exception
This method will be responsible to send the approva request @param certManagerLogin @param entityId @return @throws Exception
private CertResponse approvalRequest(CertManagerLogin certManagerLogin, int actionId) throws Exception {
        String approvalEndPoint = "/certmanager/approvalrequest";
        String endPoint = approvalUrl.replace(SSLCertificateConstants.ACTION_ID, String.valueOf(actionId));
        ApproveRequest approveRequest = new ApproveRequest();
        approveRequest.setFinalize(true);
        approveRequest.setNote(SSLCertificateConstants.REQUEST_FOR_APPROVAL);
        log.debug(JSONUtil.getJSON(ImmutableMap.<String, String>builder()
        		.put(LogMessage.USER, ThreadLocalContext.getCurrentMap().get(LogMessage.USER))
        		.put(LogMessage.ACTION, "approvalRequest")
				.put(LogMessage.MESSAGE, "Trying to send the approval request")
				.put(LogMessage.APIURL, ThreadLocalContext.getCurrentMap().get(LogMessage.APIURL))
        		.build()));
        return reqProcessor.processCert(approvalEndPoint, approveRequest, certManagerLogin.getAccess_token(), getCertmanagerEndPoint(endPoint));
    }
private CertResponse approvalRequest ( CertManagerLogin certManagerLogin , int actionId ) throws Exception { String approvalEndPoint = "/certmanager/approvalrequest" ; String endPoint = approvalUrl . replace ( SSLCertificateConstants . ACTION_ID , String . valueOf ( actionId ) ) ; ApproveRequest approveRequest = new ApproveRequest ( ) ; approveRequest . setFinalize ( true ) ; approveRequest . setNote ( SSLCertificateConstants . REQUEST_FOR_APPROVAL ) ; log . debug ( JSONUtil . getJSON ( ImmutableMap . < String , String > builder ( ) . put ( LogMessage . USER , ThreadLocalContext . getCurrentMap ( ) . get ( LogMessage . USER ) ) . put ( LogMessage . ACTION , "approvalRequest" ) . put ( LogMessage . MESSAGE , "Trying to send the approval request" ) . put ( LogMessage . APIURL , ThreadLocalContext . getCurrentMap ( ) . get ( LogMessage . APIURL ) ) . build ( ) ) ) ; return reqProcessor . processCert ( approvalEndPoint , approveRequest , certManagerLogin . getAccess_token ( ) , getCertmanagerEndPoint ( endPoint ) ) ; }
This method will be responsible to send the approva request
 @param certManagerLogin
 @param entityId
 @return
 @throws Exception
This method will be responsible to send the approva request @param certManagerLogin @param entityId @return @throws Exception