|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.jira.util.EmailFormatterImpl
public class EmailFormatterImpl
| Constructor Summary | |
|---|---|
EmailFormatterImpl(ApplicationProperties applicationProperties)
|
|
| Method Summary | |
|---|---|
boolean |
emailVisible(com.atlassian.crowd.embedded.api.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,
boolean isCurrentUserLoggedIn)
Potentially hide/mask an email address. |
String |
formatEmail(String email,
com.atlassian.crowd.embedded.api.User currentUser)
Potentially hide/mask an email address. |
String |
formatEmail(com.atlassian.crowd.embedded.api.User user,
com.atlassian.crowd.embedded.api.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,
com.atlassian.crowd.embedded.api.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(com.atlassian.crowd.embedded.api.User user)
emailVisible in interface EmailFormatter
public String formatEmail(com.atlassian.crowd.embedded.api.User user,
com.atlassian.crowd.embedded.api.User currentUser)
EmailFormatter
formatEmail in interface EmailFormatteruser - 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,
boolean isCurrentUserLoggedIn)
EmailFormatter
formatEmail in interface EmailFormatteremail - The email address to show/mask/hide.isCurrentUserLoggedIn - is the current user logged in or anonymous
public String formatEmail(String email,
@Nullable
com.atlassian.crowd.embedded.api.User currentUser)
EmailFormatter
formatEmail in interface EmailFormatteremail - The email address to show/mask/hide.currentUser - The user viewing the email address.
public String formatEmailAsLink(String email,
@Nullable
com.atlassian.crowd.embedded.api.User currentUser)
formatEmailAsLink in interface EmailFormatter
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||