.getConf_value()).longValue();
}
String message = "";
Fieldlanguagesvalues fValue1192 = fieldmanagment
.getFieldByIdAndLanguage(1192L, language_id);
Fieldlanguagesvalues fValue1193 = fieldmanagment
.getFieldByIdAndLanguage(1193L, language_id);
Fieldlanguagesvalues fValue1190 = fieldmanagment
.getFieldByIdAndLanguage(1190L, language_id);
Fieldlanguagesvalues fValue1191 = fieldmanagment
.getFieldByIdAndLanguage(1191L, language_id);
Fieldlanguagesvalues fValue1196 = fieldmanagment
.getFieldByIdAndLanguage(1196L, language_id);
message += fValue1192.getValue() + " "
+ userToAdd.getFirstname() + " "
+ userToAdd.getLastname() + "<br/><br/>";
message += user.getFirstname() + " " + user.getLastname() + " "
+ fValue1193.getValue() + "<br/>";
message += fieldmanagment.getString(1194L, language_id) + "<br/>";
String baseURL = "http://" + domain + ":" + port + webapp;
if (port.equals("80")) {
baseURL = "http://" + domain + webapp;
} else if (port.equals("443")) {
baseURL = "https://" + domain + webapp;
}
privateMessagesDao.addPrivateMessage(user.getFirstname() + " "
+ user.getLastname() + " " + fValue1193.getValue(),
message, 0L, user, userToAdd, userToAdd, false, null,
true, userContactId, userToAdd.getAdresses().getEmail());
String link = baseURL + "?cuser=" + hash;
String accept_link = link + "&tAccept=yes";
String deny_link = link + "&tAccept=no";
String aLinkHTML = "<a href='" + accept_link + "'>"
+ fValue1190.getValue() + "</a><br/>";
String denyLinkHTML = "<a href='" + deny_link + "'>"
+ fValue1191.getValue() + "</a><br/>";
String profileLinkHTML = "<a href='" + link + "'>"
+ fValue1196.getValue() + "</a><br/>";
String template = requestContactTemplate
.getRequestContactTemplate(message, aLinkHTML,
denyLinkHTML, profileLinkHTML);