tvaultapi/src/main/java/com/tmobile/cso/vault/api/service/SSLCertificateService.java
private void sendRenewEmail(String certType, String certificateName, String certOwnerEmailId, String certOwnerNtId,
                                String token, boolean isApprovalReq) {

        //Send an approval process in case renew required approval process
        if (isApprovalReq) {
            sendExternalEmail(certType, certificateName, certOwnerEmailId, certOwnerNtId,
                    SSLCertificateConstants.EX_CERT_RENEW_SUBJECT + " - " +
                            certificateName, "renew");
        } else {
            sendEmail(certType, certificateName, certOwnerEmailId, certOwnerNtId,
                    SSLCertificateConstants.CERT_RENEW_SUBJECT + " - " + certificateName,
                    "renewed", token);
        }
    }
/**
     * This method will be responsible for sending an email for renew certificate for both internal and external
     * @param certType
     * @param certificateName
     * @param userDetails
     * @param token
     */
This method will be responsible for sending an email for renew certificate for both internal and external
@param certType
@param certificateName
@param userDetails
@param token
This method will be responsible for sending an email for renew certificate for both internal and external @param certType @param certificateName @param userDetails @param token
private void sendRenewEmail(String certType, String certificateName, String certOwnerEmailId, String certOwnerNtId,
                                String token, boolean isApprovalReq) {
        if (isApprovalReq) {
            sendExternalEmail(certType, certificateName, certOwnerEmailId, certOwnerNtId,
                    SSLCertificateConstants.EX_CERT_RENEW_SUBJECT + " - " +
                            certificateName, "renew");
        } else {
            sendEmail(certType, certificateName, certOwnerEmailId, certOwnerNtId,
                    SSLCertificateConstants.CERT_RENEW_SUBJECT + " - " + certificateName,
                    "renewed", token);
        }
    }
private void sendRenewEmail ( String certType , String certificateName , String certOwnerEmailId , String certOwnerNtId , String token , boolean isApprovalReq ) { if ( isApprovalReq ) { sendExternalEmail ( certType , certificateName , certOwnerEmailId , certOwnerNtId , SSLCertificateConstants . EX_CERT_RENEW_SUBJECT + " - " + certificateName , "renew" ) ; } else { sendEmail ( certType , certificateName , certOwnerEmailId , certOwnerNtId , SSLCertificateConstants . CERT_RENEW_SUBJECT + " - " + certificateName , "renewed" , token ) ; } }
This method will be responsible for sending an email for renew certificate for both internal and external
 @param certType
 @param certificateName
 @param userDetails
 @param token
This method will be responsible for sending an email for renew certificate for both internal and external @param certType @param certificateName @param userDetails @param token
//Send an approval process in case renew required approval process