@NonInjectableComponent public interface MailAttachmentsManager
| Modifier and Type | Field and Description |
|---|---|
static String |
CID_PREFIX
Content-ID for generated attachments.
|
| Modifier and Type | Method and Description |
|---|---|
Iterable<javax.mail.BodyPart> |
buildAttachmentsBodyParts()
Builds bodyPart for each image (including avatars) added to this manager
|
int |
getAttachmentsCount()
Returns the number of attachments added to this manager
|
String |
getAvatarUrl(ApplicationUser user)
Returns a link to access user avatar in email message.
|
String |
getAvatarUrl(String username)
Returns a link to access user avatar in email message.
|
String |
getAvatarUrl(TemplateUser templateUser)
Returns a link to access user avatar in email message.
|
String |
getExternalImageUrl(String path)
If the path is a relative url tries to add the image specified as an attachment.
|
String |
getImageUrl(String path)
Tries to add image specified by path to email attachments.
|
String |
inlineImages(String html)
Tries to inline all the images specified by an IMG tag.
|
static final String CID_PREFIX
String getAvatarUrl(String username)
username - String getAvatarUrl(TemplateUser templateUser)
templateUser - String getAvatarUrl(ApplicationUser user)
user - String getImageUrl(String path)
path - String inlineImages(String html)
html - HTML to change.String getExternalImageUrl(String path)
int getAttachmentsCount()
Iterable<javax.mail.BodyPart> buildAttachmentsBodyParts()
Copyright © 2002-2015 Atlassian. All Rights Reserved.