Interface MessageListener
- All Known Implementing Classes:
MailingListComponent
public interface MessageListener
Listener for MessageEvent.
- Author:
- Emmanuel Hugonnet
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionbooleancheckSender(String email) Checks if the sender is authorized to send to this mailing list.Returns the Silverpeas component's id.voidonMessage(MessageEvent event) Method called when new messages are available.
-
Method Details
-
onMessage
Method called when new messages are available.- Parameters:
event- the message event.
-
getComponentId
String getComponentId()Returns the Silverpeas component's id. This is used to save attachements.- Returns:
- the Silverpeas component's id.
-
checkSender
Checks if the sender is authorized to send to this mailing list.- Returns:
- true if the sender is authorized - false otherwise.
-