BrightSide Workbench Full Report + Source Code
org.turro.mail.recipients.MailContact Class Reference

Static Public Member Functions

static String createLink (String text, String path, boolean live)
 

Detailed Description

Member Function Documentation

◆ createLink()

static String org.turro.mail.recipients.MailContact.createLink ( String  text,
String  path,
boolean  live 
)
static

Definition at line 31 of file elephant-mail/src/main/java/org/turro/mail/recipients/MailContact.java.

31  {
32  if(!Strings.isBlank(text)) {
33  StringBuilder sb = new StringBuilder((live ? "{livelink:" : "{link:"));
34  sb.append(text.replaceAll("\\:", ":").replaceAll("\\}", "&endkey;"));
35  if(!Strings.isBlank(path)) {
36  sb.append(":");
37  sb.append(path);
38  }
39  sb.append("}");
40  return sb.toString();
41  }
42  return "";
43  }
Here is the caller graph for this function:

The documentation for this class was generated from the following file: