|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
@PublicApi public interface MessageUserProcessor
A set of User-related util methods which can be useful while processing Message objects.
Method Summary | |
---|---|
com.atlassian.crowd.embedded.api.User |
findUserByEmail(String emailAddress)
Returns the first User found with an email address that equals the given emailAddress case insensitively. |
com.atlassian.crowd.embedded.api.User |
findUserByUsername(String username)
Finds the user with the given username or returns null if there is no such User. |
com.atlassian.crowd.embedded.api.User |
getAuthorFromSender(javax.mail.Message message)
For each sender of the given message in turn, look up a User first with a case-insensitively equal email address, and failing that, with a username equal to the email address. |
Method Detail |
---|
@Nullable com.atlassian.crowd.embedded.api.User getAuthorFromSender(javax.mail.Message message) throws javax.mail.MessagingException
message
- the message from which to get the User.
javax.mail.MessagingException
- if there's strife getting the message sender.@Nullable com.atlassian.crowd.embedded.api.User findUserByUsername(String username)
username
- the username.
@Nullable com.atlassian.crowd.embedded.api.User findUserByEmail(String emailAddress)
emailAddress
- the email address to match.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |