|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.jira.util.EmailFormatterImpl
Constructor Summary | |
EmailFormatterImpl(ApplicationProperties applicationProperties)
|
Method Summary | |
boolean |
emailVisible(User user)
Emails are visible by user if email visibility is set to show (public) or mask (masked) or user (show to logged in users only) |
String |
formatEmail(String email,
User currentUser)
Potentially hide/mask an email address. |
String |
formatEmail(User user,
User currentUser)
Formats how the user's Email address is to be displayed to the currentUser determined by the user email visibility value |
String |
formatEmailAsLink(String email,
User currentUser)
Returns a HTML link for the e-mail if appropriate. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public EmailFormatterImpl(ApplicationProperties applicationProperties)
Method Detail |
public boolean emailVisible(User user)
emailVisible
in interface EmailFormatter
public String formatEmail(User user, User currentUser)
EmailFormatter
formatEmail
in interface EmailFormatter
user
- owner of the email address to format and displaycurrentUser
- the current logged in user viewing the email address of the above user
public String formatEmail(String email, User currentUser)
EmailFormatter
formatEmail
in interface EmailFormatter
email
- The email address to show/mask/hide.currentUser
- The user viewing the email address.
public String formatEmailAsLink(String email, User currentUser)
formatEmailAsLink
in interface EmailFormatter
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |