NdsBeisEsb/src/main/java/com/northgateps/nds/beis/esb/beisregistration/BeisRegistrationEmailAdapter.java
/**
     * Constructs links for email body
     * 
     * @param code and tenant for link
     * 
     * @return email body as String
     */
Constructs links for email body

@param code and tenant for link

@return email body as String
Constructs links for email body @param code and tenant for link @return email body as String
private String generateEmailBody(String activationCode, String tenant) {
        StringBuilder body = new StringBuilder();
        String activationUrl = configurationManager.getString("registration.activationUrl");
        String emailBody = body.append(activationUrl + "?tenant=" + tenant
                + "&activateRegistrationDetails.activationCode=" + activationCode).append(
                        System.getProperty("line.separator")).toString();
        String bodyText = "<a href=\"" + emailBody + "\">"+configurationManager.getString("registrationLinkLabel")+"</a>";
        return bodyText;
    }
private String generateEmailBody ( String activationCode , String tenant ) { StringBuilder body = new StringBuilder ( ) ; String activationUrl = configurationManager . getString ( "registration.activationUrl" ) ; String emailBody = body . append ( activationUrl + "?tenant=" + tenant + "&activateRegistrationDetails.activationCode=" + activationCode ) . append ( System . getProperty ( "line.separator" ) ) . toString ( ) ; String bodyText = "<a href=\"" + emailBody + "\">" + configurationManager . getString ( "registrationLinkLabel" ) + "</a>" ; return bodyText ; }
Constructs links for email body
Constructs links for email body