|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.jira.mail.util.MailAttachmentsManagerAsAbsoluteLinks
public class MailAttachmentsManagerAsAbsoluteLinks
MailAttachmentsManager implementation which does not store any attachments and always returns absolute path to images and avatars.
Field Summary |
---|
Fields inherited from interface com.atlassian.jira.mail.util.MailAttachmentsManager |
---|
CID_PREFIX |
Constructor Summary | |
---|---|
MailAttachmentsManagerAsAbsoluteLinks(ApplicationProperties applicationProperties,
AvatarService avatarService,
UserManager userManager)
|
Method Summary | |
---|---|
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 |
getImageUrl(String path)
Tries to add image specified by path to email attachments. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MailAttachmentsManagerAsAbsoluteLinks(ApplicationProperties applicationProperties, AvatarService avatarService, UserManager userManager)
Method Detail |
---|
public String getAvatarUrl(TemplateUser templateUser)
MailAttachmentsManager
getAvatarUrl
in interface MailAttachmentsManager
public String getAvatarUrl(String username)
MailAttachmentsManager
getAvatarUrl
in interface MailAttachmentsManager
public String getAvatarUrl(ApplicationUser user)
MailAttachmentsManager
getAvatarUrl
in interface MailAttachmentsManager
public String getImageUrl(String path)
MailAttachmentsManager
getImageUrl
in interface MailAttachmentsManager
public int getAttachmentsCount()
MailAttachmentsManager
getAttachmentsCount
in interface MailAttachmentsManager
public Iterable<javax.mail.BodyPart> buildAttachmentsBodyParts()
MailAttachmentsManager
buildAttachmentsBodyParts
in interface MailAttachmentsManager
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |