Interface MessageListener
-
- All Known Implementing Classes:
MailingListComponent
public interface MessageListenerListener for MessageEvent.- Author:
- Emmanuel Hugonnet
- See Also:
MessageEvent
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleancheckSender(String email)Checks if the sender is authorized to send to this mailing list.StringgetComponentId()Returns the Silverpeas component's id.voidonMessage(MessageEvent event)Method called when new messages are available.
-
-
-
Method Detail
-
onMessage
void onMessage(MessageEvent event)
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
boolean checkSender(String email)
Checks if the sender is authorized to send to this mailing list.- Returns:
- true if the sender is authorized - false otherwise.
-
-